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.

iPhone 18 Pro Introduces 'Apple Reference Image' to Verify Photo Authenticity

https://www.macrumors.com/2026/09/09/apple-reference-image/
1•pgwhalen•1m ago•0 comments

Time, Clocks, and the Ordering of Events in a Distributed System (1978) [pdf]

https://lamport.azurewebsites.net/pubs/time-clocks.pdf
1•danbitengo•9m ago•0 comments

Screenmap

https://screenmap.dev/
1•handfuloflight•9m ago•0 comments

Ask HN: Why can I only downvote select comments?

1•socalgal2•10m ago•0 comments

Show HN: PCalen – Generate free printable calendar in seconds

https://pcalen.com/
1•aleker•10m ago•0 comments

Lean Game Server

https://adam.math.hhu.de/#/
3•abetusk•14m ago•0 comments

Natural Number Game (Lean4 Tutorial)

https://adam.math.hhu.de/#/g/hhu-adam/NNG4
3•abetusk•14m ago•1 comments

National Archives locations set to close without tribal consultation

https://ictnews.org/news/these-records-are-priceless-3-national-archives-locations-set-to-close-w...
1•mooreds•14m ago•0 comments

Agent Router: Powerful traffic handling for agent builders

https://aaif.io/blog/agent-router-powerful-traffic-handling-for-agent-builders
1•mooreds•16m ago•0 comments

Playship – idea to published Android app, automated

https://playship.dev/
1•bowwerick•18m ago•0 comments

RyTuneX 1.7.1: open-source Windows 10/11 optimizer adds per-item rollback

https://github.com/rayenghanmi/RyTuneX
1•wangxin199•21m ago•0 comments

Apple Watch's new feature listens to your chats and recaps them

https://techcrunch.com/2026/09/09/apple-watchs-new-feature-listens-to-your-chats-and-recaps-them/
1•pier25•21m ago•0 comments

Review a pull request by booting it

https://fzakaria.com/2026/09/09/review-a-pull-request-by-booting-it
3•domenkozar•23m ago•0 comments

Show HN: Rayrun – one MCP gateway for the whole company

https://ray.run/
2•lucgagan•24m ago•0 comments

Microsoft Surface Duo

https://news.microsoft.com/surfaceduo/
1•fortran77•25m ago•1 comments

PEG: Postgres and Elm and Go

https://github.com/ramblingenzyme/peg/tree/main
1•ramblingenzyme•26m ago•0 comments

Navier–Stokes, AI and the future of research in mathematics [pdf]

https://bms.ulb.ac.be/data/uploads/untitled.pdf
2•fghorow•28m ago•2 comments

Anthropic discloses fourth AI hacking incident missed in earlier review

https://www.reuters.com/legal/litigation/anthropic-reports-fourth-cybersecurity-incident-with-ear...
3•accountinhn•29m ago•0 comments

Trezor's Email provider has been breached

https://twitter.com/CR1337/status/2097841222954184954
2•CR1337•31m ago•0 comments

Max Dama on Automated Trading (2011) [pdf]

http://isomorphisms.sdf.org/maxdama.pdf
1•TheAlchemist•34m ago•0 comments

Van Halen Test

https://en.wikipedia.org/wiki/Van_Halen_test
1•evo_9•37m ago•0 comments

Getting 50 GB/S Back from the Apple Neural Engine

https://eiln.github.io/posts/ane-dma.html
1•eiln•38m ago•1 comments

Tor VPN Beta: What we've learned building our own VPN for Android from scratch

https://blog.torproject.org/tor-vpn-beta/
2•woofcat•39m ago•0 comments

Where Stability Becomes the Constraint

https://medium.com/@gurvinder372/article-14-where-stability-becomes-the-constraint-c262b07f617c
1•gps372•41m ago•0 comments

Coinbase Design Systems Are Powering the AI Prototyping Era

https://www.coinbase.com/blog/how-coinbase-design-systems-are-powering-the-ai-prototyping-era
2•dukebartnik•41m ago•0 comments

Show HN: Kin – A code repository built for AI and the people working with it

https://github.com/firelock-ai/kin
1•troyjr4103•44m ago•0 comments

Weighing matrix W(35,25) found

https://github.com/Jepfore-Games-Ltd/W-35-25
1•jepforegames•44m ago•0 comments

More Impossible-to-Ignore Vaccine Effects

https://www.science.org/content/blog-post/more-impossible-ignore-vaccine-effects
3•EA-3167•47m ago•0 comments

USN-8717-1: Apache Tika vulnerability – Ubuntu security notices

https://ubuntu.com/security/notices/USN-8717-1
2•kyisaiah47•51m ago•0 comments

Muse, the band, lost its social media handles to Muse, Meta's new AI agent

https://www.engadget.com/2254419/muse-the-band-lost-its-social-media-handles-to-muse-meta-s-new-a...
96•_djo_•57m ago•36 comments