frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

'World-first' vaccine designed by artificial intelligence

https://www.bbc.com/news/articles/crrpggegwe0o
1•sizzle•1m ago•0 comments

Form design: from zero to hero all in one blog post

https://adamsilver.io/blog/form-design-from-zero-to-hero-all-in-one-blog-post/
1•thunderbong•3m ago•0 comments

CEO to staff: You're not getting a raise. We're spending on AI instead

https://www.businessinsider.com/teradata-pauses-raises-employee-compensation-ai-budget-2026-6
1•ValentineC•4m ago•0 comments

Bad MCP design cost your Agent 5× more tokens

1•JohnnyZhang483•5m ago•0 comments

Delacroix's Entry of the Crusaders into Constantinople Restored

https://www.louvre.fr/en/explore/life-at-the-museum/delacroix-s-entry-of-the-crusaders-into-const...
1•rawgabbit•9m ago•0 comments

Fedora 43 Upgrade revealed 20 years old Outlook Security Bug

https://fedoramagazine.org/fedora-43-upgrade-revealed-20-years-old-outlook-security-bug/
2•byproxy•12m ago•0 comments

H-1B Crackdown on Indian Workers Erodes a Texas Real Estate Boom

https://www.bloomberg.com/features/2026-dallas-h1b-housing-market/
2•sizzle•12m ago•0 comments

OPRD: On-Policy Representation Distillation

https://arxiv.org/abs/2606.06021
1•berlianta•13m ago•0 comments

What We Believe Happened: A Summary Timeline of Bricks and Minifigs Store

https://bricksandminifigs.com/blog/blog/2026/06/04/bricks-and-minifigs-salem-store-timeline/
2•momentmaker•14m ago•0 comments

Verifying Agentic Development at Scale

https://twitter.com/ido_pesok/status/2060416230641881336
1•gmays•15m ago•0 comments

It's not how much it rose, but how fast

https://www.ooooo.law/board/8?lang=en
1•haebom•17m ago•0 comments

Ask HN: Are people vibe coding internal tools at your companies?

2•yakkomajuri•18m ago•0 comments

Can These Ads Make You Love A.I.?

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
1•1vuio0pswjnm7•22m ago•0 comments

Quantum Odyssey

https://store.steampowered.com/app/2802710/Quantum_Odyssey/
1•rglover•22m ago•0 comments

JPMorgan, Citi and Big Banks Plan New Tokenized Deposit System to Answer Crypto

https://www.wsj.com/finance/banking/jpmorgan-citi-and-big-banks-plan-new-tokenized-deposit-system...
1•petethomas•23m ago•0 comments

OpenAI's Codex chained decade-old DoS attacks to crash web servers

https://www.theregister.com/security/2026/06/04/openais-codex-chains-decade-old-dos-techniques-in...
1•sbulaev•23m ago•0 comments

Bitcoin weathering ugliest week in months as narrative fades, liquidity rotates

https://www.cnbc.com/2026/06/04/bitcoin-is-weathering-its-ugliest-week-in-months-as-narrative-fad...
3•1vuio0pswjnm7•24m ago•2 comments

Zephir: PHP Extension Language

https://zephir-lang.com/en
1•nvahalik•25m ago•0 comments

Show HN: Tatami – a macOS workspace manager with BSP tiling

https://github.com/PangMo5/Tatami
1•pangmo5•28m ago•0 comments

Aisop – Define AI agent workflows as Mermaid or JSON flow graphs

https://github.com/AIXP-Labs/AISOP
1•aisop•30m ago•0 comments

A Vector Lakebase is all you need for all AI workloads

https://zilliz.com/blog/from-vector-database-to-vector-lakebase
1•Fendy•37m ago•0 comments

Reverse Engineering Crazy Taxi part 3

https://wretched.computer//post/crazytaxi3
2•chunkles•40m ago•0 comments

US Tech Sector Announces Most Job Cuts in Nearly Two Years

https://www.bloomberg.com/news/articles/2026-06-04/us-tech-sector-announces-most-job-cuts-in-near...
4•1vuio0pswjnm7•41m ago•1 comments

Benchmarking The BORE Scheduler Performance With CachyOS Linux

https://www.phoronix.com/review/cachyos-bore
1•Bender•42m ago•0 comments

Department of Energy Celebrates First Advanced Reactor Criticality

https://www.energy.gov/articles/department-energy-celebrates-first-advanced-reactor-criticality
1•acidburnNSA•49m ago•0 comments

Smart drug strips cancer cells of 'invisibility cloak' can shrink tumours 30%

https://www.theguardian.com/society/2026/jun/01/cancer-smart-drug-cells-invisibility-cloak-shrink...
7•gmays•52m ago•0 comments

BPF support in GCC 16 and beyond

https://lwn.net/Articles/1071973/
1•signa11•56m ago•1 comments

RAG Without Persona Modeling Fails Patient Clinical Relevance

https://www.riddhimohan.com/blog/hppie-rag-without-persona-modeling-fails-patient-clinical-relevance
1•riddhimohan•59m ago•0 comments

What happens if Japan takes in zero immigrants?

https://www.konichivalue.com/p/what-happens-if-japan-takes-in-zero
2•Konichivalue•1h ago•0 comments

Dirk and Linus discuss AI and kernel development

https://lwn.net/Articles/1073761/
1•signa11•1h ago•0 comments