frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Dotenv-gad – typed, validated .env with CLI and grouping

https://github.com/kasimlyee/dotenv-gad
1•kasimlyee•1h ago
Hey HN,

I've been building small Node/TS apps for a while and got tired of the usual dotenv pitfalls: forgetting to set required vars, type mismatches (string vs number/port), or accidentally leaking secrets in logs/errors.

So I made dotenv-gad: a lightweight wrapper around dotenv that adds strong TypeScript inference, schema-based validation, and some practical extras.

Main things it does:

- Define a schema → get fully typed env object with inference - Built-in validators for url, email, port, json, arrays, objects, etc. - Custom rules: min/max, regex, enum, transform, validate fn - Group related vars automatically (e.g. DB_HOST, DB_PORT → db: { host, port }) - Compose schemas from different modules - Redacts sensitive values in error messages - Comes with a CLI for check/sync/generate-types/fix/init/docs

It's still early (v1.3), but I use it in my own projects and it's already saves me.

npm: https://www.npmjs.com/package/dotenv-gad

Would love to hear your thoughts, especially: - How do you currently handle env validation in TS projects? - What features are missing for your workflow? - Any rough edges / bugs you've spotted?

Thanks for looking!

Never Slide Out of the Day

https://aethermug.com/posts/nsoott%22
1•mrcgnc•52s ago•0 comments

Scammers posing as company CEOs surge in Japan

https://www.japantimes.co.jp/news/2026/01/19/japan/crime-legal/japan-ceo-emails-scams/
1•PaulHoule•56s ago•0 comments

Astronauts Are Going Back to the Moon for the First Time in Half a Century

https://time.com/7346146/artemis-ii-launch-nasa-astronauts-moon-mission/
1•ironyman•1m ago•0 comments

Eric S. Raymond: why is there such a variance in results from using LLMs?

https://twitter.com/esrtweet/status/2016849708254179501
1•dist-epoch•1m ago•0 comments

Ask HN: LLM and Human Coding Benchmarks?

1•weli•1m ago•0 comments

Apple Knowledge Navigator Video (1987)

https://www.youtube.com/watch?v=umJsITGzXd0
2•noodlebird•1m ago•0 comments

Strassen's Matmul with Avx 512

https://martianlantern.github.io/2026/01/strassen-matrix-multiplication/
1•martianlantern•2m ago•0 comments

Averting the Code Quality Apocalypse

https://sibylline.dev/articles/2026-01-29-the-code-quality-apocalypse/
2•CuriouslyC•2m ago•0 comments

Show HN: Free AI Scan for Hidden Spend and Data Risk

1•bahaii•2m ago•0 comments

Where do we go from here? Some thoughts and speculation

https://blog.codesolvent.com/2025/08/where-do-we-go-from-here-some-thoughts.html
1•Edmond•3m ago•0 comments

Microsoft stock plummets as investors fret on AI spend

https://finance.yahoo.com/news/microsoft-q2-earnings-beat-but-stock-plummets-as-investors-fret-on...
4•m-hodges•4m ago•0 comments

Elixir, Kotlin, C# Outperform Python, TypeScript and Go on AutoCode Benchmark

https://github.com/Tencent-Hunyuan/AutoCodeBenchmark/blob/main/figures/exp_acb.png
1•bnchrch•5m ago•0 comments

US cybersecurity chief leaked sensitive government files to ChatGPT: Report

https://www.dexerto.com/entertainment/us-cybersecurity-chief-leaked-sensitive-government-files-to...
3•randycupertino•6m ago•0 comments

Drug trio found to block tumour resistance in pancreatic cancer

https://www.drugtargetreview.com/news/192714/drug-trio-found-to-block-tumour-resistance-in-pancre...
2•axiomdata316•7m ago•0 comments

Show HN: Prompt → landing page: locally-run AI with a execution layer (demo)

https://github.com/indyh91/Nyxi-Showcase/releases/tag/V1.0.0
1•Shaehenderson•9m ago•0 comments

Show HN: Sparklevalidator.com (For Appcast.xml Files)

https://sparklevalidator.com/
1•dweekly•9m ago•0 comments

Beta testing of WebUSBUnpinner – a tool to investigate platform worker's privac

https://reversing.works/posts/2026/01/help-reversing.works-empower-workers-by-testing-our-tool/
1•todsacerdoti•9m ago•0 comments

Judge in Minnesota Says ICE Has Violated Nearly 100 Court Orders

https://www.nytimes.com/2026/01/28/us/politics/judge-minnesota-ice-court-orders.html
4•judahmeek•9m ago•1 comments

Show HN: Nomod payment integrated into usage-based billing stack

http://Link:admin.flexprice.io
4•ShreyaChaurasia•11m ago•2 comments

Ask HN: How do teams revoke access to long-lived encrypted cloud data?

1•allen-chen•11m ago•1 comments

Ecological economics

https://en.wikipedia.org/wiki/Ecological_economics
1•RetroTechie•12m ago•0 comments

Brute-forcing an Air Traffic Radar onto a 1-bit E-ink display

https://turbulencegains.com/trmnl-flight-radar-guide/
1•jerr9185•13m ago•0 comments

Days numbered for 'risky' lithium-ion batteries

https://www.livescience.com/technology/engineering/days-numbered-for-risky-lithium-ion-batteries-...
7•Brajeshwar•14m ago•0 comments

lego: Let's Encrypt/ACME client and library written in Go

https://github.com/go-acme/lego
1•petecooper•14m ago•1 comments

Accidental climate scientist who uncovered an unexpected force of global warming

https://www.cnn.com/2026/01/29/science/climate-crisis-crafoord-prize-veerabhadran-ramanathan
1•Brajeshwar•14m ago•0 comments

OpenSUSE Governance Proposal

https://gitlab.com/jeffmahoney/opensuse-docs/-/blob/main/governance-draft.md
1•Tomte•14m ago•0 comments

Government Comic Books (2023)

https://www.beautifulpublicdata.com/government-comic-books/
1•Brajeshwar•14m ago•0 comments

HMP: A Cognitive Application Protocol for Agent Networks

1•kagvi13•15m ago•1 comments

Why LLM chat-interfaces limit learning

https://obliqueangles.substack.com/p/why-llm-chat-interfaces-limit-learning
2•TomBers•15m ago•0 comments

Chaos Testing for LLM Agents

https://github.com/arielshad/balagan-agent
1•ArielSh•15m ago•1 comments