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.

Future of Software Engineering (2003)

https://web.archive.org/web/20151020012340/http://discuss.fogcreek.com/joelonsoftware1/default.as...
1•tosh•2m ago•0 comments

The Lonely Work of Moderating Hacker News (2019)

https://www.newyorker.com/news/letter-from-silicon-valley/the-lonely-work-of-moderating-hacker-news
1•andsoitis•2m ago•0 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
2•sixhobbits•6m ago•0 comments

Climate change: the CO2 emitter you may not know about (2018)

https://www.bbc.com/news/science-environment-46455844
2•downbad_•12m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•15m ago•0 comments

My favorite classic working-class novels of all time

https://bookdna.com/best-books/classic-working-class-novels-of-all-time
1•bwb•16m ago•1 comments

Iran Delays U.S. Peace Talks over Israeli Attacks in Lebanon

https://maritime-executive.com/article/report-iran-suspends-hormuz-talks-because-of-israeli-attac...
2•consumer451•19m ago•0 comments

Bobby Prince Jr (composer of classic Doom soundtrack) has passed away

https://www.legacy.com/legacy/robert-bobby-prince-lll
2•andystanton•25m ago•1 comments

So You Want to Define a Well-Known URI

https://mnot.net/blog/2026/well_known_uris
3•ingve•28m ago•0 comments

World Cup AI: which AI model is winning the World Cup?

https://worldcupai.org/
1•ValentineC•29m ago•1 comments

Ongoing: Cloudflare customers seeing incorrect invoice payments for 2.5 days

https://www.cloudflarestatus.com/incidents/nq5q2glxd4yw
1•imcotton•29m ago•0 comments

The ISA Doesn't Matter Where It Counts

https://www.chipstrat.com/p/the-isa-doesnt-matter-where-it-counts
2•ksec•30m ago•0 comments

Ask HN: Is anyone else leaving AUR?

1•lordkrandel•33m ago•1 comments

Apple A12 and A13 Chips: New Unpatchable Exploit

https://www.macrumors.com/2026/06/18/a12-and-a13-chips-facing-exploit/
5•tosh•35m ago•0 comments

DNI does press release on Covid-19 origins and coverup

https://www.odni.gov/index.php/newsroom/press-releases/press-releases-2026/4166-pr-11-26
1•anonymousiam•35m ago•1 comments

I reinvented website FAQ sections

https://answerpane.com/
2•MikeCatt•37m ago•0 comments

The comfortable slow boil of LLM assisted coding

https://01max.io/blog/a-comfortable-slow-boil/
2•maxime_•41m ago•0 comments

Renting vs. Buying – A case study for Bangalore

https://bangalore-property-buy-vs-rent.pagey.site/
4•freakynit•42m ago•0 comments

Show HN: `pbi`, an image aware pbcopy/paste for macOS command line users.

https://github.com/fragmede/pbi
1•fragmede•45m ago•0 comments

Maven Central introduces publishing limits

https://community.sonatype.com/t/maven-central-publishing-limits-what-high-volume-publishers-need...
1•justinblat•46m ago•0 comments

Looking to connect by helping founders find their first users

1•BonanKou•48m ago•0 comments

Someone at NPM needs see this – to stop the madness

https://www.youtube.com/watch?v=QIr58qqRyH8
1•ascended•48m ago•0 comments

Show HN: Protect your Go, Arch and AUR from Malware with a free firewall

https://www.vulnetix.com/features/package-firewall
1•ascended•51m ago•1 comments

I asked an online tracking company for my data and here's what I found (2018)

https://privacyinternational.org/long-read/2433/i-asked-online-tracking-company-all-my-data-and-h...
1•downbad_•52m ago•0 comments

Generative AI Is Having Its Herbalife Moment

https://www.whatwelo.st/p/generative-ai-is-having-its-herbalife
4•watermelon0•55m ago•0 comments

Show HN: Foldkit vs. React, the same pixel art editor implemented in both

https://foldkit.dev/react/foldkit-vs-react-side-by-side
2•devinjameson•59m ago•0 comments

The First Prompt: "Let There Be Light"

https://substack.com/@iancutzu/note/c-278921935
5•iancutzul•59m ago•1 comments

Markdown Comes to Liteparse

https://www.llamaindex.ai/blog/markdown-comes-to-liteparse
2•pierre•1h ago•1 comments

It Is Trivially Easy to Use Reddit to Manipulate AI Search

https://www.404media.co/it-is-trivially-easy-to-use-reddit-to-manipulate-ai-search-research-sugge...
8•cui•1h ago•0 comments

Don't Get Hacked!

https://www.cs.columbia.edu/~smb/homesec/
4•sohkamyung•1h ago•0 comments