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.

Are we giving away our civilization to the Frontier Labs?

https://twitter.com/AutismCapital/status/2113038245433163808
1•bigwheels•38s ago•0 comments

Robotaxi – Safety

https://www.tesla.com/robotaxi/safety
1•shekhar101•1m ago•0 comments

Mark Zuckerberg Agrees to Stay in California Despite Billionaires' Tax Measure

https://www.wired.com/story/mark-zuckerberg-agrees-to-stay-in-california-despite-billionaires-tax...
1•mikelgan•2m ago•0 comments

US Denaturalizes 2 People Who Gained Citizenship Hiding Criminal Activity

https://www.justice.gov/opa/pr/trump-administration-denaturalizes-two-people-who-gained-us-citize...
1•gnabgib•5m ago•0 comments

Meta's new terms say if its AI makes a mistake, it will be the customer's fault

https://www.cio.com/article/4237395/metas-new-enterprise-contract-says-if-its-ai-makes-a-mistake-...
2•cdrnsf•5m ago•0 comments

Update your Xbox Series S|X WebUSB through WebUSB

https://dzervas.github.io/xpad-webusb-update/
1•ttouch•9m ago•0 comments

Morph 4K Firmware v4: Simulating the Physics of Retro Video

https://www.pixelfx.co/post/morph-4k-firmware-v4-simulating-the-physics-of-retro-video
1•bpierre•14m ago•0 comments

GameFrame: Agentic Framework for Reverse Engineering Games

https://tanepiper.github.io/game-frame/
3•tanepiper•15m ago•1 comments

Veggie Thursdays and vegan surprises How Ghent became a plant-based paradise

https://www.theguardian.com/food/2026/oct/21/veggie-thursdays-vegan-surprises-ghent-plant-based-p...
1•rdmuser•15m ago•0 comments

Completing a task does not remove the work of managing it

https://civicpivot.blogspot.com/2026/10/the-work-hidden-inside-just-ask.html
1•civicpivot•19m ago•0 comments

They Created a Cell That's Almost Alive. What to Do with It Now?

https://www.nytimes.com/2026/10/14/science/spudcell-adamala-biotic.html
3•CharlesW•20m ago•0 comments

Postgres Recovery_prefetch Considered Harmful and Causing Outages

https://ardentperf.com/2026/10/20/postgres-recovery_prefetch-considered-harmful-and-causing-outages/
1•plaur782•20m ago•0 comments

Qpack amplification attacks against HTTP/3 servers

https://foxio.io/blog/header-accordions-qpack-amplification-attacks-against-http-3-servers
5•kozika•20m ago•0 comments

Dense Sand – Sovereign BYOA AI SoC Platform for AWS

https://aws.amazon.com/marketplace/pp/prodview-iamlatxnobx7o
1•DenseSand•22m ago•0 comments

Make Your Startup More Powerful, Not Just More Profitable

https://www.paulgraham.com/powerful.html
4•mrkn1•24m ago•0 comments

SimulaVR Compute Pack Progress

https://simulavr.com/blog/compute-pack-progress/
1•ai_critic•24m ago•0 comments

A tale of two PHP remote vulnerabilities

https://calif.io/php2shell.x/
1•kozika•25m ago•0 comments

Fil-PHP

https://github.com/pizlonator/fil-c/pull/338
3•SSLy•26m ago•0 comments

Misaligned

https://thezvi.substack.com/p/misaligned
2•7777777phil•27m ago•0 comments

Adversarial interoperability is a team sport

https://pluralistic.net/2026/10/21/brittle-individualism/
1•hn_acker•27m ago•0 comments

EFF's State Legislative Agenda to End ALPR Mass Surveillance

https://www.eff.org/deeplinks/2026/10/effs-state-legislative-agenda-end-alpr-mass-surveillance
2•hn_acker•28m ago•0 comments

Airbnb's new "Reasonable house rules and requests" guidelines for hosts

https://www.airbnb.com/help/article/4168
2•embedding-shape•28m ago•0 comments

39-humanizer, for anyone under 40 who would rather not sound like a bot

https://github.com/OmShiv/39-humanizer
1•OmShankar3•30m ago•0 comments

Show HN: ReviewerAgent and StopContinue, for CC and Codex with Pi

https://github.com/rladr-org/reviewer-agent
1•raylad•30m ago•0 comments

Imaging Black Holes with Julia [video]

https://www.youtube.com/watch?v=eHTuWt3JnZc
1•adgjlsfhk1•31m ago•0 comments

What Lego Lost When It Grew Up

https://www.theatlantic.com/culture/2026/10/lego-adult-market/689051/
1•wltyn•33m ago•2 comments

Oracle Security Alert Advisory – CVE-2026-91403 (eMudhra cert revocation)

https://www.oracle.com/security-alerts/alert-cve-2026-91403.html
18•rayhaanj•36m ago•3 comments

Recompiling the Lion King (SNES, 1994) with an Agent

https://kinduff.com/2026/10/21/recompiling-the-lion-king-with-an-agent/
2•kinduff•36m ago•0 comments

Reactive Optimizers: rewrite the optimizer's source code during training

https://xingjianbai.com/reactive-optimizers/
2•matt_d•36m ago•0 comments

Malleable Systems Collective

https://malleable.systems/
2•so-cal-schemer•36m ago•1 comments