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.

Britain's power prices hit historic summer high

https://www.axle.energy/blog/a-summer-peak-in-a-winter-peaking-grid
1•archydeb•1m ago•0 comments

'The Worst It's Ever Been': Why Meta's AI Reorg Backfired Spectacularly

https://www.inc.com/jessica-stillman/the-worst-its-ever-been-why-metas-massive-ai-reorg-backfired...
1•1vuio0pswjnm7•2m ago•0 comments

We built telecom infrastructure for AI agents in emerging markets

https://krosai.com/
1•theamazinceo•2m ago•0 comments

Why Software Requirements Get Easier in an AI Economy

https://stng.substack.com/p/why-software-requirements-get-easier
1•matt_d•7m ago•0 comments

Show HN: Y – A malleable coding-agent desktop app built with Electron

https://github.com/y-times-y/y
1•HetPatel106•7m ago•0 comments

Get hired faster with data and AI tools to autofill and track

https://www.froghire.ai/
1•Rahul_Ubale•8m ago•0 comments

CISA now has full Mythos Preview access

https://www.nextgov.com/cybersecurity/2026/06/cisa-now-has-full-mythos-preview-access-people-fami...
2•Jimmc414•9m ago•0 comments

A free gift registry where the owner never sees who claimed what

https://giftgiving.fun/
1•dmcgahan•10m ago•0 comments

A Rust macros use case: Tightly-coupled API definitions for a client and server

https://adenalhardan.com/#rust-macros-client-server
1•adenalhardan•11m ago•0 comments

Show HN: Cruit.dev – Get hired at a startup based on your coding agent skills

https://cruit.dev
1•nwang783•12m ago•0 comments

Cheyenne OK's Microsoft Annexation, Rejects $50M Community Benefits Deal

https://cowboystatedaily.com/2026/06/23/cheyenne-oks-huge-microsoft-annexation-rejects-50m-commun...
2•andrekandre•13m ago•0 comments

Show HN: An eligibility agent focused on claims denials

https://www.substrateai.com/blog/introducing-the-substrate-eligibility-agent
1•kunle•14m ago•0 comments

Stop asking AI if your startup idea is good

https://www.idea-launch.io/learn/ai-idea-validator-vs-real-demand-signals
1•apsquared•16m ago•2 comments

Measuring Search Ranking Quality with LLM Judged NDCG

https://corvi.careers/blog/search-eval-llm-judges-ndcg/
2•sp1982•18m ago•0 comments

Americans Got Tricked into Using a Bank That Isn't a Bank [video]

https://www.youtube.com/watch?v=hiE7NvONU5U
1•mgh2•19m ago•0 comments

The Internet Isn't in the Cloud.It's on the Ocean Floor

https://axisbrief.substack.com/p/the-internet-isnt-in-the-cloud-its
2•Axis_Brief•22m ago•0 comments

Eruda – JavaScript Console

https://eruda.liriliri.io/docs/
1•razodactyl•24m ago•0 comments

FEXPRs vs. vtable: how LispE interpreter works

https://github.com/naver/lispe/wiki/2.7-FEXPR-vs.-vtable
1•birdculture•25m ago•0 comments

Prairieland Defendants Sentenced Today to Prison Terms Ranging from 30-100 Years

https://prairielanddefendants.com/press-release/eight-federal-prairieland-defendants-sentenced-to...
2•panic•28m ago•0 comments

Throwing My Roku in the Trash

https://www.coryd.dev/posts/2026/throwing-my-roku-in-the-trash
2•cdrnsf•29m ago•1 comments

GitKraken Unveils Code Flow to Help Teams Navigate the AI Era

https://sdtimes.com/softwaredev/gitkraken-unveils-code-flow-to-help-teams-navigate-the-ai-era/
2•doodlesdev•29m ago•0 comments

System prompt to defend against "Project 545" Generative Engine Optimization

https://pastebin.com/Z2cRVKXP
1•KoftaBob•30m ago•0 comments

Bicameral, Not Homoiconic

https://parentheticallyspeaking.org/articles/bicameral-not-homoiconic/
1•andsoitis•32m ago•0 comments

Vulnerability reports are not special anymore

https://words.filippo.io/vuln-reports/
5•goranmoomin•40m ago•0 comments

FAA awards software and AI contract as part of air traffic control modernization

https://www.nextgov.com/acquisition/2026/06/faa-awards-software-and-ai-contract-part-air-traffic-...
1•WaitWaitWha•44m ago•0 comments

House passes bill to lower housing costs, sending it to Trump's desk

https://www.nbcnews.com/politics/congress/house-passes-sweeping-bill-lower-housing-costs-sending-...
3•toomuchtodo•44m ago•4 comments

AI systems out-persuade expert humans

https://arxiv.org/abs/2606.16475
1•marojejian•46m ago•2 comments

Russia forces universities to teach drone warfare from September 2026

https://mezha.net/eng/bukvy/c3b94111_russia_forces_universities/
2•gnabgib•46m ago•0 comments

Reinforcement learning towards broadly and persistently beneficial models

https://alignment.openai.com/beneficial-rl/
1•vesteny77•51m ago•0 comments

The Secret Life of Circuits by Michal Zalewski (lcamtuf)

https://nostarch.com/secret-life-of-circuits
1•Curiositry•51m ago•0 comments