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.

Cigarettes

https://funnelfiasco.com/blog/2026/06/28/on-cigarettes/
1•aendruk•1m ago•0 comments

Side-Stepping the Secretary Problem

https://www.evalapply.org/posts/side-step-secretary-problem-hiring/index.html
2•Curiositry•8m ago•0 comments

The Usefulness of AI Agents

https://erikjohannes.no/posts/20260408-on-the-usefulness-of-ai-agents/index.html
1•Curiositry•12m ago•0 comments

/Dev/Notion

https://www.notion.com/product/dev
2•handfuloflight•12m ago•0 comments

AI glasses are aiding cheating in exams. Test-obsessed Asia is ground zero

https://www.cnn.com/2026/06/26/asia/ai-glasses-cheating-exams-intl-hnk
2•pseudolus•14m ago•0 comments

AI Workflows in Production Without Burning Tokens

https://unmeshed.io/blog/bringing-ai-workflow-into-production-without-burning-tokens
1•jusonchan81•17m ago•0 comments

Microsoft worker emails employees about company's support of Israel

https://www.thecanary.co/global/world-analysis/2026/06/26/microsoft-worker-emails/
2•lorecore•19m ago•0 comments

The Cheques Are for the Land Not the Intelligence

https://aidatumpoint.substack.com/p/the-cheques-are-for-the-land-not
1•MadCatBureau•20m ago•0 comments

Show HN: best.free

https://best.free/
1•nadermx•21m ago•0 comments

Crypto vs. community: 4k local US lenders join forces to fight 'stablecoins' law

https://www.theguardian.com/technology/2026/jun/28/crypto-v-community-local-lenders-fight-stablec...
3•pseudolus•21m ago•0 comments

New UK stealth fighter demonstrator takes shape

https://www.aerosociety.com/news/new-uk-stealth-fighter-demonstrator-takes-shape/
1•Gravityloss•22m ago•0 comments

You get to watch 1 season of 1 show for the rest of your life, what do you pick?

https://www.reddit.com/r/AskReddit/s/Sf9sqnAqRr
1•eeko_systems•22m ago•1 comments

QUIC, HTTP/3 and WebTransport Vulnerabilities and How PQCrypta Mitigates Them

https://pqcrypta.com/quic-hardening/
1•pqpdf•32m ago•0 comments

Wall Street regulator investigating prediction market giant Polymarket

https://www.politico.com/news/2026/06/26/cftc-investigation-prediction-market-polymarket-00978218
10•voxadam•38m ago•1 comments

Knowledge Distillation of Black-Box Large Language Models

https://arxiv.org/abs/2401.07013
10•babelfish•41m ago•6 comments

My coworker Iris isn't a person

https://vinibrasil.com/my-coworker-iris-isnt-a-person/
2•vnbrs•42m ago•0 comments

France records 1k additional deaths as extreme heat breaks European records

https://www.latimes.com/world-nation/story/2026-06-28/extreme-heat-breaks-more-european-records-1...
2•rolph•43m ago•0 comments

State of the Tau 2026: Why Pi Is Wrong

https://www.tauday.com/state-of-the-tau-current
1•rendx•43m ago•0 comments

Khaos C2: Building a Custom Command and Control from Scratch

https://medium.com/@28zaaky/khaos-c2-building-a-fully-custom-command-and-control-from-scratch-95c...
2•882542F3884314B•45m ago•0 comments

Ask HN: Local CJK/Latin entity extraction without shipping a model?

2•zphou•46m ago•0 comments

Show HN: Pitch Ponies – startup themed comic series

https://supramono.com/blog/never-trust-a-venture-capitalist-a-founders-comic-book-horror-story/
1•supramono•46m ago•0 comments

Writing your own static website generator

https://x3hy.github.io/data/pages/f32cbcd0-c594-4a16-b93b-bdcb2c9b2573.html
2•3hy•48m ago•0 comments

A QNX-inspired operating system with selectable kernels

https://qsoe.net
12•edvinbesic•51m ago•0 comments

Hire Me (Taylor) via API

https://taylor.town/looop-000
2•Curiositry•51m ago•0 comments

Amid stark opposition, data center developers think twice about Florida

https://www.politico.com/news/2026/06/28/florida-data-centers-developers-opposition-00978255
2•1vuio0pswjnm7•52m ago•0 comments

Xonaly – Canada's Independent Search Engine

https://xonaly.com/
10•backlit4034•52m ago•0 comments

Comparative Advantage in Software

https://achad4.substack.com/p/comparative-advantage-in-software
1•achad4•53m ago•0 comments

Role-model: protocol for assigning the right AI model for the right job

https://role-model.dev/
1•handfuloflight•56m ago•0 comments

How does a pull-back car work? Illustrated teardown

https://mechanical-pencil.com/products/car
3•Muhammad523•57m ago•1 comments

Why One of Tech's Biggest Gamblers Is Betting Against Elon Musk's AI Vision

https://www.wsj.com/tech/why-one-of-techs-biggest-gamblers-is-betting-against-elon-musks-ai-visio...
1•petilon•57m ago•2 comments