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.

KV Cache vs. Prompt Cache: What's the Difference, and How Are They Related?

https://jaketao.com/language/en/kv-cache-vs-prompt-cache/
1•taojing10•37s ago•0 comments

From Chat Completions to Responses: Why Is OpenAI Upgrading Its Core API?

https://jaketao.com/language/en/why-openai-upgrading-api/
1•taojing10•1m ago•0 comments

Live Coronal Prediction – 2026 Total Solar Eclipse

https://eclipse.predsci.com/
1•corlinp•2m ago•1 comments

Argentine company accuses US of meddling in Huawei project

https://www.ft.com/content/051e6fbf-e796-4b92-9c6e-7b85c74e8edc
1•wslh•2m ago•1 comments

Health factors that delay dementia for up to 13 years

https://www.nbcnews.com/health/aging/delay-dementia-health-factors-diabetes-blood-pressure-smokin...
1•elo2000•2m ago•0 comments

Water utilities group partners with DEF CON offshoot for Water Watch Center

https://therecord.media/water-watch-center-utilities-def-con-franklin-nrwa
1•speckx•7m ago•0 comments

Don't Forget to Flush [video]

https://www.youtube.com/watch?v=f30PceqQWko
1•dboon•9m ago•0 comments

Show HN: ReadMyStatement – Where did the money go?

https://readmystatement.com/
1•nadermx•10m ago•0 comments

Computer maker Framework notifies 'all customers' of a data breach

https://techcrunch.com/2026/08/07/computer-maker-framework-notifies-all-customers-of-a-data-breach/
1•sylvainkalache•11m ago•1 comments

An Underscore Sent an Innocent Man to Jail

https://canliiconnects.org/en/commentaries/99756
2•pseudolus•14m ago•0 comments

Protesting Flock, Arizona Man Presents Plan to Surveil Government Officials

https://www.404media.co/casa-grande-arizona-flock-city-council/
2•amai•15m ago•0 comments

Show HN: Alyph, a manual transmission for LLM context

https://www.alyph.ai/
1•rrr_oh_man•17m ago•0 comments

I created a minimal file sharing service with direct downloads

2•codesurya•17m ago•0 comments

Show HN: Rendemo, turn any web app into an interactive demo

https://www.rendemo.com
1•jakegargaro17•18m ago•0 comments

One agent, every surface: how we built the Kiro agent harness

https://kiro.dev/blog/one-agent/
2•mariuz•20m ago•0 comments

Under the hood of a Gleam test-framework

https://markuseliasson.se/article/under-the-hood-of-a-gleam-test-framework
1•eliasson•22m ago•0 comments

Europe's drought reveals medieval buildings, Nazi warships, mammoth remains

https://www.reuters.com/pictures/europes-drought-reveals-medieval-buildings-nazi-warships-mammoth...
2•layer8•24m ago•0 comments

Supersonic Trebuchet [video]

https://www.youtube.com/watch?v=Co57SfcT-h0
1•petepete•29m ago•0 comments

Kitesurf from Cloudflare, The Browser for the Agentic Cloud

https://kitesurf.cloudflare.app/
1•jbernardo95•30m ago•0 comments

Show HN: Make your own unique maps for collections, trips etc.

https://supakit.app/apps/mapiq
2•akshayKMR•30m ago•0 comments

A Quick(ish) Chinchilla Check

https://www.gilesthomas.com/2026/08/chinchilla-check
1•gpjt•36m ago•0 comments

Mykhailo Fedorov reveals struggle to secure Patriot missiles and Western support

https://www.uawire.org/former-ukrainian-defense-minister-mykhailo-fedorov-reveals-struggles-to-se...
2•greedo•37m ago•0 comments

Show HN: Undocking – Publish agent generated content to the web

https://www.undocking.io/
1•marciojmo•39m ago•1 comments

A Chatbot-Free Childhood Will Be a Status Symbol

https://www.theatlantic.com/technology/2026/08/ultra-processed-childhood-ai/688217/
1•mikelgan•40m ago•1 comments

Ten ways I've Sped Up Sonic on the Amiga 1200

https://www.patreon.com/REASSEMBLER68K/posts/10-ways-ive-sped-165857597
3•fidotron•40m ago•0 comments

The Llama Tests

https://www.llamatests.org/
1•erhuve•40m ago•0 comments

Why Narendra Modi's economic model is not working for India's youth

https://www.ft.com/content/8ada381f-e1ff-4f29-9468-1edb138c5cc9
3•thunderbong•41m ago•2 comments

LA hides oil wells in plain sight [video]

https://www.youtube.com/watch?v=wPL4mNxY3Tw
1•t23•42m ago•0 comments

WordPress CVE-2026-64638 Pre-Auth XSS to RCE

https://pwn.ai/blog/xss2shell
1•thepill•45m ago•0 comments

SLOs from Mesh Metrics: A 30-Day Implementation Playbook

https://www.buoyant.io/blog/slos-from-mesh-metrics-a-30-day-implementation-playbook
1•PagCatOli•48m ago•0 comments