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.

Ursula K. Le Guin: Tales from Earthsea or Gedo Senki

https://www.ursulakleguin.com/adaptation-tales-of-earthsea
1•Rant423•3m ago•0 comments

High-Powered Real-Estate Fund Is Run by College Students

https://www.wsj.com/finance/investing/this-high-powered-real-estate-fund-is-run-by-college-studen...
1•kamaraju•3m ago•0 comments

Deep Dive: Anthropic's Performance Take-Home (The One Claude Beat Humans At)

https://trirpi.github.io/posts/anthropic-performance-takehome/
1•jxmorris12•5m ago•0 comments

Do not use OVHcloud for production services

https://lagomor.ph/indieweb/20260804/1352-note/
1•ChilledTonic•5m ago•0 comments

Show HN: HN-jobs aggregator – updated in real-time

1•freakynit•6m ago•0 comments

Korean stock market crash threatening to upset tech boom

https://www.abc.net.au/news/2026-08-03/korean-markets-threatening-upset-tech-boom/106981956
1•robin_reala•7m ago•0 comments

A good way to start building your own software today

https://initacademy.oyakoo.store/
2•zooboole•9m ago•0 comments

Millions play padel. Will anyone watch it?

https://economist.com/britain/2026/08/03/millions-play-padel-will-anyone-watch-it
2•andsoitis•11m ago•0 comments

Cyberattack hits Liechtenstein's anti-money laundering data register

https://www.euronews.com/my-europe/2026/08/03/cyberattack-hits-liechtensteins-anti-money-launderi...
2•ck45•14m ago•0 comments

Ask HN: Are you interested in a TUI-style financial analysis tool?

2•finscoio•14m ago•1 comments

Structured Prompt Driven Delivery

https://martinfowler.com/articles/structured-prompt-driven/
2•danebalia•15m ago•0 comments

Is Snap Inc Back?

2•Taikhoom2010•15m ago•0 comments

Chaldean Chamber of Commerce

https://chaldeanchamber.com/
2•marysminefnuf•16m ago•0 comments

China has changed its legal definition of semiconductors

https://www.theregister.com/legal/2026/08/04/china-claims-global-chip-leadership-thanks-to-new-le...
2•giuliomagnifico•19m ago•0 comments

Show HN: Cull – Interactive TUI disk space analyzer

https://github.com/legostin/cull
2•legostin•20m ago•0 comments

Ask HN: How are you operating OSS AI infrastructure?

2•kkgupta•25m ago•0 comments

TikTok creator who documented her life with young-onset Alzheimer's dies by MAID

https://www.theglobeandmail.com/canada/article-tiktok-creator-rebecca-luna-young-onset-alzheimers...
3•petethomas•25m ago•0 comments

France wildfires reveal hundreds of WW2 shells in village

https://www.bbc.com/news/articles/cgmkxjrrwdvo
2•1659447091•25m ago•0 comments

Technorealists, the Silent Majority?

https://notes.erlend.sh/3ms6hviosx227
2•erlend_sh•28m ago•0 comments

Indirect Lessons from Human Alignment

https://dynomight.net/human-alignment/
1•zdw•29m ago•0 comments

TransformKit

https://transform-kit.com
3•andrevenancio•55m ago•0 comments

Effects of the New $100k Fee and Wage-Weighted Lottery on the H-1B Visa

https://budgetmodel.wharton.upenn.edu/p/2026-08-03-effects-of-the-new-100000-fee-and-wage-weighte...
2•fzliu•56m ago•1 comments

Hot Set: Shooting Heat

https://theasc.com/article/hot-set-shooting-heat/
1•handfuloflight•1h ago•0 comments

Relative Velocity and Closing Speed

https://eli.thegreenplace.net/2026/relative-velocity-and-closing-speed/
1•mfrw•1h ago•0 comments

TerminalWidget Put Terminal Output on Your Desktop

https://terminalwidget.app/
1•colinprince•1h ago•0 comments

What should go in your Claude.md?

https://zander.wtf/blog/claude-md-agents-md/
4•mrmartineau•1h ago•2 comments

GeoAI: Artificial Intelligence for Geospatial Data

https://opengeoai.org/
1•jonbaer•1h ago•0 comments

Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repos

https://arxiv.org/abs/2607.27250
1•jamesblonde•1h ago•0 comments

Show HN: Local semantic code search that saves your agent tokens

https://tryreference.com/
1•RahulThennarasu•1h ago•0 comments

AI-assisted staging draws boos at the Richard Wagner festival in Germany

https://apnews.com/article/germany-bayreuth-wagner-festival-ai-f4300cdc0be195dabdadfa6d2ab4254c
3•rawgabbit•1h ago•0 comments