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 hidden health cost of dollar store groceries

https://news.ucr.edu/articles/2026/08/18/hidden-health-cost-dollar-store-groceries
1•hhs•39s ago•0 comments

Australia usually hosts the biggest cuttlefish mating event – not this year

https://www.bbc.com/news/articles/c75gyw0nkzno
1•blondie9x•1m ago•0 comments

Online reviews risk cyberattacks

https://news.mccombs.utexas.edu/research/online-reviews-risk-cyberattacks/
1•hhs•2m ago•0 comments

Microsoft Admits AI Training in New User Privacy Statment

https://slashdot.org/submission/17350256/microsoft-admits-ai-training-in-new-user-privacy-statment
1•MilnerRoute•2m ago•0 comments

Light-powered soft robots can keep jumping forever

https://news.ncsu.edu/2026/08/soft-robots-jumping-forever/
1•hhs•3m ago•0 comments

Percent on ARC-AGI-3

https://monotykamary.com/posts/100-percent-on-arc-agi-3/
1•freediver•4m ago•0 comments

New Bimodal Design Could Supercharge Nuclear Spacecraft

https://spectrum.ieee.org/bimodal-nuclear-spacecraft
1•rbanffy•4m ago•0 comments

Reconstructing lattice point enumeration using Asian counting rods

https://oborona.zip/post/polygon-partitioning-and-piled-pile-sequences-on-an-equilateral-triangul...
1•gg582•8m ago•0 comments

Critical: Persistent back end data retention after deletion in AI Studio

https://issuetracker.google.com/issues/554464766
1•Bitu79•13m ago•0 comments

Translating a prophecy between two constructed languages [video]

https://www.youtube.com/watch?v=TZQnmLQt4oc
1•jlamberts•14m ago•1 comments

Show HN: Practice where countries are in the world

1•blackbrokkoli•22m ago•0 comments

Fat Tire Brakes Get Wireless Upgrade

https://hackaday.com/2026/08/29/fat-tire-brakes-get-wireless-upgrade/
1•lostlogin•35m ago•0 comments

Xylitol Linked to Strokes and Heart Attacks, Study Finds

https://www.theguardian.com/society/2026/aug/28/sweetener-xylitol-used-in-chewing-gum-and-jam-lin...
2•m463•38m ago•0 comments

OpenRouter is advertising popular Chinese models as based in Singapore

https://openrouter.ai/providers
2•K3N0B1•42m ago•0 comments

MIT student claims to synthesize dangerous chemical, prompting hazmat response

https://www.nbcboston.com/news/local/mit-chemical-hazmat-building-18/4006077/
2•rbanffy•42m ago•0 comments

Create QR codes for $1/month

https://www.createqrcodes.io
1•mattmerrick•43m ago•0 comments

Renderformer V2 (Full neural rendering)

https://renderformer.github.io/v2/
2•E-Reverance•50m ago•0 comments

Use of 'Reasonable' in Gun Control Advocacy

https://firearmsresearchcenter.org/working_papers/use-of-reasonable-in-gun-control-advocacy/
2•delschlangen•51m ago•0 comments

Mcptestkit

https://pypi.org/project/mcp-testkit/
2•opiniateddev•56m ago•0 comments

Fast Unicode (UTF-8) validation with autovectorization

https://nitely.github.io/2026/08/30/fast-unicode-utf-8-validation.html
1•nitely•1h ago•0 comments

I ran out of AI tokens in one app while holding unused tokens in another

1•nextma•1h ago•2 comments

40k Pounds of Pabst Blue Ribbon Beer Reported Stolen in California

https://www.nytimes.com/2026/08/29/business/pabst-beer-truck-stolen-california.html
2•ChrisArchitect•1h ago•0 comments

Tell HN: STOP making Vibe Slop websites that LAG on my MBP and workstation

2•moomoo11•1h ago•1 comments

Establishing the United States Space Academy – The White House

https://www.whitehouse.gov/presidential-actions/2026/08/establishing-the-united-states-space-acad...
3•rbanffy•1h ago•1 comments

Dancing Bot (Stepmania)

https://dominickp.github.io/dancing-bot/
2•dominick-cc•1h ago•4 comments

How Wingman is able to be client agnostic

https://docs.wingman.actor/concepts/clients/
1•ChaseRensberger•1h ago•1 comments

California lawmakers unanimously pass Linux exemption from age-verification law

https://www.tomshardware.com/software/linux/california-lawmakers-unanimously-pass-linux-exemption...
4•shscs911•1h ago•0 comments

You have to beat the models at something

https://www.seangoedecke.com/you-have-to-beat-the-models-at-something/
4•sam_bristow•1h ago•0 comments

There's no such thing as Just a Tool

https://deadsimpletech.com/blog/no-such-thing-as-just-a-tool
2•cratermoon•1h ago•0 comments

Ask HN: Hard Mode for LLMs

2•Harlekuin•1h ago•0 comments