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.

The great AI data centre cover-up

https://www.ft.com/content/7800ba0f-1420-49fe-b260-9838632a19a4
1•1vuio0pswjnm7•3m ago•0 comments

AI Investors Buying Accounting Companies and Force Them to Use OpenAI [video]

https://www.youtube.com/watch?v=2dp98vEGWq0
2•xbmcuser•6m ago•0 comments

Zeno's Paradox and Infinite Sums – Lectures on Infinity (Lecture 1) [video]

https://www.youtube.com/watch?v=4Y9p0yp8Mow
2•FillMaths•8m ago•0 comments

Italy privacy watchdog fines Character.ai owner over age-check failures

https://www.reuters.com/business/italy-privacy-watchdog-fines-characterai-owner-over-age-check-fa...
1•1vuio0pswjnm7•9m ago•0 comments

Hypeplan: Turn plans into terminal keynote speeches

https://github.com/martinrue/hypeplan
1•afisxisto•9m ago•1 comments

Semantic Fingerprinting Made Easy

https://github.com/thorwhalen/guise
1•ankitg12•17m ago•0 comments

Show HN: Zero2Robot – free, open source interactive textbook for robot learning

https://zero2robot.com/
1•kaushikbokka•17m ago•0 comments

Ask HN: Recommend a Local LLM Setup (M2 Max, 9GB)

1•balivandi•19m ago•0 comments

Show HN: Short SciFi/Fantasy Index

https://quasar.fyi/
1•FifthRocket•20m ago•1 comments

Ask HN: How do I get immoral AI?

2•nasaok•20m ago•0 comments

Best Job Oriented Courses in India: Guide, Rules and Benefits

https://www.smfgindiacredit.com/knowledge-center/best-job-oriented-courses-in-india.aspx
1•saumyaraut11•22m ago•0 comments

Show HN: World Clock with Twilight/Night Overlayed on Map

http://nixon-development.com/worldclock/
1•plun9•25m ago•0 comments

Ukraine's Drones Are Now Reaching Siberia and Imperiling Russian Energy Assets

https://www.wsj.com/world/ukraines-drones-are-now-reaching-siberia-and-imperiling-russian-energy-...
2•JumpCrisscross•25m ago•0 comments

Tech volatility hits highest since dot-com bust next to S

https://fortune.com/2026/07/07/tech-volatility-hits-highest-since-dot-com-bust-sp-500/
2•1vuio0pswjnm7•27m ago•0 comments

Mercor acquires Deeptune to build AI training environments

https://www.mercor.com/blog/mercor-to-acquire-deeptune/
1•doppp•32m ago•0 comments

UN digital tech agency launches initiative to improve trust in AI agents

https://www.reuters.com/legal/litigation/un-digital-tech-agency-launches-initiative-improve-trust...
1•giuliomagnifico•32m ago•0 comments

China's public QR codes are being hijacked to redirect users to porn and scams

https://www.sixthtone.com/news/1018752/ScanScam:CriminalsRedirectChina’sPublicQRCodestoPorn
10•whiteblossom•32m ago•0 comments

Jukebox: Themes inspired by music cover art

https://github.com/nooneknowspeter/jukebox
1•nooneknowspeter•32m ago•0 comments

Counting ArXiv Delays

https://fi-le.net/arxiv/
1•fi-le•38m ago•0 comments

China recovers Long March 10B rocket

https://www.bilibili.com/video/BV1n6NL6fEP9
4•ycui7•40m ago•2 comments

OpenAI and Google sell AI models to blacklisted China groups

https://www.ft.com/content/5d6aafa1-5d47-4585-aa95-6ec06a6cd20f
2•JumpCrisscross•40m ago•0 comments

China recovers reusable rocket used in the maiden launch of Long March 10B

https://www.scmp.com/news/china/science/article/3360069/china-recovers-long-march-10b-reusable-ro...
6•yms_hi•42m ago•0 comments

Think you can win on prediction markets? Here's why you're more likely to lose

https://www.cbc.ca/news/business/prediction-market-skilled-traders-9.7258090
2•1vuio0pswjnm7•44m ago•1 comments

I wrote about how we used Conway's Law to fix legacy architecture

https://one2n.io/blog/fixing-legacy-architectures-with-conways-law
1•chinmay185•49m ago•1 comments

"Worthless Idiot, Donkey Head": Parodies of Pedantry on the Renaissance Stage

https://publicdomainreview.org/essay/parodies-of-pedantry/
2•lermontov•51m ago•0 comments

Formally Verifying AI-Generated GPU Kernels

https://gimletlabs.ai/blog/formally-verifying-ai-generated-kernels
3•matt_d•51m ago•0 comments

Why is music so much easier for AI than code?

2•htlemur_bobby•52m ago•1 comments

Florida's OpenAI lawsuit moves to federal court, gets assigned to Aileen Cannon

https://www.politico.com/news/2026/07/08/floridas-openai-lawsuit-federal-court-aileen-cannon-0099...
1•1vuio0pswjnm7•1h ago•0 comments

Controlling the Human Body via EMS

https://github.com/danielkaijzer/Human-Operator
1•kaonwarb•1h ago•0 comments

Ask HN: MCP Native Tools?

2•edifil•1h ago•2 comments