frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A Zod alternative with runtime schema introspection

https://docs.cleverbrush.com
1•andrew_zol•1h ago
I built a TypeScript schema validation library that takes a different architectural approach from Zod and similar tools.

I started this project before I ever used Zod — I wanted to understand how schema validation/inference libraries works by building one from scratch. As I iterated on it, I realized the architecture was turning out surprisingly well, so I started using it in my internal projects. Now I consider it a full-fledged alternative to Zod with some unique features of its own, and I just published it to npm.

Some concrete numbers vs Zod v4:

- Performance: faster in 14/15 benchmarks. 1.2–2.6x on valid input, 8–204x on invalid input (early-exit optimization). Zod is ~8% faster on one union benchmark. - Bundle: 14 KB gzipped (full) vs Zod v4's 41 KB. Sub-path imports bring individual builders down to ~4 KB. - Implements Standard Schema v1, so it works with tRPC, TanStack Form, React Hook Form, T3 Env, Hono, etc.

Other things that might be of interest technically:

- Immutable fluent API — every `.method()` call returns a new builder instance - Type-safe extension system (`defineExtension()` + `withExtensions()`) as an alternative to `.refine()` — extensions are composable and introspectable - `extern()` wraps any Standard Schema v1 library (Zod, Valibot, ArkType) into a @cleverbrush/schema builder, so you can mix schemas from different libraries in one object

Zero runtime dependencies, 97.9% test coverage. BSD-3-Clause.

Docs with an interactive playground (no install required): https://docs.cleverbrush.com?utm_source=hackernews&utm_mediu...

Happy to answer questions about the architecture, the benchmarks, or the PropertyDescriptor design.

DocumentDB Fuse – FS interface for the database

https://github.com/xgerman/documentdbfuse
1•xgerman•1m ago•1 comments

Mindfulness, Programming, and the Mistake I Made

https://yonatanmedan.github.io/blog/mindfulness-programming-and-the-mistake-i-made/
1•eranation•1m ago•0 comments

AI coding assistant skill (Claude Code, Codex, OpenCode, OpenClaw, Factory Droid

https://github.com/safishamsi/graphify
1•safishamsi•8m ago•0 comments

Trump suspends Iran attack for two weeks, subject to Hormuz Strait opening

https://www.cnbc.com/2026/04/07/trump-iran-ceasefire-hormuz-strait.html
1•shinryudbz•9m ago•1 comments

Behind the curtain. A comprehensive guide to Russia internet censorship in 2026

https://en.zona.media/article/2026/04/07/russian_internet_censorship_2026
1•rudnevr•10m ago•0 comments

Crag – One governance file, every AI coding tool (50 repos, 96.4% accuracy)

https://github.com/WhitehatD/crag
2•whitehatd•10m ago•0 comments

Russian military hackers reroute British internet users' traffic

https://www.ft.com/content/d7e3294c-0a0e-4598-8687-93f5490d0cc5
1•petethomas•17m ago•0 comments

Xilem – An experimental Rust native UI framework

https://github.com/linebender/xilem
2•Levitating•18m ago•0 comments

Show HN: When Seeing Isn't Enough: Rescuing Stuck LLM Agents

https://zenodo.org/records/19463134
1•Caum•19m ago•0 comments

Voice AI that helps families find a parent's finances before crisis hits

https://www.clearnestme.com/landing.html
1•Avinash9menon•24m ago•0 comments

Ask HN: My Mac decided out of the blue to delete Node. Why?

1•JSLegendDev•25m ago•1 comments

Sardine: A stock market where AI agents trade in real time

https://github.com/lightbearco/sardine
1•dawar0•33m ago•0 comments

DRAM Memory Refresh

https://en.wikipedia.org/wiki/Memory_refresh
2•ivanjermakov•33m ago•0 comments

The pinnacle of enshittification, or Large Language Models

https://blogs.gentoo.org/mgorny/2026/04/05/the-pinnacle-of-enshittification-or-large-language-mod...
3•birdculture•34m ago•0 comments

North Korea's Contagious Interview Campaign Spreads Across 5 Ecosystems

https://socket.dev/blog/contagious-interview-campaign-spreads-across-5-ecosystems
1•pier25•36m ago•0 comments

US, Iran to pause war, agree to 2-week ceasefire

https://www.axios.com/2026/04/07/iran-2-week-ceasfire-trump-pakistan
25•cdrnsf•37m ago•14 comments

Apple and Lenovo have the least repairable laptops, analysis finds

https://arstechnica.com/gadgets/2026/04/apple-has-the-lowest-grades-in-laptop-phone-repairability...
3•jnord•41m ago•2 comments

An Autonomous Behavior System

https://www.axopods.com/
2•jsherm76•42m ago•0 comments

USCIS.gov sends user/visitor data to Meta and Google

https://varlog.in/inspect/
4•sricola•44m ago•0 comments

Show HN: Open Browser Control – drive your real Chrome from any MCP client

https://github.com/smankoo/open-browser-control
2•smankoo•46m ago•0 comments

Minecraft Java Edition 26.2 Snapshot 1: Initial Vulkan Support

https://www.minecraft.net/en-us/article/minecraft-26-2-snapshot-1
1•exploraz•46m ago•0 comments

Molecular editing tool relocates alcohol groups

https://openyourmindabretumente.blogspot.com/2026/04/molecular-editing-tool-relocates.html
1•ericzapata•46m ago•1 comments

Tabsdata vs. Airbyte: Up to 86x faster

https://medium.com/tabsdata/benchmarking-airbyte-vs-tabsdata-ee67a0639bef
1•immortan_dag•47m ago•0 comments

Nix: Privilege escalation via symlink following during FOD output registration

https://discourse.nixos.org/t/nix-security-advisory-privilege-escalation-via-symlink-following-du...
1•hexa-•50m ago•0 comments

The Musician's Guide to Leaving Windows [video]

https://www.youtube.com/watch?v=UaY23TSa4-0
1•Kye•51m ago•0 comments

When the compiler lies: breaking memory safety in safe Go

https://ciolek.dev/posts/when-the-compiler-lies
1•irke882•52m ago•0 comments

Anthropic holds Mythos model due to hacking risks

https://www.axios.com/2026/04/07/anthropic-mythos-preview-cybersecurity-risks
4•FergusArgyll•52m ago•1 comments

Fifth Element Star Milla Jovovich Reveals AI Memory Tool MemPalace

https://decrypt.co/363524/fifth-element-milla-jovovich-ai-tool-mempalace
3•iamben•52m ago•0 comments

BYD's luxury EV with 5-min fast charging and 500 miles range is headed overseas

https://electrek.co/2026/04/07/byd-ev-5-min-charging-500-miles-range-overseas/
8•breve•55m ago•4 comments

SQLite in the browser with WASM and real-time ER diagram

https://fasttools.dev/en/sql-playground
1•fabiano-salles•58m ago•1 comments