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.

Tldr we built the fastest and most compact embedded vector database in the world

https://github.com/Egoist-Machines/LodeDB
1•erinmeryl•1m ago•1 comments

Ask HN: Where is our profession (programmer) going?

1•syntaxbush•2m ago•0 comments

China's Electric Vehicle Exports Reach Record High in May

https://www.bloomberg.com/news/articles/2026-06-24/china-s-electric-vehicle-exports-reach-record-...
1•xbmcuser•3m ago•0 comments

Home Feed does not show releases

https://github.com/orgs/community/discussions/146124
1•oaix•3m ago•0 comments

Supeintelligence Future

1•Siarchitect•5m ago•1 comments

Satteri: A Markdown pipeline forged in Rust for the JavaScript world

https://satteri.bruits.org/
1•handfuloflight•12m ago•0 comments

Show HN: Drive your already-logged-in Chrome from any AI agent

https://github.com/leeguooooo/chrome-use
1•leeguoo•12m ago•0 comments

Medical students are using popular research tool to pump out misleading studies

https://www.science.org/content/article/medical-students-are-using-popular-research-tool-pump-out...
2•rndsignals•14m ago•0 comments

Chinese scientists unveil glowing Avatar-like plants that could light cities

https://www.euronews.com/next/2026/04/02/chinese-scientists-unveil-glowing-avatar-like-plants-tha...
2•thunderbong•15m ago•0 comments

Are you better than the screen watchers?

https://sailsandcommas.com/2026/05/30/are-you-better-than-the-screen-watchers/
1•Curiositry•25m ago•0 comments

Cloudflare launched self-managed OAuth for all

https://blog.cloudflare.com/oauth-for-all/
3•terryds•26m ago•1 comments

Libaui – Tk clone in XCB and C

https://github.com/onanaxm/libaui
2•onuelito•27m ago•0 comments

Zombie unicorns are haunting Silicon Valley

https://www.economist.com/business/2026/06/21/zombie-unicorns-are-haunting-silicon-valley
1•andsoitis•28m ago•1 comments

Electronics can now be printed onto living tissues

https://www.economist.com/science-and-technology/2026/06/24/electronics-can-now-be-printed-onto-l...
2•andsoitis•29m ago•0 comments

Scbkr – an owner-signed responsibility-chain workbench for local LLMs

https://github.com/HIJO790401/scbkr-local-responsibility-model
1•look888•31m ago•0 comments

SystemVerilog

https://en.wikipedia.org/wiki/SystemVerilog
1•handfuloflight•37m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
1•maxutility•38m ago•0 comments

Mr. Big (Police Procedure)

https://en.wikipedia.org/wiki/Mr._Big_(police_procedure)
3•killingtime74•41m ago•0 comments

Duolicious – Open-source dating app

https://github.com/duolicious/duolicious
4•roger_penrose•41m ago•0 comments

TronBrowser is an open-source, privacy-first, AI-native web browser

https://tronbrowser.dev/
1•buffer_overlord•43m ago•1 comments

Remembering the life and artwork of Ron Spears

https://magic.wizards.com/en/news/feature/remembering-the-life-and-artwork-of-ron-spears
1•WalterGR•52m ago•0 comments

Writers and Drugs

https://lithub.com/are-writers-intrinsically-vulnerable-to-alcohol-and-drugs/
3•dang•54m ago•1 comments

The effortless genius of Super Mario 64

https://ravi64.com/messi-effortless-genius-super-mario-64/
1•merlioncity•57m ago•0 comments

Paintings by Adolf Hitler

https://en.wikipedia.org/wiki/Paintings_by_Adolf_Hitler
3•num42•59m ago•0 comments

Bible as RAG Database

https://www.crosscanon.com/
33•jacksonastone•1h ago•14 comments

Bitcoin hits 20-month low as market sentiment sours

https://www.ft.com/content/41d1da8f-e1a8-4953-9d89-a8caa84cd26c
10•1vuio0pswjnm7•1h ago•0 comments

The Microsoft Store on Windows 11 is great now (2025)

https://www.windowscentral.com/microsoft/windows-11/the-microsoft-store-on-windows-11-is-actually...
1•kristianp•1h ago•0 comments

Golden Boot – Club Impact Tracker

https://golden-boot-club-impact.vercel.app/
2•saq7•1h ago•1 comments

Tech companies dealing with data center protests locally fighting losing battle

https://fortune.com/2026/06/22/data-center-opposition-goes-national-despite-only-8-percent-living...
2•1vuio0pswjnm7•1h ago•1 comments

Exploring the internal representations of Pangram 3.3.2

https://www.pangram.com/pangram-space
10•krackers•1h ago•1 comments