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.

Create and share YouTube playlists without an account

https://y2pilot.com/
1•lvidakovic•36s ago•0 comments

How Many Elementary Particles Are There, Really?

https://www.quantamagazine.org/how-many-elementary-particles-are-there-really-20260615/
1•rwmj•1m ago•0 comments

Lemonad: A functional programming library for JavaScript

https://github.com/fogus/lemonad
1•tosh•1m ago•0 comments

The great herbivores of the Caucasus stage a comeback

https://www.unep.org/news-and-stories/story/great-herbivores-caucasus-stage-comeback
1•thunderbong•2m ago•0 comments

Some Intuition Behind the Contrapositive

https://max-amb.github.io/blog/some_intuition_behind_the_contrapositive/
1•max-amb•5m ago•0 comments

Designing Math Ft. Grant Sanderson (3Blue1Brown) [video]

https://www.youtube.com/watch?v=bLSLN96Gn-w
1•marvinborner•6m ago•0 comments

QRCard – Your digital business card

https://qrcard.up.railway.app/
1•nikitafaesch•9m ago•0 comments

Open-source cloud-native Postgres platform

https://github.com/xataio/xata
1•mebcitto•11m ago•0 comments

Phones Alerted Millions Before Quakes Shook Venezuela

https://www.nytimes.com/interactive/2026/06/27/world/americas/venezuela-earthquakes-android-alert...
1•jgalt212•13m ago•1 comments

A Street of Good Houses - The Shape of the Whole

https://shapeofthesystem.com/posts/2026/06/26/a-street-of-good-houses
1•supermatt•13m ago•0 comments

BlueBookOS: An LLM microkernel and language for specifying apps

https://bluebookos.com/
1•logn•14m ago•0 comments

Show HN: Nirnam – a browser-native message bus and AI agent framework for MFEs

https://github.com/shaurcasm/nirnam
1•shauryaSP•15m ago•0 comments

Generative artificial intelligence creates delicious, nutritious burgers

https://www.nature.com/articles/s41538-026-00953-x
1•Anon84•21m ago•0 comments

What's cooking on Sourcehut? Q2 2026

https://sourcehut.org/blog/2026-05-28-whats-cooking-q2-2026/
1•birdculture•23m ago•0 comments

Kb – Prolog Knowledge Base

https://github.com/mat-mgm/kb-prolog
1•triska•26m ago•0 comments

Overview of new contracts, pay and transfers in the Ukrainian army

https://mod.gov.ua/en/news/transformation-of-the-defence-forces-of-ukraine-a-comprehensive-overvi...
1•Someone•31m ago•0 comments

OpenRA

https://www.openra.net/
9•tosh•32m ago•2 comments

A thermodynamic approach to gravity could explain cosmic acceleration

https://phys.org/news/2026-06-thermodynamic-approach-gravity-cosmic-dark.html
2•wjSgoWPm5bWAhXB•33m ago•0 comments

Using Local Coding Agents

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•Anon84•36m ago•0 comments

Ask HN: Is there a quiet market for 'no enforced AI' dev jobs?

3•reinhardt•37m ago•1 comments

Ask HN: Steam OS as a Windows Replacement?

1•x______________•41m ago•0 comments

Mitchell Hashimoto: Defining Taste

https://xcancel.com/i/article/2070665127331037290
2•tamnd•41m ago•0 comments

XiaoKe API Gateway: PDF OCR Scrape Translate Review SummarizeXiaoKe API Gateway

https://github.com/y9695430-lang/xiaoke-api-gateway
1•xiaoke-api•42m ago•0 comments

Gnome AI Assistant Adds Image Generation Support

https://www.phoronix.com/news/GNOME-Newelle-Image-Gen
1•mehmetoguzderin•43m ago•0 comments

Show HN: RapidCam – Browser-based, parametric 2D CAD/CAM app for CNC and laser

https://rapidcam.app
2•Jemm•45m ago•1 comments

Tapered Language Models

https://arxiv.org/abs/2606.23670
1•sonabinu•46m ago•0 comments

Saying the Obvious Thing

https://www.seangoedecke.com/saying-the-obvious-thing/
1•swah•47m ago•0 comments

Show HN: Visual Map of ICML 2026 Papers

https://www.alphaxiv.org/icml/map
2•vednig•48m ago•0 comments

How Saarinen and Eames Imagined Airport Operations and Influenced Dulles

https://www.youtube.com/watch?v=6C3iKBJhgZM
1•master_crab•51m ago•0 comments

Michael Saylor's Strategy has no easy way out as Bitcoin prices continue to drop

https://finance.yahoo.com/markets/article/michael-saylors-strategy-faces-no-easy-way-out-as-bitco...
1•decimalenough•51m ago•1 comments