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.

Vendor data feed is wrong

https://coloneltoad.substack.com/p/why-i-built-my-own-data-pipeline
1•tolugenius•3m ago•0 comments

How Does the Video Codec Influence the Prediction Scores of an AI Model?

https://www.fourthline.com/newsroom/supervised-vs-contrastive-classification
2•Doch88•9m ago•0 comments

Build a Web App for Your Machine Learning Model

https://mljar.com/blog/web-app-machine-learning/
2•pplonski86•11m ago•0 comments

AWS Tunes Up Graviton5 for Agentic AI, Boosts Bang for the Buck Bigtime

https://www.nextplatform.com/compute/2026/06/11/aws-tunes-up-graviton5-for-agentic-ai-boosts-bang...
1•rbanffy•12m ago•0 comments

Facing US chip curbs, China launches photonics lab to power AI with light

https://www.scmp.com/tech/tech-war/article/3356901/facing-us-chip-curbs-china-launches-photonics-...
3•outrunner•12m ago•0 comments

"This cannot continue": Xbox leaders lay out "hard truths" behind sagging brand

https://arstechnica.com/gaming/2026/06/this-cannot-continue-xbox-leaders-lay-out-hard-truths-behi...
2•rbanffy•12m ago•0 comments

China's chip design software firms catch US rivals?

https://www.scmp.com/tech/big-tech/article/3356853/chinas-chip-software-firms-back-huaweis-new-sc...
1•merlioncity•12m ago•0 comments

Alaskans will be flying blind after NSF decommissions ocean monitoring network

https://insideclimatenews.org/news/09062026/alaska-ocean-monitoring-instruments-nsf-cuts/
1•rbanffy•14m ago•0 comments

Show HN: Grops – Stop the Information Overload

https://grops.biz
1•filippo_ciprian•18m ago•0 comments

Ask HN: Is Claude Fable 5 built from scratch or just better data?

1•throwaw12•19m ago•0 comments

The Aesthetics of Multicoding Esolangs (2020) [pdf]

https://danieltemkin.com/Content/Esolangs/multicoding_esolangs.pdf
1•thalium•19m ago•0 comments

Finding code duplicated by AI without AI

https://github.com/Rafaelpta/dupehound
2•rafaepta•21m ago•1 comments

Show HN: Passwd.page – give agents secrets without pasting them into prompts

https://passwd.page/
1•davidfeldi•22m ago•0 comments

AI will be massively deflationary

https://geohot.github.io//blog/jekyll/update/2026/06/11/ai-will-be-deflationary.html
2•dalvasorsali•26m ago•0 comments

David Hockney, Who Restored the Human Form to Art, Dies at 88

https://www.nytimes.com/2026/06/12/arts/design/david-hockney-dead.html
9•SirLJ•28m ago•0 comments

AI Will Cheat to Win: Reward Hacking from 1994 to 2025

https://adversariallogic.com/when-ai-finds-the-shortcut-reward-hacking-from-1994-to-2025/
1•joshgracie•29m ago•0 comments

Tron Algorithm Competition

https://tron.erik.gdn/
1•zinngr•30m ago•0 comments

Horizon Trade revolutionises trading with AI

https://horizon.trade
1•LaurenzBauer•32m ago•1 comments

How and why we moved our knowledge base from Notion to Markdown

https://blog.fortrabbit.com/moving-knowledge-base-from-notion-to-markdown
1•esher•38m ago•0 comments

Flash Drive has Every File [video]

https://www.youtube.com/watch?v=w6rkhvdAqHU
1•Gys•40m ago•0 comments

Anthropic Mythos: Modelling Bank Strategies

https://neuralcore.brainterms.ai/share/rpt_mq9ayvj0
1•Jderenne•40m ago•1 comments

Celebrated British artist David Hockney dies aged 88

https://www.bbc.co.uk/news/live/c4gye2zk29zt
2•max-amb•42m ago•0 comments

Ryanair dark UX patterns summer 2026 refresher

https://blog.osull.com/2026/06/12/ryanair-dark-ux-patterns-summer-2026-refresher/
18•danosull•43m ago•8 comments

A Systemic View of U.S.-China AI Competition [pdf]

https://www.jpmorganchase.com/content/dam/jpmorganchase/documents/center-for-geopolitics/cfg-us-c...
1•throw0101a•44m ago•0 comments

California hit by another fraud bombshell claims for $4B are fake

https://www.dailymail.com/news/article-15894057/California-sex-abuse-fraud-billions.html
1•Bender•44m ago•0 comments

Show HN: Ttar 2.4 KB freestanding TAR archiver written in C, no Libc

https://github.com/Ferki-git-creator/ttar-tiny-tar-archivist
1•DenisDolya•45m ago•0 comments

The AI Price War Is Here, Piling Pressure on OpenAI and Anthropic

https://www.wsj.com/tech/ai/the-ai-price-war-is-here-piling-pressure-on-openai-and-anthropic-86e1...
2•cebert•47m ago•1 comments

Kimi Code K2.7

https://twitter.com/Kimi_Moonshot/status/2065377579130142937
4•theanonymousone•48m ago•0 comments

Stop tuning prompts by hand. Engineer the loop that tunes them

https://github.com/anastasiosyal/dspy-gepa-optimizer
1•tassosyal•48m ago•0 comments

(Some) Unanswered Swift Group Questions

https://www.massicotte.org/blog/wwdc26-unanswered-qa/
1•ianhxu•51m ago•0 comments