frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

llm-exe•11mo 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•11mo 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.

How many e's are in strawberry?

https://smileplease.mataroa.blog/blog/how-many-e-are-in-strawberry/
1•Imustaskforhelp•1m ago•0 comments

Let's Buy Spirit Air

https://letsbuyspiritair.com/
1•bjhess•4m ago•0 comments

Vertical agrivoltaics in a temperate climate: Technical and social dimensions

https://www.sciencedirect.com/science/article/pii/S2772427125001664
3•bookofjoe•13m ago•0 comments

GameStop Is Offering to Buy eBay for $56B, CEO Ryan Cohen Says

https://www.wsj.com/business/deals/gamestop-is-offering-to-buy-ebay-for-56-billion-ceo-ryan-cohen...
2•momentmaker•14m ago•1 comments

Show HN: Special Days

https://special-days.pressbin.com/
2•jawns•15m ago•0 comments

Every American interacting with chatbot would need to upload a government ID

https://reclaimthenet.org/senate-panel-backs-guard-act-ai-age-verification-bill
4•g42gregory•18m ago•0 comments

xAI (Grok) Text-to-Speech and Speech-to-Text Are Now Available in Puter.js

https://developer.puter.com/blog/xai-tts-stt-in-puter-js/
1•ent101•21m ago•0 comments

Modern Standby is draining your laptop's battery, and Microsoft won't fix it

https://www.xda-developers.com/modern-standby-draining-windows-11-laptop-battery-microsoft-wont-f...
1•unddoch•23m ago•0 comments

WASM interpreter fits in a QR code

https://purplesyringa.moe/blog/this-wasm-interpreter-fits-in-a-qr-code/
3•curryhoward•27m ago•1 comments

Show HN: Three-step Reader an experimental visual layout for speed reading books

https://vernetit.github.io/s4/
1•Vernetit•27m ago•0 comments

The 'Hidden' Costs of Great Abstractions

https://jdgr.net/the-hidden-costs-of-great-abstractions
11•jdgr•28m ago•0 comments

Want to Watch button missing for movie searches

https://support.google.com/websearch/thread/414738182/want-to-watch-button-missing-for-movie-sear...
1•chatmasta•29m ago•0 comments

Three cruise ship passengers die in suspected hantavirus outbreak

https://www.reuters.com/business/healthcare-pharmaceuticals/three-passengers-dead-one-case-hantav...
2•vld_chk•32m ago•0 comments

No Joke. Unification of (GR/Qt)

https://twitter.com/CTibedo/status/2051071923849723947
1•GeometryKernel•33m ago•1 comments

H4ckf0r0day/obscura: The headless browser for AI agents and web scraping

https://github.com/h4ckf0r0day/obscura
4•rezaprima•37m ago•3 comments

Show HN: Optical Design and Simulation in Matlab

https://www.mathworks.com/help/images/optical-system-design-and-analysis.html
1•ashishuthama•39m ago•0 comments

Could the X-Bat Stealth Fighter Drone Change the Air Combat Game?

https://www.twz.com/air/could-the-x-bat-stealth-fighter-drone-change-the-air-combat-game
1•breve•43m ago•0 comments

I Replaced Kiro with a Free Plugin – Here's What Happened

https://www.getdraft.dev/blog/replaced-kiro-with-free-plugin/
1•mayurpise•44m ago•0 comments

Drones are getting drugs, escape tools and crab legs to inmates

https://www.cnn.com/2026/05/03/us/drone-deliveries-contraband-prison-inmates
1•breve•46m ago•1 comments

Show HN: Cryptographic receipt authority for ISO 20022 financial messages

https://20022validator.com
1•NextGenRails•47m ago•0 comments

Show HN: Stigmem – open-source federated knowledge fabric for AI agents (v1.0)

2•barryjones20•48m ago•0 comments

Agentic Coding Is a Trap

https://larsfaye.com/articles/agentic-coding-is-a-trap
4•ayoisaiah•48m ago•1 comments

Local, deterministic, version-controlled knowledge graph

https://www.getdraft.dev/blog/local-graph-engine/
1•mayurpise•54m ago•0 comments

The PHP License, Simplified

https://ben.ramsey.dev/blog/2026/05/the-php-license-simplified
2•gslin•1h ago•0 comments

Open source intelligence about Palantir

https://palantirwatch.org
1•seb1204•1h ago•0 comments

Using the "Sandwich Method" to Teach Mathematics

https://pikuma.com/blog/sandwich-method-math-education
1•atan2•1h ago•0 comments

Kloak keeps secrets out of your application's memory

https://getkloak.io/blog/kloak-50000-feet-view/
1•spinningfactory•1h ago•0 comments

PyFlue – Python-Native Agent Harness Framework (Python Clone of Flue)

https://super-agentic.ai/pyflue
2•sebst•1h ago•0 comments

Show HN: Zuma Portable

https://drive.google.com/drive/folders/1hDRvlY707VrO_UztEtIt1EoPgKBICL8Q?usp=sharing
1•zeeeeeebo•1h ago•0 comments

Simpson's Paradox

https://en.wikipedia.org/wiki/Simpson%27s_paradox
7•basilikum•1h ago•1 comments