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.

Fountible: Agentic Figma

https://fountible.com/
1•handfuloflight•1m ago•0 comments

Reddit Calls Anthropic a 'Freeriding Pirate'

https://runtimewire.com/article/reddit-calls-anthropic-a-freeriding-pirate-and-cites-ruling-behin...
1•ryanmerket•2m ago•0 comments

Starship's Thirteenth Test Flight

https://www.spacex.com/launches/starship-flight-13v
1•JumpCrisscross•2m ago•0 comments

Hannah Fry Wins the Leelavati Prize in 2026 for Mathematics Outreach

https://www.maths.cam.ac.uk/features/professor-hannah-fry-wins-leelavati-prize
1•agnishom•3m ago•0 comments

US moves to regulate hidden car handles

https://www.semafor.com/article/07/23/2026/us-moves-to-regulate-hidden-car-handles
1•jmsflknr•6m ago•0 comments

Show HN: Maps of >100 theories for how society works inc. Graham / Thiel / Smith

https://society.clearerthinking.org/
1•bestOfSocrates•8m ago•0 comments

IBM Acquiring HRL Laboratories

https://newsroom.ibm.com/2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum
1•osnium123•9m ago•1 comments

Midjourney Releasing v8.2

1•endmund•17m ago•1 comments

Pliny the Liberator claims universal jailbreak of models

https://twitter.com/elder_plinius/status/2080767011614015543
1•dnw•20m ago•0 comments

Trump's Plan for Science: More Money for A.I., Less for Universities

https://www.nytimes.com/2026/07/22/us/politics/trump-research-funding-artificial-intelligence.html
3•cratermoon•26m ago•1 comments

22 Years of Rails

https://twitter.com/rails/status/2080580838530355432
1•vinnyglennon•35m ago•0 comments

Show HN: Codebeat – turn any function into a song (no signup)

https://www.codedswitch.com/codebeat
1•Asume21•38m ago•0 comments

A Great Deal of Information About Hacker News

https://vale.rocks/posts/hacker-news
2•OuterVale•46m ago•0 comments

Show HN: Jolta – Automatic per-project JDK switching (like Volta, for Java)

https://oneappplatform.github.io/jolta/
1•pdxdave•57m ago•0 comments

Ukraine' Simple But Effective Protection Against Russian Starlink Jamming (2023)

https://www.technology.org/2023/08/01/did-russia-learn-to-jam-starlink-satellites-ukraine-is-alre...
4•pinkmuffinere•59m ago•0 comments

Exercise Erased Half the Molecular Signature of Muscle Aging

https://www.gethealthspan.com/research/article/exercise-molecular-signature-muscle-aging?zp_type=...
2•bilsbie•1h ago•1 comments

Evaluation of a pentapropellant upper stage (1970) [pdf]

https://ntrs.nasa.gov/api/citations/19700022572/downloads/19700022572.pdf
2•Eridanus2•1h ago•0 comments

Show HN: Modelfac

1•IceRay•1h ago•1 comments

Wine 11.14 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://www.winehq.org/announce/11.14
2•neustradamus•1h ago•0 comments

Show HN: git clone https://git.swerdlow.dev

https://git.swerdlow.dev/
2•benswerd•1h ago•3 comments

Creative Focus

https://herbertlui.net/creative-focus/
5•herbertl•1h ago•0 comments

OpenAI did not notice Hugging Face hack for a week

https://www.reuters.com/business/its-ai-agent-spent-days-hacking-company-sources-say-openai-did-n...
9•himaraya•1h ago•1 comments

The SharePoint zero-day panic this week is a marketing event

https://tensorust-site.vercel.app/
1•Shmungus•1h ago•0 comments

The computer has been surprising us

https://iwhalen.com/computer-surprise/
4•iwhalen•1h ago•0 comments

Claude used my pipeline to find a counterexample to the Jacobian conjecture

4•JGPTechCo•1h ago•2 comments

The final frontier – 01005 passives (2012)

http://siliconexposed.blogspot.com/2012/06/final-frontier-01005-passives.html
1•gregsadetsky•1h ago•0 comments

The Shape of Apps

https://parakeet.co/blog/the-shape-of-apps/
3•wpm•1h ago•0 comments

Bonsai – a toolkit for building AI chat apps with branchable conversations

https://github.com/Joaoha/Bonsai
2•joaoha•1h ago•0 comments

In desperate need of money so im willing to make anything

1•lowke•1h ago•1 comments

Ask HN: How would I restore this 101 year old postcard?

3•Waterluvian•1h ago•1 comments