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.

OpenAI Faces Human Rights Complaint over Climate Emissions

https://www.bloomberg.com/news/articles/2026-12-03/openai-faces-human-rights-complaint-over-clima...
1•maxatleitmotiv•3m ago•0 comments

AI changes the way open-source projects operate due to security and high volumes

https://www.cnx-software.com/2026/12/02/ai-changes-the-way-open-source-projects-operate-due-to-se...
1•giuliomagnifico•3m ago•0 comments

Tech companies issue urgent call for advanced security over AI threat

https://www.bbc.co.uk/news/articles/cm9w9xrkqk5no
1•ColinWright•8m ago•2 comments

A 0.5B LLM Photoshop on Mac (150token/s)

https://github.com/Ziang-Chen/ultimate-svg-metal
2•z_c_cloud•8m ago•0 comments

Waymo Picks AMD Chips to Power Autonomous Ride-Hailing Fleet

https://www.wsj.com/business/autos/waymo-picks-amd-chips-to-power-autonomous-ride-hailing-fleet-b...
1•giuliomagnifico•10m ago•0 comments

Free weekly UK online supermarket shelf-price index (CC BY 4.0 CSV)

https://data.yappman.com/shelf-price-index/
1•yappman•11m ago•0 comments

Leaked: The secret Chat Control 2.0 mandate EU govts are pushing [pdf]

https://www.patrick-breyer.de/wp-content/uploads/2026/12/wk16388.en26.pdf
4•latexr•11m ago•1 comments

Dutch company sues OpenAI for 155M euros and wants its data out of ChatGPT

https://maccus.fr/en/icecat-openai-lawsuit/
5•vrganj•14m ago•0 comments

Critical thinking in the digital age of wonders

https://blog.senko.net/critical-thinking-in-the-digital-age-of-wonders
1•notfried•14m ago•0 comments

Shimano Chairman and CEO Yozo Shimano Has Died

https://velo.outsideonline.com/news/shimano-chairman-and-ceo-yozo-shimano-has-died/
1•giuliomagnifico•15m ago•0 comments

Atom – 16GB GDDR6 256GB/s, 32 TFLOPS FP16, 256 TOPS INT4 85W AI Accelerator Card

https://rebellions.ai/rebellions-product/rbln-ca22/
1•peter_d_sherman•16m ago•0 comments

One Year Building AI Agents for Companies That Weren't AI-Ready: Lessons Learned

https://mectors.medium.com/one-year-building-ai-agents-for-companies-that-werent-ai-ready-here-s-...
1•mectors•16m ago•0 comments

Does Googlebot scroll, click or wait?

https://www.fullstackoptimization.com/a/generative-ai-google-search-clicks
1•franze•17m ago•0 comments

XWiki Becomes a CVE Numbering Authority Under Enisa

https://www.cve.org/PartnerInformation/ListofPartners/partner/XWiki
1•lorinab•18m ago•1 comments

Portal 2 full source code has reportedly leaked, includes Half-Life 2 Ep 3 files

https://www.xda-developers.com/portal-2-full-source-code-has-reportedly-leaked-it-includes-half-l...
1•austinallegro•25m ago•1 comments

Wait, What the Fuck, Restate

https://untested.sonnet.io/notes/wait-what-the-fuck-restate/
1•rpastuszak•26m ago•0 comments

Microsoft ported vscode-textmate into Rust (WebAssembly), now on VSCode 1.149

https://github.com/microsoft/vscode-textmate/pull/315
1•pjmlp•29m ago•0 comments

Harvest now, decrypt later: what post-quantum means for encrypted messaging

https://www.joinmorse.com/blog/harvest-now-decrypt-later
1•UserMark•29m ago•0 comments

When Anesthesia Goes Wrong

https://www.theatlantic.com/magazine/2026/11/anesthesia-brain-damage-death/688691/
1•thunderbong•31m ago•0 comments

Contexting vs. Context

https://cutlefish.substack.com/p/tbm-452-contexting-vs-context
1•BerislavLopac•34m ago•0 comments

Does OneDrive have a sync bug or am I crazy?

https://gist.github.com/sync-diag/b3838b3542b6fc2b31d7e1cb21d30d37
2•donmcronald•34m ago•1 comments

Benchmarking LLMs on Writing Sinterklaas Poems (NL/EN)

https://soev.ai/en/blog/sintbench
1•dbvdh•36m ago•0 comments

Keyty – modern open-source keyboard and mouse visualizer for macOS

https://github.com/keytyapp/Keyty
1•agilek•36m ago•0 comments

Linear Statechart Notation: State machine modeling for the AI era

https://www.state-machine.com/ai-statechart/
2•RossBencina•36m ago•1 comments

Major piracy group releases GTA 6 PC (fitgirl-repacks)

https://www.notebookcheck.net/Major-piracy-group-releases-GTA-6-PC-port-with-smaller-size-in-new-...
3•vargr616•37m ago•1 comments

Show HN: Mail real USPS postcards, Certified Mail and EDDM via web, MCP, x402

https://mcpmails.com/physical
1•socialnakamoto•38m ago•0 comments

Record-breaking El Niño pushes global temperatures to new heights

https://www.bbc.com/news/articles/cklyexwdev96o
3•tosh•45m ago•0 comments

My coordinator agent was a micromanager

https://www.robert-glaser.de/my-coordinator-agent-was-a-micromanager/
1•youngbrioche•45m ago•0 comments

The Science Works Advent Calendar

https://advent.science.works/advent/
1•tedtalkstootwo•47m ago•0 comments

Speaking to yourself in the third person makes you wiser (2019)

https://aeon.co/ideas/why-speaking-to-yourself-in-the-third-person-makes-you-wiser
1•romania1•47m ago•0 comments