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.

Thoughts Ahead of WWDC 2026

https://anderegg.ca/2026/06/07/thoughts-ahead-of-wwdc-2026
1•GavinAnderegg•2m ago•0 comments

Show HN: Vui – open-source voice mode

https://twitter.com/harrycblum/status/2062308968228147254
1•bazlan•3m ago•0 comments

Cheap to Write, Expensive to Own

https://mijndertstuij.nl/posts/cheap-to-write-expensive-to-own/
1•theanonymousone•3m ago•0 comments

When did we decide lines of code was a measure of productivity?

https://medium.com/@mooseyanon/when-did-we-decide-lines-of-code-was-a-measure-of-productivity-e14...
1•arm93•5m ago•0 comments

Productivity Effects Across Generations of AI Coding Tools [pdf]

https://www.nber.org/system/files/working_papers/w35275/w35275.pdf
1•robin_reala•6m ago•0 comments

A Case for Simulation-Driven Resilience in Agentic Data Systems

http://muratbuffalo.blogspot.com/2026/06/a-case-for-simulation-driven-resilience.html
1•eigenBasis•9m ago•0 comments

Show HN: AI agents shouldn't just be for developers

1•cheikhshift•11m ago•0 comments

WOS: a Rust ARM64 kernel from scratch with MMU and GICv2 working

https://github.com/jietra/wos
1•ulrichxtan•11m ago•0 comments

Chinese court cases reveal most trafficked rhino horns come from Southern Africa

https://news.mongabay.com/2026/04/chinese-court-cases-reveal-most-trafficked-rhino-horns-come-fro...
1•PaulHoule•11m ago•0 comments

Mold-Desktop

https://codeberg.org/mmontone/mold-desktop
1•birdculture•12m ago•0 comments

With Copilot pricing exploding, how to not break the bank with AI coding?

1•rietie•12m ago•0 comments

Manifold Exploration

https://paul-antoineletolguenec.github.io/manifold-exploration/
1•AdilZtn•13m ago•0 comments

Speedy Games

https://speedygames.com
1•PostTrack•14m ago•0 comments

China expands its spy networks across the European Union and beyond

https://english.elpais.com/international/2026-06-07/china-expands-its-spy-networks-across-the-eur...
1•robtherobber•14m ago•0 comments

Qualcomm Gets the Lenovo Yoga Slim 7x Snapdragon X2 Working on Linux

https://www.phoronix.com/news/Lenovo-Yoga-Slim-7x-Gen11-Linux
1•cromka•16m ago•0 comments

Reality-mimicking AI fuels spike in scams, Visa cyberthreat finds

https://www.nbcboston.com/video/on-air/as-seen-on/reality-mimicking-ai-fuels-spike-in-scams-visa-...
1•1vuio0pswjnm7•17m ago•1 comments

Show HN: OrchAPI – AI tools shaped by the use of the useless

https://orchapi.com/
1•garrett_xu•18m ago•0 comments

Encyclopedia of World Problems and Human Potential

https://encyclopedia.uia.org/
1•o4c•19m ago•0 comments

Robots could soon be delivering your pizza

https://economist.com/business/2026/06/07/robots-could-soon-be-delivering-your-pizza
1•andsoitis•19m ago•0 comments

Attempting to regulate an industry when they control the communication pathways

3•rando77•20m ago•0 comments

Has Microsoft Lost Its Mojo (Again)?

https://www.wired.com/story/has-microsoft-lost-its-mojo-again/
3•1vuio0pswjnm7•22m ago•0 comments

Meta loses High Court challenge to possible €430M fine

https://www.irishtimes.com/business/2026/05/21/meta-loses-challenge-to-possible-430m-fine-over-pe...
3•1vuio0pswjnm7•23m ago•0 comments

Charlie Bites, Badgers Dance and a Lettuce Endures in This Archive of Web Memes

https://www.nytimes.com/2026/06/08/technology/uk-video-memes-archive-tape.html
1•_tk_•24m ago•0 comments

SlimTide Capsules: Don't Buy Until You Read This Real Truth

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-updated-warning-2026-1921...
1•wasufady•28m ago•0 comments

Making Claude a chemist (NMR spectroscopy)

https://www.anthropic.com/research/making-claude-a-chemist
2•logifail•28m ago•0 comments

Mona's Bug Bash

https://bug-bash.github.com
1•carlos-menezes•30m ago•0 comments

Uber Opens London Waitlist for Wayve Robotaxis Ahead of Launch

https://www.bloomberg.com/news/articles/2026-06-08/uber-opens-london-waitlist-for-wayve-robotaxis...
1•helsinkiandrew•30m ago•0 comments

Founders Fund Mafia game (feat Sam Altman, Palmer Luckey, Bryan Johnson) [video]

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

There are reliable ways to tell if someone is lying to you

https://www.theguardian.com/commentisfree/2026/jun/08/someone-lying-courts-jurors-truth-body-lang...
1•n1b0m•31m ago•0 comments

Nex Playground: the family game-night gadget that revives the spirit of the Wii

https://www.theguardian.com/games/2026/jun/01/nex-playground-it-outsells-xbox-and-aims-to-end-lon...
1•andsoitis•33m ago•0 comments