HNHacker News
TopNewBestAskShowJobs

lakssh

7 karma · joined June 8, 2024

voila
submissionscomments
lakssh··on Show HN: A simple Next.js waitlist template with Notion as CMS
thanks :)
lakssh··on Morph2json – Waitlist Is Live
Hey everyone!

I've been working on my API SaaS called "morph2json" for the past month. It takes any raw text data, such as HTML, YAML, or any other format, and converts it into type-safe JSON, which is then validated against a user-defined schema.

FYI, This conversion will be done using an LLM like GPT-4o or Gemini 1.5 Pro, as they are pretty smart and have large context limits.

I'm creating this tool because I believe it can significantly simplify data management, especially with the increasing use of JSON as the standard input format for many AI applications.

So, if you're interested, please sign up for the waitlist at https://waitlist-m2j.lakshb.dev

lakssh··on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?
Creating an API for users to convert their unstructured data to JSON on the go, ensuring type safety :)
lakssh··on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?
Yes, I'm planning to use Gemini for this context because of the 1M context length, but 15 reqs per min seems to be a little off :(

However, my implementation (not entirely mine btw) will ensure that whatever the user gets as an output is a valid & type-safe JSON response; otherwise, it will throw an error.

lakssh··on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?
Yes, It will require LLM to convert your unstructured data into a type-safe JSON format, It will be a very simple hobby project that will get you a JSON response as fast as possible instead of writing your own implementation or similar stuff. I plan to simplify this friction because JSON is used in various places. If it somehow works, then I think it would save some time for devs to focus on other parts of their projects :)

Let me know what you think ^_^

lakssh··on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?
Yes, you can have your JSON output in a format that You will specify,

Example Data: John is 25 years old and studies computer science at university. His address is 123 Main St, Anytown 12345

Format that you want will look something like this,

{ "format": { "name": { "type": "string" }, "age": { "type": "number" }, "isStudent": { "type": "boolean" }, "courses": { "type": "array", "items": { "type": "string" } }, "address": { "type": "object", "properties": { "street": { "type": "string" }, "city": { "type": "string" }, "zipcode": { "type": "string" } } } } }

------

Output,

{ "name": "John", "age": 25, "isStudent": true, "courses": ["computer science"], "address": { "properties": { "street": "123 Main St", "city": "Anytown", "zipcode": "12345" } } }

lakssh··on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?
thanks for asking; here, I'm taking sample input data from a blog post that might look like this, and I have specified the format below, which I'll feed to an LLM and will get a response as a JSON, which will be type-safe and validated at the backend.

{ "data": "Title: The Effects of Sleep on Memory, Authors: Dr. Jane Doe, Dr. John Smith, Publication Date: 2022-09-15, Journal: Journal of Neuroscience, Abstract: This study explores how sleep influences memory consolidation. Our research indicates that participants who had a full night's sleep performed better on memory tests compared to those who did not. Keywords: sleep, memory, neuroscience, cognition", "format": { "title": { "type": "string" }, "authors": { "type": "array", "items": { "type": "string" } }, "publicationDate": { "type": "string" }, "journal": { "type": "string" }, "abstract": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } } } }

or it can be an HTML, or general text document, or an article pdf whatever

Expected Output will be this,

{ "title": "The Effects of Sleep on Memory", "authors": [ "Dr. Jane Doe", "Dr. John Smith" ], "publicationDate": "2022-09-15", "journal": "Journal of Neuroscience", "abstract": "This study explores how sleep influences memory consolidation. Our research indicates that participants who had a full night's sleep performed better on memory tests compared to those who did not.", "keywords": [ "sleep", "memory", "neuroscience", "cognition" ] }