frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: FormData validation for TypeScript (Zod's most requested feature)

https://github.com/toozuuu/lite-schema-check
1•sachin97317•2h ago
I built a TypeScript validation library after getting frustrated with FormData in Remix/Next.js Server Actions.

The problem: Zod (the most popular validation library) doesn't have FormData support. It's their #1 requested feature with 60+ upvotes on GitHub [1], but they haven't implemented it.

So every Server Action looks like this:

    const name = formData.get('name') as string;
    const age = parseInt(formData.get('age') as string);
    // ... manual validation
I wanted:

    const result = validateFormData(formData, schema);
    // Automatic type conversion, validation done
While building this, I also added: - Partial validation (return valid data even with errors - useful for auto-save) - JSON Schema export (built-in, no external package needed) - File validation (size, MIME types) - XOR support (exactly one of these fields)

Zero dependencies. 3KB. MIT licensed.

GitHub: https://github.com/YOUR_USERNAME/lite-schema-check npm: npm install lite-schema-check

Technical details in README. Happy to answer questions about the implementation.

[1] https://github.com/colinhacks/zod/discussions (search for FormData)

Cara Buka Blokir Wondr by BnI

1•mamipapih•44s ago•0 comments

Things you're allowed to do (2020)

https://milan.cvitkovic.net/writing/things_youre_allowed_to_do/
1•walterbell•3m ago•0 comments

Photographers Build the Largest Remote Observatory

https://petapixel.com/2025/07/11/photographers-build-the-worlds-largest-remote-observatory/
1•jameslk•4m ago•0 comments

'The paradox of horror': How scary films can soothe your anxiety

https://www.bbc.com/future/article/20251024-how-horror-films-can-soothe-your-anxiety
1•1659447091•4m ago•0 comments

Newest MCP Newsletter: The Daily Gauss

https://www.gauss.news/
1•gianyrox•6m ago•0 comments

With impeccable timing, AWS debuts automated cloud incident report generator

https://www.theregister.com/2025/10/23/aws_cloudwatch_automated_incident_reports/
1•pyeri•9m ago•0 comments

Ask HN: Supplements for Memory That Work?

1•nullbio•13m ago•1 comments

Russia faces shrinking and aging population, tries restrictive laws to combat it

https://apnews.com/article/russia-birth-rate-population-demographics-putin-63ab4675ff6d4e415630b7...
2•toomuchtodo•20m ago•0 comments

Severe performance penalty found in VSCode rendering loop

https://github.com/microsoft/vscode/issues/272155
3•anticensor•23m ago•0 comments

However small, just start. From zero to hero

https://www.theguardian.com/lifeandstyle/2025/oct/26/expert-motivation-tips-gym-to-do-list
3•roundedge•24m ago•0 comments

Hacktoberfest 2025

https://hacktoberfest.com
2•dreamstick•25m ago•0 comments

We're in the Wrong Moment

https://ezrichards.github.io/posts/were-in-the-wrong-moment/
5•chilipepperhott•37m ago•2 comments

Before Trump Gutted the White House, Erdogan Built His 'White Palace'

https://www.washingtonpost.com/world/2025/10/26/trump-erdogan-renovation-palace-turkey-white-house/
4•zerosizedweasle•42m ago•1 comments

The state of the Rust dependency ecosystem

https://00f.net/2025/10/17/state-of-the-rust-ecosystem/
1•RustSupremacist•44m ago•0 comments

DeepSeek-OCR Model May Be The First Truly Human-like AGI

2•giardini•45m ago•2 comments

Trump's Ballroom Fundraising Taps Cash from Crypto, Tech Allies

https://www.bloomberg.com/news/articles/2025-10-26/trump-s-ballroom-fundraising-taps-cash-from-cr...
1•zerosizedweasle•45m ago•0 comments

Why Bubbles Can Keep Inflating in Plain Sight

https://www.wsj.com/finance/stocks/why-bubbles-can-keep-inflating-in-plain-sight-a4af6aef
1•zerosizedweasle•47m ago•0 comments

A New Zealand–Based News Aggregator Changing How We Read the Web

https://allheadline.com/
2•johopyu•50m ago•1 comments

Rust Bug Broke Ubuntu 25.10 Automatic Update Checks

https://www.omgubuntu.co.uk/2025/10/ubuntu-25-10-rust-coreutils-date-bug
1•LopRabbit•52m ago•1 comments

AI Discovers Novel Cancer Drug, or Did It?

https://www.mindprison.cc/p/ai-discovers-novel-cancer-drug-or-did-it-gemma-27b
2•13years•54m ago•0 comments

Git Rerere

https://git-scm.com/book/en/v2/Git-Tools-Rerere
2•vinhnx•54m ago•0 comments

Video Codecs are Secretly Tensor Codecs

https://dl.acm.org/doi/10.1145/3725843.3756078
2•entropyxu•57m ago•1 comments

My Experience Using Claude Code with Rolldown

https://hyf.me/blog/claude-code-in-rolldown-en
1•misonic•1h ago•0 comments

I'VE Gone to Look for America

https://magazine.atavist.com/2025/america-i95-conversations-trump
1•LostMyLogin•1h ago•0 comments

Post-Training Generative Recommenders with Advantage-Weighted Supervised Tuning

https://netflixtechblog.com/post-training-generative-recommenders-with-advantage-weighted-supervi...
1•CharlesW•1h ago•0 comments

Bitcoin Node Wars 2025: Is the Core v30 vs. Knots debate about Scalability?

http://unenumerated.blogspot.com/2017/02/money-blockchains-and-social-scalability.html
1•dbigge•1h ago•2 comments

America's Transportation Department Blocked a Self-Driving Truck Company

https://reason.com/2025/10/19/feds-pump-the-brakes-on-autonomous-trucks/
5•m463•1h ago•0 comments

Bill Gates-Backed 345 MWe Advanced Nuclear Reactor Secures Crucial US Approval

https://interestingengineering.com/energy/terrapower-nuclear-reactor-gets-us-approval
3•m463•1h ago•1 comments

Crafting Engineering Strategy

https://lethain.com/crafting-engineering-strategy/
1•gpi•1h ago•0 comments

What's the Matter with India? The judicial system as root of all evils

https://nicholasdecker.substack.com/p/whats-the-matter-with-india
2•haltingproblem•1h ago•0 comments