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.

Linux Maintainer Greg Kroah-Hartman Says AI Tools Now Useful, Finding Real Bugs

https://www.theregister.com/software/2026/03/26/linux-kernel-czar-says-ai-bug-reports-arent-slop-...
1•root-parent•2m ago•0 comments

Food for Agile Thought 549: Makers Manifesto, Open Knowledge Format

https://age-of-product.com/food-agile-thought-549-ai-product-2026/
1•swolpers•2m ago•0 comments

Nikolai Evreinov, the 19th century Nathan Fielder

https://mssv.net/2026/06/16/meet-nikolai-evreinov-the-19th-century-nathan-fielder/
1•surprisetalk•4m ago•0 comments

Software Foundations being translated to Lean

https://leanprover.zulipchat.com/#narrow/channel/579630-Project-announcements/topic/Software.20Fo...
1•navidhg•4m ago•0 comments

Before Bill Nye, There Was Julius Sumner Miller

https://www.openculture.com/2026/06/before-bill-nye-there-was-julius-sumner-miller-watch-complete...
1•AdmiralAsshat•5m ago•0 comments

Show HN: Brain Frog – Can you be random enough for 11 lines of JavaScript?

https://brainfrog.lol
2•AlexanderZ•6m ago•2 comments

McDonald's is serving Fried Apple pie again for America's 250th birthday

https://apnews.com/article/mcdonalds-fried-apple-pie-america-250-962c7e82d7d5089bf63b2e7258f1c864
1•tocs3•6m ago•0 comments

Android lock-screen "snooze" proposal to mitigate public password exposure

https://issuetracker.google.com/issues/522872456
1•raxrbx•7m ago•0 comments

Italy's antitrust regulator probes Apple cloud services re: Digital Market rules

https://www.reuters.com/legal/litigation/italys-antitrust-regulator-probes-apple-over-cloud-servi...
2•1vuio0pswjnm7•8m ago•0 comments

Causal graph memory for LLMs. Flat token cost, no matter how the session runs

https://github.com/raphaelwkago-sketch/rudi
1•w4mwati•10m ago•0 comments

Ask HN: Looking for SaaS GTM co-founder

1•roundos_maker•12m ago•0 comments

The Java Virtual Thread Pinning Trap (Performance Regression)

https://medium.com/@yalovoy/the-java-virtual-thread-pinning-trap-that-turns-your-loom-migration-i...
1•zero-ground-445•14m ago•0 comments

UK's top data and AI regulator quits after 'inappropriate' humour

https://www.bbc.com/news/articles/c0eyq7rnn22o
1•ilreb•15m ago•0 comments

Hour of the Wolf

https://www.science.org/content/article/wolves-are-reconquering-europe-can-people-learn-live-them
1•jruohonen•17m ago•0 comments

Show HN: I visualized United States Chess Federation (USCF) ratings by state

https://chess67.com/uscf/stats/all
1•k2xl•18m ago•0 comments

I Shipped a Facebook Feature So Fast Sheryl Sandberg Called an Emergency Meeting

https://michaelnovati.substack.com/p/i-shipped-a-facebook-feature-so-fast
2•gpi•19m ago•0 comments

Leave a Trace

https://www.jakeworth.com/posts/leave-a-trace
2•surprisetalk•19m ago•0 comments

Early Web Links

https://earlyweblinks.com/
1•speckx•21m ago•0 comments

A clean, modern desktop app for tracking your books and reading progress

https://github.com/VahidR/bookeeper
1•vahid_r•22m ago•0 comments

Opus Magnum Bench

https://opusmagnumbench.com/
1•stared•23m ago•0 comments

NASA picks Eric Schmidt's rocket company for Mars mission

https://techcrunch.com/2026/06/17/nasa-picks-eric-schmidts-rocket-company-for-mars-mission-settin...
3•isaacfrond•23m ago•1 comments

Equality as Demotion

https://kulturkampftr.substack.com/p/equality-as-demotion
1•mrtksn•23m ago•0 comments

Breakdown of Will (2018)

https://aaronzlewis.com/blog/2018/07/21/breakdown-of-will/
1•rzk•24m ago•1 comments

Home Office's AI age guesser for asylum-seekers branded biased and inaccurate

https://www.theregister.com/security/2026/06/19/rights-groups-brand-home-offices-ai-age-guesser-f...
3•jjgreen•25m ago•0 comments

Show HN: QuickRetro – Open-source sprint retrospective app

https://github.com/vijeeshr/quickretro
3•v5n_r8n•25m ago•0 comments

Memorising Shakespeare's Sonnets

https://www.commonreader.co.uk/p/memorising-shakespeares-sonnets
1•jruohonen•28m ago•1 comments

None-US Claude users: beware if used Fable – account suspension experience

2•Amir6•29m ago•0 comments

Tired of Performing Masculinity

https://paradisetime.substack.com/p/tired-of-performing-masculinity
1•herbertl•30m ago•0 comments

Converting Coal Plants to Natural Gas

https://www.construction-physics.com/p/converting-coal-plants-to-natural
1•crescit_eundo•30m ago•0 comments

Anthropic floats proposal to Howard Lutnick to end ban of Mythos, Fable models

https://nypost.com/2026/06/18/business/anthropic-floats-proposal-to-lutnick-to-end-us-ban-of-powe...
2•dstala•31m ago•0 comments