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.

Solid 2.0 RC: The Big <Reveal>

https://github.com/solidjs/solid/releases/tag/v2.0.0-rc.0
1•pier25•1m ago•0 comments

Tesla paid Elon Musk 2.5M times more as CEO than its average worker in 2025

https://www.theguardian.com/business/2026/aug/13/elon-musk-tesla-pay-workers
1•tosh•2m ago•0 comments

Instagram's New "Logo"

https://wersm.com/instagram-new-wordmark-2026/
1•ms7892•2m ago•0 comments

The Oldest Bar in Every US State

https://www.businessinsider.com/oldest-bar-every-state
1•NaOH•3m ago•0 comments

Microsoft Cuts Purchases of Carbon Removals by 80% Amid AI Push

https://www.bloomberg.com/news/articles/2026-08-13/microsoft-cuts-purchases-of-carbon-removals-by...
1•melling•3m ago•0 comments

Cross-Validation From Scratch and a Surprise at n=100

https://www.kenkoonwong.com/blog/crossvalidation/
1•sebg•3m ago•0 comments

Show HN: OpenCode Senses, An insanely fast and highly accurate vision plugin

https://github.com/itsmeadarsh2008/opencode-senses
2•itsmeadarsh•3m ago•0 comments

The Year of Micro Design

https://twitter.com/covacut/status/2087958248154648663
1•tosh•4m ago•0 comments

30× faster binary multivector ColBERT late interaction in Vespa

https://oskrim.github.io/engineering/2026/08/13/chunked-hamming-maxsim.html
2•oskrim•6m ago•0 comments

Colour Drained from Our Furniture

https://europeancorrespondent.com/en/r/how-colour-drained-from-our-furniture
1•sebg•6m ago•0 comments

App Store allows developers to spam the submission and review process

https://lapcatsoftware.com/articles/2026/8/5.html
2•speckx•7m ago•0 comments

Accelerating GPT-5.6 Sol Ultrafast

https://www.cerebras.ai/blog/accelerating-gpt-5-6-sol-ultrafast-with-openai
2•pr337h4m•7m ago•0 comments

Every disease is a policy failure

https://worksinprogress.co/issue/future-of-medicine/
2•paulpauper•8m ago•1 comments

A live experiment in economic geography

https://disembedded.com/
1•paulpauper•8m ago•0 comments

Tulsa Public Schools is trying to help students better resolve conflict

https://tulsaflyer.org/2026/08/10/news/post/tps-plans-tackle-student-fights/
2•paulpauper•9m ago•0 comments

Playbook – live public portfolio with discussion on every trade

https://play-book.org
1•Jaswantj115•12m ago•0 comments

Show HN: TasmoShelf – local-first iOS/Android app for Tasmota devices

https://tasmoshelf.app
2•itsmueller•13m ago•0 comments

Starting a blog could lead to you meeting the love of your life

https://velvetnoise.substack.com/p/everyone-should-start-a-blog-yes
2•jjleads•14m ago•1 comments

How Compaction Works in Pi

https://earendil.com/posts/compaction-in-pi/
2•tosh•19m ago•0 comments

Shadows: Sample app that demonstrates techniques for realtime shadow mapping

https://github.com/TheRealMJP/Shadows
1•klaussilveira•22m ago•0 comments

Enable P2P PCI transfers on Nvidia 3090, 4090, 5090

https://github.com/aikitoria/open-gpu-kernel-modules
1•jacquesm•23m ago•0 comments

Video: I'm Done Coding with AI

https://www.youtube.com/watch?v=2ZU3j4GQ4K8
1•champagnepapi•23m ago•1 comments

Solid 2.0 RC: The Big <Reveal>

https://www.solidjs.com/blog/solid-2-0-rc-the-big-reveal
1•GavinAnderegg•24m ago•0 comments

Some Virtues of Narrative Poetry

https://newversereview.substack.com/p/the-purpose-of-poetry-is-to-tell
2•samclemens•24m ago•0 comments

Previewing Ultrafast mode: GPT-5.6 Sol at up to 14x the speed

https://twitter.com/openai/status/2087947721936359705
2•qb•26m ago•0 comments

Show HN: Tired of hand-writing fake API data, so I built a CLI for it

https://github.com/SukhdevThukral/mockit
2•sukhdevth_•26m ago•0 comments

Where did the old web go? We followed 657,607 links to find out

https://0.mk/blog/link-rot
13•tdx•28m ago•1 comments

Namecheap phoenix datacenter overheats taking all sites down

https://www.pcmag.com/news/is-your-website-down-outage-hits-hosting-provider-namecheap
6•rgbrgb•28m ago•1 comments

New model BDH-CQ costs $0.007 per task 11x less than OpenAI Luna even w 80% off

https://huggingface.co/papers/2608.09888
5•wordpad•28m ago•0 comments

Choose Boring Technology (2015)

https://mcfunley.com/choose-boring-technology
31•tosh•29m ago•9 comments