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.

The Economy of Tokens

https://twitter.com/vipulved/status/2071404852908081211
1•gmays•1m ago•0 comments

Former Microsoft engineer shrinks Notepad down to size

https://www.theregister.com/os-platforms/2026/06/30/former-microsoft-engineer-shrinks-notepad-dow...
1•Bender•1m ago•0 comments

How the AI bubble could pop and take down the global economy according to BIS

https://www.theregister.com/ai-and-ml/2026/06/29/how-the-ai-bubble-could-pop-and-take-down-the-gl...
1•Bender•1m ago•0 comments

Vega: Zero-knowledge proofs for digital identity in the age of AI

https://www.microsoft.com/en-us/research/blog/vega-zero-knowledge-proofs-for-digital-identity-in-...
1•thunderbong•2m ago•0 comments

AI coding tools should reach beyond the editor

https://mineti.dev/articles/ai-beyond-the-editor/
2•mineti•3m ago•0 comments

Show HN: Makes local LLMs faster and more reliable by optimizing for your device

https://www.autotunellm.com/
3•tanavc•4m ago•0 comments

Amazon Seller Reveals Rare Glimpse of Shadow Bribery Market

https://www.bloomberg.com/news/articles/2026-06-24/inside-the-shadow-market-selling-access-to-ama...
2•petethomas•5m ago•0 comments

New Sweden: the US's long-lost 'secret' colony

https://www.bbc.com/travel/article/20260629-new-sweden-the-uss-long-lost-secret-colony
1•onemoresoop•6m ago•0 comments

Show HN: My Morning Report

https://my-morning-report.vercel.app
1•bchhabra2490•7m ago•0 comments

The Trojaning of MICQ (2003)

https://lwn.net/Articles/22991/
1•LorenDB•7m ago•0 comments

Digital Candy

https://www.digitalcandy.com/
1•bhartzer•9m ago•0 comments

Claude Sonnet 5 is here

https://twitter.com/ClaudeDevs/status/2072018504392601762
1•alvis•11m ago•0 comments

Show HN: Supaslides – Create on-brand animated carousels in 60 seconds

https://supaslides.app
1•wilczyn•11m ago•0 comments

Accidental CISO

https://accidental-ciso.alevsk.dev/game
1•alevsk•11m ago•0 comments

Grief, Growth, and My Future as a Programmer

https://blog.jorj.tech/posts/grief-growth-and-my-future-as-a-programmer/
1•georgeeshawiv•11m ago•0 comments

OpenAI: GeneBench-Pro

https://openai.com/index/introducing-genebench-pro/
1•gavinray•11m ago•0 comments

Why did early ASCII have ← and ↑ but not ↓ or →?

https://retrocomputing.stackexchange.com/questions/30618/why-did-early-ascii-have-%e2%86%90-and-%...
1•pavel_lishin•12m ago•0 comments

Homebrewing for Beginners

https://blog.jorj.tech/posts/homebrewing-for-beginners/
2•georgeeshawiv•12m ago•0 comments

Why American data centers can't plug in

https://worksinprogress.co/issue/why-american-data-centers-cant-plug-in/
1•nedruod•13m ago•0 comments

Real-time cyber safeguards on Claude Opus and Sonnet

https://support.claude.com/en/articles/14604842-real-time-cyber-safeguards-on-claude-opus-and-sonnet
2•garo-pro•14m ago•0 comments

What are Forward Deployed Engineers, and why are they so in demand?

https://newsletter.pragmaticengineer.com/p/forward-deployed-engineers
1•saisrirampur•15m ago•0 comments

Introduction to Power Trading

https://app.lectogram.com/shared/QpqigYs4U6ay70c6YdO7dFL6NAbxSQS3hP6C_5G8goM
4•jackogrady•16m ago•0 comments

The Key Benefits of Model-Based Design

https://www.modeloop.app/blog/key-benefits-of-model-based-design/
1•lucamark•16m ago•0 comments

Interfere: Ship software that never breaks

https://interfere.com/
1•spking•16m ago•0 comments

Deadlines Don't Reduce Quality

https://julien.ch/posts/a-deadline-is-a-constraint-not-a-threat/
1•julien-may•16m ago•0 comments

A Founder's Previously Unknown Attempt to Avert the Revolutionary War

https://www.nytimes.com/2026/06/30/us/250-american-revolution-john-dickinson.html
1•droidjj•17m ago•0 comments

Ask HN: What tool are you using for A/B tests and analyzing and documenting them

1•ciwolex•17m ago•0 comments

Claude Sonnet 5

https://www.anthropic.com/news/claude-sonnet-5
120•marinesebastian•18m ago•44 comments

Building a Jax training loop for an LLM training run

https://www.gilesthomas.com/2026/06/llm-from-scratch-34a-building-a-jax-training-loop-for-an-llm-...
1•gpjt•18m ago•0 comments

Show HN: An agent harness with model autorouting and memory

1•aperi•18m ago•0 comments