frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Gen-ts-type – Code Generate TS Type from JSON data with collapsed field

https://gen-ts-type.surge.sh
1•aabbcc1241•6h ago
I built a tool to generate TypeScript types from JSON/JS data, initially to tackle the deeply nested arrays in for a few JSON RPC API (e.g., array[0].content.section.contents[0].item.contents[0] could be a aItem or bItem). Some existing tools generate named union types at every level, which can get messy. This tool automatically converts fields to optional at the right depth, making the types cleaner and easier to use.

Features: - Web UI: Paste JSON, get TypeScript types instantly - CLI or importable in TypeScript projects - Handles complex types (nested objects, arrays, etc.) - Supports optional fields and union types where needed

Try the Web UI: https://gen-ts-type.surge.sh

Also published on github and npm as gen-ts-type

Feedback welcome!

Are ultra-processed foods as addictive as cigarettes?

https://www.nationalgeographic.com/premium/article/addiction-ultra-processed-junk-foods
1•Sikara•1m ago•0 comments

X Reveals Grok System Prompt: Told to Push 'White Genocide' in All Replies

https://blog.ai-futures.org/p/make-the-prompt-public
1•isaacfrond•1m ago•0 comments

Show HN: Firsto – A product launch platform where every launch stays visible

https://firsto.co
1•laimingj•2m ago•0 comments

How we made our optical character recognition (OCR) code more accurate

https://pieces.app/blog/how-we-made-our-optical-character-recognition-ocr-code-more-accurate
2•thunderbong•4m ago•0 comments

Fortnite' Returns to Apple App Store After Four-Year Battle

https://www.bloomberg.com/news/articles/2025-05-20/epic-games-fortnite-returning-to-apple-app-store-after-spat
1•k2enemy•8m ago•1 comments

An Almost Pointless Exercise in GPU Optimization

https://blog.speechmatics.com/pointless-gpu-optimization-exercise
1•atomlib•11m ago•0 comments

Just 100 corporations responsible for 20% of the extractive conflicts

https://www.uab.cat/web/newsroom/news-detail/just-100-corporations-responsible-for-20-of-the-world-s-extractive-conflicts-1345830290613.html?detid=1345953963539
1•robtherobber•12m ago•0 comments

Pperformance of a large language model on the reasoning tasks of a physician

https://arxiv.org/abs/2412.10849
1•ibobev•14m ago•0 comments

Spain clamps down on Airbnb as tourism backlash returns for summer

https://www.bbc.com/news/articles/c3wdd8lg581o
2•gemanor•18m ago•0 comments

On File Formats

https://solhsa.com/oldernews2025.html#ON-FILE-FORMATS
1•ibobev•21m ago•0 comments

Oxide Computer Company – Thoughts from an Outsider

https://rafaeldtinoco.notion.site/oxide-computer-company-part-1
1•tanelpoder•25m ago•0 comments

Michael Bay's Skibidi Toilet Movie Releases First Details as Production Starts

https://thedirect.com/article/michael-bay-skibidi-toilet-movie-first-details
1•thinkingemote•25m ago•0 comments

Huang's Law

https://en.wikipedia.org/wiki/Huang%27s_law
2•andsoitis•28m ago•0 comments

Trump tanks EU business travel to America

https://www.politico.eu/article/donald-trump-eu-business-america-europe-politics-global-tariff/
4•mdp2021•28m ago•0 comments

Show HN: Satoshi Eye – Check crypto wallet risk(hacks, sanctions, darknet)

1•sudhir300582•31m ago•0 comments

Chicago Sun-Times confirms AI used to create reading list of nonexistent books

https://www.theguardian.com/us-news/2025/may/20/chicago-sun-times-ai-summer-reading-list
4•phony-account•36m ago•0 comments

Hey Is Finally for Sale on the iPhone

https://world.hey.com/dhh/hey-is-finally-for-sale-on-the-iphone-a08cb218
2•robenkleene•40m ago•0 comments

Show HN: Koan – Extracts Startup Ideas from Real User Pain

https://koanapp.com/
2•robsanna•43m ago•0 comments

Show HN: A simple meal planner that intergrates with Paprika

https://spoonfed.cals.cafe/
1•callumgare•43m ago•0 comments

Idea Aquarium

https://paragraph.com/@rm/ideas-flow-freely
2•rmrmrm•43m ago•1 comments

Twirling your first fork: A beginner's guide to Open Source contribution

https://opensource.net/your-first-fork-open-source/
3•billybuckwheat•45m ago•0 comments

How a Skeptical Philosopher Becomes a Christian

https://larrysanger.org/2025/02/how-a-skeptical-philosopher-becomes-a-christian/
2•thinkingemote•48m ago•0 comments

Spain blocks more than 65,000 Airbnb holiday rental listings

https://www.reuters.com/world/europe/spains-consumer-rights-ministry-blocks-more-than-65000-airbnb-listings-holiday-2025-05-19/
2•isaacfrond•50m ago•0 comments

Fortnite returns to the Apple App Store after a 5-year hiatus

https://twitter.com/TimSweeneyEpic/status/1924970858558128424
1•isaacfrond•50m ago•0 comments

Ask HN: How are you using LLMs for research on a library of journal articles?

1•jopizio•51m ago•0 comments

Rust developers offered $20k for rav1d to reach C performance

https://www.developer-tech.com/news/rust-developers-offered-20k-rav1d-to-reach-c-performance/
1•fork-bomber•51m ago•1 comments

A man who invented Twitter ended up broke

https://twitter.com/0xAbhiP/status/1924820022590927331
6•rmason•1h ago•1 comments

A Billion Streams and No Fans': Inside a $10M AI Music Fraud Case

https://www.wired.com/story/ai-bots-streaming-music/
3•Hoasi•1h ago•0 comments

Is this necassary to fail at first time? No money with 280 Users

1•gurpreet_codes•1h ago•1 comments

How we might have viewed the continuum hypothesis as a fundamental axiom

https://www.youtube.com/watch?v=jxu80s5vvzk
1•FillMaths•1h ago•0 comments