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.

Stalking the Wily Hacker: 40 years later – Cliff Stoll [video]

https://www.youtube.com/watch?v=656058JxTM0
1•EvanAnderson•32s ago•0 comments

Extraterritoriality

https://en.wikipedia.org/wiki/Extraterritoriality
1•peter_d_sherman•10m ago•0 comments

The only floating national park [video]

https://www.bbc.com/reel/video/p0nb7pnb/watch
1•koolhead17•10m ago•0 comments

Show HN: Ditdah – A Morse App for the Terminal

https://encse.github.io/ditdah/
1•encse•17m ago•0 comments

Opportunity Cost in Strategy Games

https://blog.idleverse.gg/opportunity-cost-in-strategy-games/
1•jonbaer•18m ago•0 comments

Unlocking hidden revenue streams with market models

https://www.technologyreview.com/2026/08/20/1142070/unlocking-hidden-revenue-streams-with-market-...
3•joozio•19m ago•0 comments

Fast is better than slow

https://dubroy.com/blog/fast-is-better-than-slow/
1•fagnerbrack•20m ago•0 comments

Show HN: 2048bid.lol – Rank your product by playing 2048

https://2048bid.lol/
1•voladd•21m ago•0 comments

Ask HN: What websites do you visit daily to stay informed?

3•chistev•24m ago•0 comments

Show HN: Leaderbid – Pay to Rank Leaderboard

https://leaderbid.lol
2•docuru•29m ago•0 comments

What Makes Australia Australia?

https://walkingtheworld.substack.com/p/what-makes-australia-australia
3•Michelangelo11•32m ago•0 comments

Simulating the Information Horizon in Chaos

https://github.com/rayrrr21/Structure-of-Reality
2•rayrrrr•33m ago•0 comments

Show HN: SubtitleGenerator - Fix subtitles with a low-confidence review queue

https://subtitlegenerator.app
2•mujia•33m ago•0 comments

Postgres 19: What's new in Monitoring?

https://clickhouse.com/blog/postgres-19-monitoring-whats-new
2•saisrirampur•33m ago•0 comments

James Munkres (1930-2026)

https://www.douglassfh.com/obituary/james-munkres
2•pykello•37m ago•0 comments

Eliminating Branches in C++ Loops

https://www.yagiz.co/eliminating-branches-in-cpp-loops
2•mfiguiere•38m ago•0 comments

Wi-Fi 8 is the first wireless upgrade in years that isn't chasing speed

https://www.xda-developers.com/wi-fi-8-first-wireless-upgrade-years-isnt-chasing-speed-home-netwo...
35•taubek•39m ago•9 comments

China joins Europe in scrapping Windows for Linux

https://www.zdnet.com/article/china-drops-windows-for-linux/
2•dotcoma•41m ago•0 comments

The market is underpricing memory bandwidth

https://tradestie.com/news/the-market-is-underpricing-memory-bandwidth-20260823/
2•abhiphull•43m ago•0 comments

Download Embabi Games

https://egyapk.com/games/embabi-games/
2•l33tcy•45m ago•0 comments

An Unlikely Experiment

https://rushed-reflections.bearblog.dev/an-unlikely-experiment/
3•signa11•49m ago•0 comments

Best free TikTok video downloader

https://tiktokdownload.org
2•mrwakey•49m ago•0 comments

Oura smart ring sued: sleep-tracking accuracy is wildly exaggerated

https://qz.com/oura-ring-class-action-lawsuit-sleep-tracking-accuracy-082126
4•mgh2•50m ago•0 comments

Hotel Infinity (2014)

https://www.youtube.com/playlist?list=PLb6mUUuKMKFnNtVC_orYqZxmAm48qIFDI
1•NAR8789•54m ago•0 comments

Cache-Control for LLMs

https://www.gojiberries.io/cache-control-for-llms/
1•neehao•54m ago•0 comments

Wild AI-related reliability incidents are coming

https://surfingcomplexity.blog/2026/08/22/wild-ai-related-reliability-incidents-are-coming/
2•azhenley•57m ago•0 comments

Harvard Is Selling a $699 Course Taught by A.I. Clones of Its Faculty

https://www.nytimes.com/2026/08/22/business/dealbook/harvard-ai-faculty.html
2•pjmlp•1h ago•0 comments

This Silicon Valley campus was a paradise. Bulldoze it

https://sfstandard.com/opinion/2026/08/22/sunset-magazine-menlo-park-campus-torn-down/
5•littlexsparkee•1h ago•4 comments

Becoming a Writer

https://hughhowey.com/writing-insights-part-one-becoming-a-writer/
1•js2•1h ago•0 comments

Risk of transmission of amyloid β pathology via transfused blood products

https://doi.org/10.1016/S0140-6736(26)00767-1
2•sbulaev•1h ago•0 comments