frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

LLM functions in TypeScript: a composable pattern for prompt/LLM/parse/execute

https://medium.com/llm-exe
5•llm-exe•1y ago

Comments

llm-exe•1y ago
A few weeks ago I posted about llm-exe, a TypeScript library for structuring LLM calls with reusable components.

I just put together a Medium series that digs deeper into how it works. It breaks down the idea of an LLM function - an executor that wraps a prompt, a model, and a parser. Each part does one thing well, and together they give you a clean, well-typed, testable, and composable way to work with LLMs.

The posts walk through each layer: prompt, parser, LLM, executor. If you're building LLM features in production with TypeScript, I think you’ll find the structure helpful. I am interested in any feedback.

Medium series: https://medium.com/llm-exe

mrbashtech•1y ago
Great work! folks at llm-exe; As a TypeScript developer working with LLMs, llm-exe has been a game-changer for me. It abstracts away the boilerplate of prompt formatting, model integration, and response parsing, allowing me to focus on building features.

The modular design—separating prompts, parsers, and executors—makes my codebase cleaner and more maintainable. Plus, the ability to switch between different LLM providers with minimal code changes is incredibly convenient.

Leverage Points

https://donellameadows.org/archives/leverage-points-places-to-intervene-in-a-system/
1•tosh•1m ago•0 comments

212k AI coding benchmarks: context beats generic prompts

https://techloom.it/blog/effective-ai-coding-prompts/
1•tmuhlestein•2m ago•0 comments

I Accidentally Became the DevOps Guy

https://sgaud.com/texts/devops
1•SarthakGaud•3m ago•0 comments

NY sues prediction market Kalshi alleging it's an illegal gambling operation

https://www.cnn.com/2026/07/31/politics/new-york-sues-kalshi-prediction-market
2•pavel_lishin•4m ago•0 comments

Arch AUR Under Another Wave of Malicious Packages, Package Adoptions Halted

https://www.phoronix.com/news/Arch-Linux-AUR-Adoptions-Halted
1•ImJamal•5m ago•0 comments

Why is differentiating mechanics and integration art?(2011)

https://mathoverflow.net/questions/66377/why-is-differentiating-mechanics-and-integration-art
1•num42•5m ago•0 comments

Detect Dark Matter's Mark from Your Backyard

https://spectrum.ieee.org/dark-matter
3•Brajeshwar•6m ago•0 comments

Show HN: Active inference world models: From finding a mug to making tea

https://cpnslab.com/active-inference-world-models/
1•alexdshaw•8m ago•0 comments

Effects in Hale

https://hale-lang.org/articles/effects-in-hale/
1•rrook•9m ago•1 comments

Show HN: Tandem – run Claude Code and Codex as one paired session)

https://github.com/Bhavya6187/tandem
1•bhavya6187•9m ago•0 comments

Seattle's Third Act

https://www.ascend.vc/blog/seattles-third-act
1•surprisetalk•11m ago•0 comments

Show HN: Run manual QA test cases in a real browser with an AI agent

https://github.com/broxhq/qpilot
1•Muhammad-21•12m ago•0 comments

Authorize, Don't Authenticate

https://blog.marcua.net/2026/07/31/authorize-dont-authenticate.html
1•marcua•14m ago•0 comments

Solar panel power generation calculator, taking into account weather conditions

https://specled.com/en/w/calculating-the-position-performance-and-payback-of-solar-panels/
1•Specled•14m ago•1 comments

KindaRails2Shell attack details and tools to perform a forensic investigation

https://github.com/rails/rails-forensics-CVE-2026-66066
1•ezekg•15m ago•0 comments

Starbucks bet big on an AI tool; 9 months later, it pulled the plug

https://www.fastcompany.com/91572019/starbucks-bet-big-ai-tool-national-scale-9-months-inventory-...
2•speckx•15m ago•0 comments

Microsoft is about to kill my favorite Edge feature – and Copilot is to blame

https://www.windowscentral.com/software-apps/microsoft-is-about-to-kill-my-favorite-edge-feature-...
1•realsarm•16m ago•0 comments

Codeberg Degraded Service

https://status.anoxinon.de/status/anoxinon
1•pelasaco•19m ago•1 comments

Run Kimi K3 using 29 GB of RAM at 0.50 tok/s

https://github.com/sqliteai/waste
1•marcobambini•19m ago•0 comments

The physics of Docker build caching

https://www.blacksmith.sh/blog/the-physics-of-docker-build-caching
3•piobio•20m ago•0 comments

Cookie Chaos: How to bypass __Host and __Secure cookie prefixes

https://portswigger.net/research/cookie-chaos-how-to-bypass-host-and-secure-cookie-prefixes
1•one33seven•21m ago•0 comments

Cro – elegant reactive services in Raku

https://cro.raku.org/
1•giancarlostoro•22m ago•0 comments

Hiding Information Inside Images

https://nullonerror.org/2026/02/13/hiding-information-inside-images/
1•delduca•22m ago•0 comments

Firedome

https://www.fire-dome.com/
2•speckx•26m ago•0 comments

OpenQ4 0.9.0: open-source reimplementation of Quake 4

https://github.com/themuffinator/openQ4/releases/tag/v0.9.0
1•klaussilveira•26m ago•0 comments

Better to Beg Forgiveness

https://pluralistic.net/2026/07/31/just-do-it/
4•hn_acker•26m ago•0 comments

Smallpox reached the Americas: first genomic evidence points to Europeans

https://www.nature.com/articles/d41586-026-02366-y
1•Brajeshwar•27m ago•0 comments

IBM Claims Quantum Advantage with New Validation Techniques

https://spectrum.ieee.org/ibm-verifiable-quantum-advantage
1•nateb2022•27m ago•0 comments

Oceanographers Find Lessons in the Great Nike Shoe Spill (1992)

https://archive.seattletimes.com/archive/19921122/1526004/oceanographers-find-lessons-in-the-grea...
1•EndXA•27m ago•0 comments

Show HN: AI Photo Editor No Sign Up – Edit Photos with Prompts

https://aiphotoeditornosignup.online/
1•chenliang001•29m ago•0 comments