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.

China's Z.AI made Ox Alpha stealth model that rivals DeepSeek

https://www.theedgesingapore.com/news/artificial-intelligence/chinas-zai-made-ox-alpha-stealth-mo...
1•doppp•8s ago•0 comments

Is DeepSeek-V4-Flash Overtaking American AI Models?

https://mrkt30.com/deepseek-v4-flash-overtaking-american-ai-models/
1•newsaiyc•1m ago•0 comments

Nvidia's $200B 'balance sheet-as-a-service'

https://www.ft.com/content/9a6947bf-9d4e-4489-80b9-2178ea657a67
1•JumpCrisscross•2m ago•0 comments

Fourteen months micromanaging AI coding agents

https://allende.nz/notes/fourteen-months-micromanaging-ai-coding-agents/
1•robertoallende•5m ago•0 comments

Codex and ChatGPT browser now supporting WebMCP

https://twitter.com/OpenAIDevs/status/2092344959248761263
1•Eldodi•6m ago•0 comments

Ask HN: Opus 5 is unusable for writing, even internal use. Alternatives/fix?

1•m3h•7m ago•0 comments

Leibler - Self Evolving Production Agents

https://www.leibler.dev/
3•kkkamur•11m ago•3 comments

Social media use on the rise among Australian under-16s after ban: data

https://www.france24.com/en/live-news/20260826-social-media-use-on-the-rise-among-australian-unde...
3•giuliomagnifico•12m ago•0 comments

XCancel and Nitter are receiving C&D letters from XCorp

4•mobilio•13m ago•0 comments

So basically to earn 50k in Italy you gotta be Andrej Karpathy

https://twitter.com/tropianhs/status/2092171706773451120
2•napolux•14m ago•0 comments

SW Factory: Porting a 5,700-line C voxel game to Rust

https://www.incredibuild.com/blog/the-fun-part-was-free-proving-it-worked-cost-1-96
2•zozo123-IB-IL2•14m ago•0 comments

Understanding Go's Sync.Map from API to Hash Trie

https://victoriametrics.com/blog/go-sync-map-hash-trie/index.html
2•valyala•16m ago•0 comments

Bolt migrated 10M monthly Looker queries from Presto to Databricks

https://bolt.eu/en/blog/migrating-looker-to-databricks/
2•matthieu_bl•16m ago•0 comments

AI-powered email agent that syncs your emails via IMAP

https://github.com/peterretief/emailai/tree/main
2•peter_retief•19m ago•1 comments

The Death of San Francisco's Market Street

https://www.noahpinion.blog/p/the-death-of-market-street
2•A_D_E_P_T•22m ago•0 comments

Braam – An operating system that runs in a browser tab

https://github.com/braamix/core
2•begoon•23m ago•0 comments

Why Iceberg Won

https://nexus0ne.substack.com/p/why-iceberg-won
2•herodoturtle•26m ago•0 comments

Visualizing Combos in Judo in R

https://www.r-bloggers.com/2025/05/the-dynamics-of-the-gentle-way-exploring-judo-attack-combinati...
2•asaiacai•26m ago•0 comments

Scandal-hit KPMG to cut jobs

https://www.reuters.com/business/world-at-work/kpmg-australia-plans-cut-5-jobs-warns-soft-conditi...
2•Alien1Being•27m ago•0 comments

Revolut rolls out EURR, a euro-backed stablecoin

https://twitter.com/Revolut/status/2092512156935684302
2•gearnode•28m ago•0 comments

Self-hosting mail without opening a single port

https://dilluti0n.com/p/selfhost-mail-without-ports/
3•hskimse•30m ago•1 comments

MCP to Talk to Blockchain Data

https://mcp.bitquery.io/
2•YratherNot•31m ago•0 comments

Problem with Concurrent Linter Fixes

https://jfmengels.net/concurrent-linter-fixes/
2•jfmengels1•36m ago•0 comments

MillionDollarHomepage ² – Yes, Why Not

https://milliondollarhomepage2.com/
2•Andreas-Y•38m ago•1 comments

Pennsylvania reports first 2 measles deaths in the US this year

https://apnews.com/article/measles-deaths-pennsylvania-16c6c527c13e88ac3cdea57ffdbd2e19
2•geox•39m ago•0 comments

Code Documentation Quality, Measured

https://www.docuwriter.ai/documentation-quality
2•magarrent•40m ago•0 comments

CMA-ES: My favorite black-box optimizer

https://cmaes.org/
2•Dowwie•40m ago•0 comments

Show HN: WFY24 weather widget with hyper-local forecasting

https://wordpress.org/plugins/wfy24-weather-widget/
2•weatherfun•42m ago•0 comments

Show HN: Banking Access Index – 19 US banking providers, 8 countries, CC-BY

https://www.globalsolo.global/data/banking-access-index
3•jettfu•46m ago•0 comments

GrapheneOS is coming to expensive, high-end Motorola phones next year

https://www.neowin.net/news/grapheneos-is-coming-to-expensive-high-end-motorola-phones-next-year/
3•bundie•48m ago•0 comments