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.

Evaluate the profanity used working with Codex and Claude Code

https://github.com/marcelpetrick/AgenticSwearJar
1•marcelpetrick•1m ago•1 comments

Mainline Closed Beta: Open-source, science-based chess training

https://github.com/kleinebossie/Mainline
1•joebos•5m ago•1 comments

First Binary Distribution of the OpenSSL Library: Windows Installer Test Release

https://github.com/openssl/openssl/discussions/32317
1•theandrewbailey•7m ago•0 comments

"I used Fable 5 to bring Command and Conquer: Red Alert 2 to iPhone and iPad"

https://xcancel.com/antibot/captcha
1•doener•10m ago•0 comments

Electric Is Joining Databricks

https://electric.ax/blog/2026/08/11/electric-joining-databricks
1•chaychoong•10m ago•0 comments

An Advanced Attacker Is Targeting Salesforce and ServiceNow

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
1•daretograsp•12m ago•0 comments

Facebook is paying controversial creators to produce rage-bait content

https://www.abc.net.au/news/2026-08-06/ragebait-how-facebook-is-paying-controversial-creators/106...
10•robtherobber•14m ago•1 comments

Turbo Pascal on CP/M, MSX-DOS and MS-DOS – Pascal for Small Machines

http://pascal.hansotten.com/delphi/turbo-pascal-on-cpm-msx-dos-and-ms-dos/
2•rbanffy•15m ago•0 comments

Life Lessons from Reinforcement Learning

https://www.jasonwei.net/blog/life-lessons-from-reinforcement-learning
1•harpsichord9•16m ago•0 comments

Finding Metrics That Matter

https://www.octoshark.net/p/measuring-matters
1•akexl•18m ago•0 comments

Beef and dairy drive 41% of biodiversity damage linked to global farmland

https://www.oxfordmartin.ox.ac.uk/news/beef-and-dairy-drive-41-of-biodiversity-damage-linked-to-g...
2•robtherobber•18m ago•0 comments

The Principal-Agent vs. Agents Problem

https://twitter.com/arampell/status/2087258098427982012
1•tosh•19m ago•0 comments

Why sexualisation of women by Grok's GenAI is a data privacy issue

https://www.computerweekly.com/news/366648854/Why-sexualisation-of-women-by-Groks-GenAI-is-a-data...
2•beardyw•23m ago•0 comments

Worms: The Directors Cut (Amiga) – A Playguide and Review – By Lemonamiga.com [video]

https://www.youtube.com/watch?v=Xnz0_G5GIJg
1•doener•24m ago•0 comments

Inflation Peaks – drive over India's inflation

https://timeseriesofindia.com/economy/play/inflation-peaks/
2•Karupan•25m ago•0 comments

It's time to sue Sony, join us [video]

https://www.youtube.com/watch?v=gUHyYkPnJv0
3•whosgotch•26m ago•0 comments

Discovery of 'slow' electrons in 2D material could lead to new memory device

https://phys.org/news/2026-08-discovery-electrons-2d-material-memory.html
1•frozenseven•27m ago•1 comments

Show HN: Craft (Minecraft clone) rewritten in Rust under a $120 budgeted (Grok)

https://zozo123.github.io/Craft/
1•zozo123-IB-IL2•28m ago•0 comments

AI Infrastructure Leadership Summit

https://rafay.swoogo.com/inquiry/12744303
3•kikiodazie•28m ago•1 comments

I deleted 60% of my subscribers on purpose

https://tinyfound.beehiiv.com/p/from-europe-with-love
1•alexbelyanin•29m ago•0 comments

Privateconvert.org – browser-based ffmpeg converter with a win95 vibe

https://privateconvert.org/
1•alentodorov•29m ago•0 comments

Show HN: Replaced news reading with two tiny editions a day, then made it public

https://cutthroat.news/
1•binaryapparatus•31m ago•0 comments

The Dangers of Postgres Subtransactions

https://planetscale.com/blog/the-dangers-of-postgres-subtransactions
1•birdculture•32m ago•0 comments

AlphaLab.ai – Run your own AI quant lab

https://www.alphalab.ai/
1•tarekayna•32m ago•0 comments

What Did Ada Lovelace's Program Do? (2018)

https://twobithistory.org/2018/08/18/ada-lovelace-note-g.html
2•downbad_•33m ago•0 comments

The eBay Harassment Scandal

https://www.theguardian.com/film/2026/aug/11/whatever-it-takes-documentary-ebay-harassment-scandal
4•Gupie•34m ago•0 comments

App Archiver compresses macOS apps in place instead of deleting them

https://apparchiver.com/
1•IGHOR•38m ago•1 comments

Dutch Train Map Simulator

https://spoorkaart.zaza.dev
11•zazaalaza•40m ago•1 comments

I will pay $ for your code

https://intentic.dev/earn/
1•radarsu•44m ago•1 comments

Running Umami analytics for free on Vercel and Supabase

https://blog.kulman.sk/running-umami-for-free/
1•ig0r0•44m ago•0 comments