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.

Show HN: TeXposit – LaTeX and Markdown Editor

https://texposit.com/
1•danielszabo•4s ago•0 comments

Speck v1.0 – AI spec-driven agents, inspired by compilers and build tools

https://crates.io/crates/speck-dev
1•gidellav•34s ago•0 comments

Speck – AI spec-driven agents, inspired by compilers and build tools

https://github.com/gi-dellav/speck/tree/main
1•gidellav•1m ago•0 comments

Thundersnap 0.01: an undo button for everything

https://apenwarr.ca/log/20260704
1•yorwba•3m ago•0 comments

Ford rehires human engineers after AI fails to match quality checks

https://www.bbc.com/news/articles/cgrkd41n2v9o
1•jack1689•3m ago•0 comments

Testing Bitbake on Yocto 6.0.1 (Wrynose) LTS

https://inavoyage.blogspot.com/2026/07/testing-bitbake-on-yocto-601-wrynose-lts.html
1•initramfs•9m ago•0 comments

Possible evidence of literal prompt injection by Anthropic

https://old.reddit.com/r/LocalLLaMA/comments/1unif51/possible_evidence_of_literal_prompt_injectio...
1•theanonymousone•10m ago•0 comments

Skatt: How Tax Becomes Treasure in Sweden

https://quantshah.substack.com/p/skatt-how-tax-becomes-treasure-in
1•hibijibies•11m ago•0 comments

Getting started with zerostack, a Unix-like lightweight coding agent

https://github.com/gi-dellav/zerostack/blob/main/docs/GET_STARTED.md
2•gidellav•11m ago•0 comments

Better Models: Worse Tools

https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
4•leemoore•11m ago•0 comments

A benchmark revealing an average memory-retrieval accuracy of 9%

https://zendoric.com/en/dia/2026-06-30/11
4•jflynt76•12m ago•0 comments

How AI is changing language

https://www.theguardian.com/books/ng-interactive/2026/jul/04/future-of-fiction-next-great-novel-a...
1•mellosouls•14m ago•0 comments

I built a environment reloader for Windows Shells

1•byjonas•14m ago•0 comments

Spotify Skip Tracker – Open-source Spotify analytics with skip tracking

https://github.com/Ulbjo/Spotify-Skip-tracker
1•Ulbjo•16m ago•0 comments

Conquest Impulse and Aesthetic Impulse

https://www.bitsofwonder.co/p/the-ordinary-and-the-special
1•jger15•16m ago•0 comments

Why Linux is not ready for the desktop (2024)

https://itvision.altervista.org/why.linux.is.not.ready.for.the.desktop.final.html
1•theanonymousone•17m ago•0 comments

Retrieval is not the future of AI – if it was, Google would have won already

1•lamprouge•19m ago•0 comments

Two new experimental MELPA channels

https://emacsair.me/2026/07/03/melpa-channels/
1•Amorymeltzer•23m ago•0 comments

Why I built gsx instead of just templ

https://jackieli.dev/posts/why-i-built-gsx/
1•jackielii•24m ago•0 comments

Xylem Surfactants Introduce a New Element to the Cohesion-Tension Theory(2017)

https://academic.oup.com/plphys/article/173/2/1177/6115978?login=false
1•rolph•25m ago•0 comments

Why implementing ActivityPub is hard, and why it doesn't have to be

https://hackers.pub/@fedify/2026/why-activitypub-is-hard
1•birdculture•29m ago•0 comments

Keeping Code Reviews from Dragging

https://www.sandordargo.com/blog/2026/06/03/making-reviews-actually-fast
2•locknitpicker•31m ago•0 comments

A 25 question trivia quiz for America's 250th birthday

https://usa250quiz-site.pages.dev/
3•seinvak•32m ago•0 comments

Show HN: Waypoint.nvim – A Neovim plugin for bookmarking lines of code

https://github.com/patrick-sharp/waypoint.nvim
3•patrick-sharp•32m ago•0 comments

Show HN: Infra Commits – Conventional Commits but for infrastructure/operations

https://codeberg.org/devopsguy/infra-commits
2•ohelm•32m ago•1 comments

Terraforming Warfare and International Law

https://opiniojuris.org/2026/02/25/terraforming-warfare-and-international-law/
1•bryanrasmussen•33m ago•0 comments

America's 250th Birthday because a test of Collective Intelligence

https://venturebeat.com/technology/how-americas-250th-birthday-became-a-test-of-ai-powered-collec...
2•bonkerbits•34m ago•0 comments

Show HN: Clipart.free – Public-Domain Clipart

https://clipart.free/
1•nadermx•35m ago•0 comments

Keep Your Skills Sharp the Hard Way

https://explainanalyze.com/p/keep-your-skills-sharp-the-hard-way/
2•sdevonoes•36m ago•0 comments

Miller 6.20.2: Miller and AI, bash/zsh tab-completion, bytes datatype

https://github.com/johnkerl/miller/releases/tag/v6.20.2
2•john_kerl•37m ago•0 comments