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.

Link Site

https://xxsml.com
1•sohocs509•1m ago•1 comments

First Kirby Game Was Created with a Trackball, No Keyboard

https://www.pcmag.com/news/first-kirby-game-was-created-with-a-trackball-no-keyboard
1•scottchiefbaker•3m ago•0 comments

Show HN: Foundation – A Tale of Tokens and Psychosis

https://github.com/nmxmxh/foundation
1•MomohNobert•5m ago•0 comments

Freemediaheckyeah

https://fmhy.net/reading
1•kamphey•7m ago•0 comments

Building a Datacenter in My Dorm Room

https://corvaglia.dev/blog/2026/datacenter-in-dorm/
1•corvad•8m ago•0 comments

Windows 11 will soon be able to reinstall itself and drivers without a USB drive

https://www.windowscentral.com/microsoft/windows-11/windows-11-will-soon-be-able-to-reinstall-its...
1•thunderbong•9m ago•0 comments

Cases of parasite that causes explosive bathroom emergencies surge to nearly 600

https://www.dailymail.com/health/article-15956735/cyclospora-parasite-outbreak-michigan-restauran...
1•Bender•14m ago•0 comments

X Launches iOS Video Editor with Captions and Green Screen

https://twitter.com/nikitabier/status/2074218166033781048
1•mak8•16m ago•0 comments

Decomposer: Learning to Decompile Symbolic Music (Like MIDI) to Programs

https://arxiv.org/abs/2607.01849
1•laybak•16m ago•0 comments

Pi (Rust): High-performance AI coding agent CLI written in Rust

https://github.com/Dicklesworthstone/pi_agent_rust
1•rsyring•20m ago•0 comments

I'm Betting My Company on Proactive Agents

https://polylane.com/blog/proactive-agents/
1•mooreds•22m ago•0 comments

Stet – a Markdown editor where every AI edit needs your sign-off

https://www.getstet.app/
1•DrewRaines•26m ago•0 comments

Millfolio – my take on local/hybrid AI

https://millfolio.app/blog/send-the-program-to-your-data/
1•winding•28m ago•0 comments

How Much Is AI Manipulating Us?

https://americanrefugees.substack.com/p/how-much-is-ai-manipulating-us
2•smitty1e•31m ago•3 comments

Apache Shiro security framework releases 3.0.0

https://shiro.apache.org/blog/2026/06/apache-shiro-300-released.html
1•lprimak•34m ago•0 comments

Show HN: QuickPing – dead simple way for customers to get in touch with you

https://www.quickping.dev/
1•jmcbca04•35m ago•0 comments

New Realtime models (GPT-realtime-2.1 and GPT-realtime-2.1-mini) on the API

https://community.openai.com/t/new-realtime-models-on-the-api-gpt-realtime-2-1-and-gpt-realtime-2...
2•soheilpro•39m ago•0 comments

Putin is losing his battle with reality [video]

https://www.youtube.com/watch?v=AAbtLR_n_E8
1•Bender•39m ago•0 comments

This Device Doesn't Make Sense (Sickos) [video]

https://www.youtube.com/watch?v=P4GnzlDkw5o
1•kordlessagain•40m ago•0 comments

Toy Story (2001)

https://www.embedded.com/toy-story/
2•matltc•40m ago•0 comments

Modest Shapes

https://herbertlui.net/modest-shapes/
2•herbertl•40m ago•0 comments

M9 Gun Director

https://en.wikipedia.org/wiki/M9_gun_director
3•bo0tzz•46m ago•0 comments

$2.35M Hybrid hypercar Czinger 21C

https://arstechnica.com/cars/2026/07/the-czinger-21c-might-be-the-wildest-car-we-drive-all-year/
2•Gaishan•51m ago•0 comments

Earliest octopi were giant top predators in Cretaceous oceans

https://www.science.org/doi/10.1126/science.aea6285
3•Gaishan•53m ago•1 comments

The UK Government Wants to Destroy Free Speech on YouTube [video]

https://www.youtube.com/watch?v=EKIKveClo6c
2•Bender•54m ago•0 comments

Show HN: Mandelbrot set renderer written in pure [BSD] Makefiles

https://github.com/b-aaz/bmake-extravaganza
2•b-aaz•1h ago•0 comments

Meta Tests Pocket, an Experimental App for AI-Generated Mini-Games

https://www.ghacks.net/2026/07/05/meta-tests-pocket-an-experimental-app-for-ai-generated-mini-gam...
1•LorenDB•1h ago•0 comments

Agentic Autonomy Levels

https://addyo.substack.com/p/agentic-autonomy-levels
1•backlit4034•1h ago•0 comments

LLMs Are Not a Default Execution Engine

https://unmeshed.io/blog/using-ai-wisely-starts-before-the-first-prompt
4•jusonchan81•1h ago•1 comments

Categorical, semantic perception of meaning of call types in zebra finches [pdf]

https://www.science.org/doi/10.1126/science.ads8482
1•thunderbong•1h ago•0 comments