News for hackers. Stuff that matters.

lakssh

Show HN: I made a web app that let's you convert your SVG's into 3D models

https://www.vecto3d.xyz/

So, one day, I was bored and decided to open Blender. I loaded up a logo that I designed and then started playing around with the different tools to make it 3D. I knew that you could convert any SVG to 3D models in Blender or web tools like Spline, but I wanted to make it easier and faster.Then, I checked the web and found a few tools, but they were pretty much paid or had no 3D model export...

( Read More... | no comments | on HN )
thanks :)

Show HN: A simple Next.js waitlist template with Notion as CMS

https://nextjs-notion-waitlist.vercel.app/

Hey everyone!!I just finished working on a new waitlist template using Next.js 14 and Notion as a CMS, and I thought it’d be cool to share it with everyone here!The idea is simple: manage your waitlist users directly from Notion. No need to set up a complicated backend! Plus, I’ve added Upstash Redis for rate limiting and Resend for sending emails, with a clean UI built using shadcn/ui, Magic...

( Read More... | 3 comments | on HN )
Re:Morph2json – Waitlist Is Live on Monday June 24, 2024 @03:27AM (#40773343)
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

Creating an API for users to convert their unstructured data to JSON on the go, ensuring type safety :)
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.

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 ^_^

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" } } }

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" ] }