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: I built a Markmaster, a Markdown learning tool for non-coders

https://drmarkdown.netlify.app/
1•shymaple•38s ago•0 comments

White House lifts ban on Anthropic models

https://www.ft.com/content/137ddb71-852f-438c-ad76-25e2dc43486b
1•couAUIA•1m ago•1 comments

On the semantic web

https://karlkoch.me/writing/on-the-semantic-web
1•nathell•2m ago•0 comments

How are you building resilient hybrid cloud networks?

https://geekyants.com/blog/building-a-resilient-hybrid-cloud-network-with-wireguard-ha-route-base...
1•Krishnaswaroop•3m ago•0 comments

Voice of Gene Wilder recreated by AI for new Wonka-themed Netflix series

https://news.sky.com/story/voice-of-gene-wilder-recreated-by-ai-for-new-wonka-themed-netflix-seri...
1•austinallegro•6m ago•0 comments

Don't Do Code Reviews

https://kore-nordmann.de/blog/dont_do_code_reviews.html
1•ingve•9m ago•0 comments

Coding and debugging will fall back to older model in Fable 5.Losing hope as Dev

https://x.com/AnthropicAI
1•riponcm•13m ago•0 comments

Gojek Co-Founder Makarim's Trial in Indonesia Shows Rising Business Risks

https://www.bloomberg.com/news/articles/2026-06-17/gojek-co-founder-makarim-s-trial-in-indonesia-...
1•doppp•17m ago•0 comments

New attack provides one more reason why AI browsers are a bad idea

https://arstechnica.com/security/2026/06/ai-browsers-can-be-lulled-into-a-dream-world-where-guard...
3•joozio•18m ago•0 comments

Liquid AI releases a 230M model optimized for phones, Raspberry Pi, and robots

https://www.liquid.ai/blog/lfm2-5-230m
1•mpfect•20m ago•0 comments

For Kodachrome Fans, Road Ends at Photo Lab in Kansas (2010)

https://www.nytimes.com/2010/12/30/us/30film.html
1•js2•22m ago•1 comments

Horsewood ReviEwS ( July 2026) We Tried It My Honest Review

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
3•pazybaur•26m ago•0 comments

Noise as information and information as noise – Unsung

https://unsung.aresluna.org/noise-as-information-and-information-as-noise/
1•rbanffy•27m ago•0 comments

Terminal Apps Need a DOM

https://www.c1.ai/engineering/agent-tui-structured-terminal-access-for-ai-agents
1•philips•28m ago•0 comments

What if social media optimized for less time online?

https://tuhat.net/u/sbr/p/kilta
1•8by3•28m ago•0 comments

Uruky: The paid European search engine

https://robheghan.prose.sh/26_06_30_uruky
2•Skinney•31m ago•0 comments

Ragit – chat with any folder of documents using a local LLM

https://github.com/ats4321/ragit
2•atshu21•32m ago•0 comments

Telharmonium: First Synthesizer (and Predecessor to Muzak), Invented in 1897

https://www.openculture.com/2026/03/meet-the-telharmonium-the-first-synthesizer-and-predecessor-t...
1•brudgers•36m ago•0 comments

End Every Work Session with One Note

1•Semi_hayat•36m ago•0 comments

High quality image resizing: ImageMagick vs. libplacebo

https://world-playground-deceit.net/blog/2026/06/high-quality-image-resizing-imagemagick-vs-libpl...
1•BoingBoomTschak•39m ago•0 comments

Clone This Repo and I Own Your Machine

https://0din.ai/blog/clone-this-repo-and-i-own-your-machine
1•croes•40m ago•0 comments

Flux 2.9 release: new mirror and schema plugins

https://fluxcd.io/blog/2026/06/flux-v2.9.0/
1•stealthybox•41m ago•1 comments

Will China build an electric rocket launch pad on the roof of the world?

https://www.scmp.com/news/china/science/article/3358469/will-china-build-electric-rocket-launch-p...
2•Alien1Being•46m ago•1 comments

New Zealand paid Michelin $6.3M to make a guide for the country

https://www.stuff.co.nz/politics/361000572/our-food-migtnt-be-worth-special-journey-minister-says...
1•didntknowyou•47m ago•2 comments

DProvenanceKit: Execution Provenance for AI Systems

https://github.com/Therealdk8890/DProvenanceKitPython
1•DPK890•48m ago•0 comments

How to (Not) Spend $10k/Wk on Coding Agents

https://allenpike.com/2026/how-to-not-spend-10k-on-coding-agents/
2•srijan4•52m ago•0 comments

Where do you answer"is the agent allowed to do this?"–one place,orevery adapter?

https://github.com/YogiSotho/warden
1•yogisotho•55m ago•0 comments

Realta Fusion generates electricity directly from a fusion reaction

https://techcrunch.com/2026/06/30/realta-fusion-generates-electricity-directly-from-a-fusion-reac...
1•latchkey•56m ago•0 comments

A Multi-Dimensional, Per-Pass Empirical Study of the LLVM Optimization Pipeline

https://arxiv.org/abs/2606.31238
1•fcb•57m ago•1 comments

Soapbox – Software for a Free Internet

https://soapbox.pub/
1•janandonly•58m ago•0 comments