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.

0xBitNet

https://github.com/m96-chan/0xBitNet
1•oldfuture•9s ago•0 comments

Muscles by Electricity: The Latest Fitness Craze?

https://www.wsj.com/lifestyle/fitness/electrical-muscle-stimulation-ems-workout-03dce7e3
1•lxm•38s ago•0 comments

Character.ai Faces Unlawful Practice of Medicine Claim in Pennsylvania Suit

https://www.law.com/therecorder/2026/05/06/characterai-maker-faces-unlawful-practice-of-medicine-...
2•1vuio0pswjnm7•6m ago•0 comments

Compaction in `Sid`: A Novel Algorithm?

https://rescrv.net/w/2026/05/06/compaction-in-sid
1•rescrv•9m ago•1 comments

Spec CPU 2026

https://www.spec.org/cpu2026/
1•sanxiyn•14m ago•0 comments

School Cellphone Ban Study Finds Mixed Results

https://www.nytimes.com/2026/05/04/us/did-school-cellphone-bans-study.html
1•lxm•19m ago•0 comments

We had people come just to see it: Amazon delivers its first UK parcels by drone

https://www.bbc.co.uk/news/articles/cx21k21vnmgo
1•nmstoker•21m ago•0 comments

Three-Em Dash

https://www.compart.com/en/unicode/U+2E3B
3•gregsadetsky•23m ago•0 comments

Nvidia Enterprise Reference Architectures for AI Data Centers

https://www.nvidia.com/en-us/technologies/enterprise-reference-architecture/
1•nalinidash•26m ago•1 comments

SpaceX is starting to move on from the most successful rocket

https://arstechnica.com/space/2026/05/spacex-is-starting-to-move-on-from-the-worlds-most-successf...
1•LorenDB•26m ago•0 comments

Permacomputing Principles

https://permacomputing.net/principles/
4•andsoitis•32m ago•0 comments

Hantavirus explained: Symptoms, transmission and treatment

https://epi.ufl.edu/2026/05/06/hantavirus-explained-symptoms-transmission-and-treatment/
2•rolph•33m ago•0 comments

Quilt Poems

https://leetusman.com/projects/quilt-poems/
3•andsoitis•34m ago•0 comments

Orthohantavirus

https://viralzone.expasy.org/213.html?outline=all_by_species
2•rolph•37m ago•0 comments

Encountering Artificial Intelligence: Ethical and Anthropological Investigations

https://jmt.scholasticahq.com/article/91230-encountering-artificial-intelligence-ethical-and-anth...
3•andsoitis•38m ago•0 comments

An SDK to accept payments from Agents

https://github.com/GTG-Labs/sangria
2•simantakDabhade•40m ago•0 comments

If AI cuts jobs, it would also threaten Social Security and Medicare

https://minnesotareformer.com/2026/04/17/if-ai-cuts-jobs-it-would-also-threaten-social-security-a...
5•littlexsparkee•41m ago•2 comments

Marco Rubio discovers he needs to take over Spirit Airlines

https://www.youtube.com/watch?v=whF9C5j7X8k
3•keepamovin•46m ago•0 comments

Show HN: Dreamwork – a job search site I made after Indeed fired my pregnant wif

https://www.dreamworkhq.com/
2•cojj25•46m ago•1 comments

Ridiculous Things I Utterly Love About Vampire Crawlers

https://kotaku.com/vampire-crawlers-survivors-garlic-poe-decks-chests-sponge-2000689719
3•PaulHoule•52m ago•0 comments

SpaceX IPO gives Musk unchecked power and forbids investor lawsuits

https://arstechnica.com/tech-policy/2026/05/report-spacex-ipo-gives-musk-unchecked-power-and-forb...
9•pzxc•1h ago•1 comments

Geography Is Four-Dimensional

https://sive.rs/4d
4•inatreecrown2•1h ago•1 comments

Nobody understands the point of hybrid cars

https://www.youtube.com/watch?v=KnUFH5GX_fI
3•incomplete•1h ago•0 comments

Cognitive Surrender

https://twitter.com/addyosmani/status/2052124873208799378
3•ayoisaiah•1h ago•0 comments

The Vatican's Website in Latin

https://www.vatican.va/latin/latin_index.html
46•ks2048•1h ago•23 comments

Discord group guessed the URL to Anthropic's Mythos model before CISA used it

https://www.msn.com/en-us/technology/cybersecurity/discord-group-guessed-the-url-to-anthropic-s-m...
5•Imustaskforhelp•1h ago•5 comments

Alkaline-Activated Coal Gangue-Based Geopolymer Grouting Material

https://www.mdpi.com/1996-1944/19/9/1812
2•PaulHoule•1h ago•0 comments

Open weights are quietly closing up – and that's a problem

https://lobste.rs/s/jvvtif/open_weights_are_quietly_closing_up_s
6•maxloh•1h ago•2 comments

Six New High Severity CVEs for Next.js and 1 for React

https://github.com/vercel/next.js/releases/tag/v16.2.5
3•tkel•1h ago•2 comments

Show HN: Web client analyzing prediction market outcomes

https://o-u.ai
2•noplace1ikegone•1h ago•2 comments