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•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.

Exposing fake Canadians pushing to join the US [video]

https://www.youtube.com/watch?v=NXafC7tlqt0
1•cloche•2m ago•0 comments

EU plans to fine Google high triple-digit million euro sum, Handelsblatt reports

https://www.reuters.com/world/europe/eu-plans-fine-google-high-triple-digit-million-euro-sum-hand...
1•thm•5m ago•0 comments

Alaska's oil revival sparks a new energy rush Into the Arctic

https://fortune.com/2026/05/24/alaska-oil-revival-energy-investment-arctic-drilling-national-petr...
4•Brajeshwar•15m ago•1 comments

California moves to exempt Linux from its age-verification law after backlash

https://www.tomshardware.com/software/linux/california-moves-to-exempt-linux-from-its-upcoming-ag...
26•rbanffy•16m ago•7 comments

The effect of sleep on blood biomarkers

https://www.empirical.health/blog/effect-of-sleep-on-blood-biomarkers/
1•brandonb•17m ago•0 comments

Inverted Bacteria That Might Kill Everyone

https://benthams.substack.com/p/the-inverted-bacteria-that-experts
2•oj2828•17m ago•0 comments

Show HN: UUTA – A Quiet Practice Journal for iPhone and iPad

https://uuta.app/
1•sravanipuuta•18m ago•0 comments

Show HN: API cost calculator – compare 28 models across 7 providers, no signup

https://quickfix.tools/ai-pricing-calculator/
1•mlongo•18m ago•0 comments

Life is not a Simulation but a Thought Experiment

https://chfritz.github.io/writing/life-is-a-thought-experiment/
1•chfritz•20m ago•0 comments

1986: Email – The Perfect Tech for the Jet Set? – BBC Archive [video]

https://www.youtube.com/watch?v=JqJ159pngY8
1•MasterYoda•20m ago•0 comments

Geo Carncross: How to program computers (2014) [video]

https://www.youtube.com/watch?v=kTrOg19gzP4
1•tosh•21m ago•0 comments

Color palette gives away AI slop

2•endangeredhuman•21m ago•1 comments

ns scale ultra-low-latency fabric over shm and MMAP for IPC

https://crates.io/crates/disruptor-mp
1•venkat_2811•22m ago•0 comments

Trump admin policy shutting US disease researchers of WHO virus response talks

https://www.cnn.com/2026/05/25/politics/global-virus-response-trump-administration
4•vinnyglennon•24m ago•0 comments

Iran President orders restoration of internet access after 87-day blackout

https://www.indiatoday.in/world/story/irans-president-orders-restoration-of-international-interne...
3•guerby•24m ago•0 comments

Maia-3: free and open source

https://lichess.org/@/ashtonanderson/blog/introducing-maia-3-free-and-open-source/vCPPRtX3
3•pncnmnp•24m ago•0 comments

How I made my Zig gameplay code hot reloadable

https://www.madrigalgames.com/blog/how-i-made-my-zig-gameplay-code-hot-reloadable/
2•birdculture•24m ago•0 comments

Why do anxious people lean left?"

https://www.psypost.org/people-with-anxious-tendencies-are-more-likely-to-support-left-wing-econo...
4•bilsbie•29m ago•2 comments

AI guardrails stripped from Meta and Google models in minutes

https://www.ft.com/content/5630ed79-a263-41ed-9a1a-321617ae310e
3•geoffbp•30m ago•0 comments

AI Is Turning Engineers into Farmers, Doctors and Gardeners

https://aswinmohan.me/ai-doctors-engineers
2•aswinmohanme•33m ago•1 comments

Huawei Touts Chip Breakthrough to Shorten Gap with TSMC

https://www.bloomberg.com/news/articles/2026-05-25/huawei-touts-chipmaking-breakthrough-to-shorte...
1•rbanffy•39m ago•0 comments

Apple: Human Interface Guidelines

https://github.com/gingerbeardman/apple-human-interface-guidelines/tree/main
2•tosh•40m ago•0 comments

Mark Zuckerberg's Right-Hand Man Who's Unleashing AI at Meta

https://www.wsj.com/tech/ai/meta-andrew-bosworth-ai-3df12d4f
2•Brajeshwar•42m ago•0 comments

Show HN: Cursed Browser – a VLM reads the HTML and hallucinates the page

https://github.com/scosman/cursed_browser
3•scosman•43m ago•1 comments

Vibe Coding Your Infrastructure

https://www.ivan.codes/blog/vibe-coding-infrastructure
3•ivandotcodes•43m ago•0 comments

Show HN: Linear Chess – Normal Chess, on a 1D board

https://youbee.cloud/chess/chess.html
1•MarcellusDrum•48m ago•0 comments

You Were Never Declaring State. You Were Observing by Hand

https://webframp.com/posts/you-were-never-declaring-state/
1•nickstinemates•49m ago•0 comments

I just sequenced a human genome to 30× coverage at home

https://twitter.com/SethSHowes/status/2058835208586362913
2•MrBuddyCasino•50m ago•0 comments

Exit IP VPN servers mitigation rollout

https://mullvad.net/en/help/exit-ip-vpn-servers-mitigation-rollout
14•Cider9986•51m ago•1 comments

Bursting My AI Bubble

https://indecisiorama.bearblog.dev/bursting-my-ai-bubble/
3•wrxd•51m ago•0 comments