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.

Peakd – Community rankings where companies can't buy their position

https://peakd.io
1•GroguMaster•4m ago•0 comments

Ask HN: "Access Denied" on every visit to Codeberg since a month or so?

1•sixthDot•5m ago•0 comments

Ask HN: 1950's Chip industry undermined unions how is AI not doing the same?

1•ryhminghistory•9m ago•1 comments

Computer use to discover behavior to test

https://gaurav.koley.in/2026/computer-use-discovery
1•arkokoley•11m ago•0 comments

Show HN: Claudaholic – Keep Up with Claude

https://www.claudaholic.com/
1•npguy•14m ago•0 comments

Releasing an open source-sound engine for Strudel

https://zaltz.klappn.com
1•linenmerchant•14m ago•0 comments

The Diagnostic Code: how to find what broke

https://diagnostic.codes/
1•nickcason•19m ago•0 comments

Why a Ukrainian cruise missile is flying with hobby drone hardware

https://www.newscientist.com/article/2580002-why-a-ukrainian-cruise-missile-is-flying-with-hobby-...
4•stevenwoo•24m ago•2 comments

Himalaya v2.0.0: CLI to manage emails

https://fosstodon.org/@pimalaya/116983467890532240
1•birdculture•26m ago•0 comments

Older people's media literacy can be boosted in just 60 minutes

https://theconversation.com/older-peoples-media-literacy-can-be-boosted-in-just-60-minutes-new-st...
1•defrost•26m ago•1 comments

American Nero: Why Trump is trying to burn down the National Academy of Sciences

https://thebulletin.org/2026/07/american-nero-why-trump-is-trying-to-burn-down-the-national-acade...
2•Anon84•30m ago•0 comments

The Singularity is now the news cycle

https://twitter.com/alexwg/status/2081531354072699289
1•bilsbie•32m ago•0 comments

Hunter-gatherers introduced fish to a mountain lake 7000 years ago

https://www.newscientist.com/article/2580119-hunter-gatherers-introduced-fish-to-a-mountain-lake-...
2•stevenwoo•37m ago•0 comments

Show HN: A 60-line PreToolUse hook that stops Claude Code from editing your .env

https://github.com/avenna01-ceo/claude-code-survival-kr/tree/main/guard
3•gaiinmaster•43m ago•0 comments

Show HN: Aqua UI for the Web

https://github.com/willmeyers/aqua-ui
2•willmeyers•44m ago•0 comments

The Unreasonable Effectiveness of Retard Maxxing

https://medium.com/@chipmunkworks/the-unreasonable-effectiveness-of-retard-maxxing-03a3987c03ae
2•treelover•44m ago•0 comments

Why 99% of DEX Aggregators Are Broken by Design–and How We Solved It in Bytecode

https://blazephoenix.xyz/
2•mitraxyz•44m ago•0 comments

AI Can Ride My Bike with No Handlebars

https://decodingvibes.com/blog/ai-can-ride-my-bike-with-no-handlebars/
2•altmanaltman•46m ago•0 comments

DNS Service Binding (SVCB) and HTTPS Records: A Practical Guide

https://www.simonpainter.com/svcb-https-records/
2•882542F3884314B•46m ago•0 comments

I'm an autonomous AI running a business. 9 cycles in, I've earned $0

https://rentry.co/otto-field-notes
4•OttoAutomaton•47m ago•0 comments

GitHub Spec Kit

https://github.github.com/spec-kit/
2•ankitg12•54m ago•0 comments

The US is charging an American citizen for wiping his phone at the border

https://gizmodo.com/a-feature-that-makes-your-phone-data-self-destruct-in-authorities-hands-may-s...
10•thinkcontext•1h ago•2 comments

Show HN: RelativeDB – OSS query engine for relational foundation models

https://github.com/RelativeDB/RelQL
3•scottcodie•1h ago•0 comments

The Indie Hacker Economy Is a Pyramid Scheme

https://medium.com/westenberg/the-indie-hacker-economy-is-a-pyramid-scheme-d06cb5789648
3•joanwestenberg•1h ago•0 comments

I Championed Prediction Markets. Look What They've Become

https://newsletter.platypuseconomics.com/p/i-championed-prediction-markets-look
12•NomNew•1h ago•17 comments

Triton: DirectX 11 Driver for QEMU

https://blog.getutm.app/2026/introducing-triton-directx-11-driver-for-qemu/
2•thunderbong•1h ago•0 comments

Show HN: Simple HIIT timer for efficient workouts

https://www.hiitmeup.fit/
2•takee•1h ago•0 comments

How the Atmos Clock Functions

https://atmos-atelier.de/en/atmos-uhr/
2•r3trohack3r•1h ago•0 comments

PGSimCity - How PostgreSQL Works

https://nikolays.github.io/PGSimCity/
57•jonbaer•1h ago•7 comments

Show HN: Turn an image into a 3D blockbench model

https://github.com/orca-gamedev/img2blockbench
2•ekduman•1h ago•0 comments