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 Fool (Tarot Card)

https://en.wikipedia.org/wiki/The_Fool_(tarot_card)
1•jackhalford•1m ago•0 comments

How AI is breaking the British State

1•andsoitis•3m ago•0 comments

You can build an AI agent's memory layer with only Go's standard library

https://towardsdev.com/the-memory-efficient-ai-agent-building-a-context-engine-in-go-d4b7557c44d8...
1•cheikhdev•3m ago•0 comments

Google DeepMind enters a new era as co-founder Demis Hassabis shifts AI role

https://www.theguardian.com/technology/2026/aug/08/google-demis-hassabis-deepmind-shifts-role
1•flancian•3m ago•0 comments

Ask HN: Why is Open POWER Foundation a wasteland?

1•climate_denier_•3m ago•0 comments

My server is a phone now

https://seg6.space/posts/phone-server/
1•seg6•4m ago•0 comments

Show HN: Try Benzi – A coding harness/agent beating Claude Code itself on Sonnet

https://benzi.fly.dev/about
1•showhz•5m ago•0 comments

Show HN: iPhone app takes simultaneous images from 2 lenses, fuses into 1 photo

https://photosynthesis.camera
1•sajomes•6m ago•0 comments

How to Handle a Difficult Colleague

https://www.thetrueengineer.com/p/surviving-the-workplace-how-to-handle
1•adletbalzhanov•7m ago•0 comments

Should you stop cracking your knuckles?

https://www.bbc.com/future/article/20260807-should-i-stop-cracking-my-knuckles
2•tchalla•17m ago•0 comments

Confessions of a Democratic Socialist [video]

https://www.youtube.com/watch?v=61tUsrNejRM
1•donsupreme•20m ago•0 comments

Shopify replaced Redis with MySQL for inventory reservations–and it scaled

https://shopify.engineering/scaling-inventory-reservations
2•adletbalzhanov•20m ago•0 comments

How Can LLM RL Work Despite Information-Theoretic Inefficiency

https://www.beren.io/2026-07-26-How-Can-LLM-RL-Work-Despite-Information-Theoretic-Inefficiency/
1•sshh12•21m ago•0 comments

Show HN: Turn tweets into beautiful, shareable photos

https://tweet.download/
1•azeemkafridi•24m ago•0 comments

Show HN: ExpertCache – Run the Full GPT-OSS 120B (63GB) on a 16GB M1 Pro

https://github.com/amos-labs/expertcache
1•rick_barkley•25m ago•0 comments

Show HN: Inertia – Not your Grandfathers animation editor

https://inertiagraphics.com/
1•hpen•26m ago•0 comments

SpaceX Earnings Reveal X's Shrinking Ad Biz

https://www.mediapost.com/publications/article/417046/spacex-q2-earnings-show-xs-shrunken-ad-biz....
4•keeda•27m ago•1 comments

Roku Fairgound, a new 24/7 AI slop channel

https://therokuchannel.roku.com/details/b484db42f3d31b6dc2f604d453c694a0/fairground-ai-creator-tv
2•timoth3y•27m ago•1 comments

Why I'm gone [video][59 mins]

https://www.youtube.com/watch?v=0VbyhUmtuBw
2•Bender•28m ago•0 comments

AI Settles a 25 Year-Old Problem We Left Behind

https://twitter.com/DimitrisPapail/status/2086158118354887060
2•amichail•31m ago•0 comments

Ask HN: Books Written for Polyglots?

1•s4074433•31m ago•0 comments

High-frequency trading firm just hired Bjarne Stroustrup (creator of C++)

https://www.efinancialcareers.com/news/a-high-frequency-trading-firm-just-hired-bjarne-stroustrup...
3•refp•32m ago•1 comments

Super Mario Derivations

https://fzakaria.com/2026/08/05/super-mario-derivations
2•mtlynch•32m ago•1 comments

Solar eclipse threatens to tighten Europe's electricity squeeze

https://www.ft.com/content/06a25d8d-77d8-4dd5-8cd6-a105423544b2
1•JumpCrisscross•34m ago•0 comments

You don't know what DevOps means

https://vsyrakis.dev/blog/you-dont-know-devops/
2•adletbalzhanov•36m ago•0 comments

Data Beads

https://databeads.eu/
3•bookofjoe•37m ago•1 comments

The Object Model in Livelymerge

https://www.inkandswitch.com/livelymerge/notebook/lm-03/
1•mpweiher•37m ago•0 comments

Diffflow, a Bigger Toolbox, Free Tools Dashboard

https://diffflow.com/blog/tools-dashboard/
4•7rin0•38m ago•0 comments

Greenland issues 'strong warning' as Trump-linked oil firm prepares to drill

https://www.theguardian.com/world/2026/aug/08/greenland-iwarning-trump-linked-oil-firm-prepares-d...
3•thisislife2•40m ago•0 comments

Giving a Shit as a Service (2022)

https://allenpike.com/2022/giving-a-shit/
2•downbad_•41m ago•0 comments