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.

Beeper – All your chats in one app

https://www.beeper.com/
1•thunderbong•8s ago•0 comments

Contrail Compute AIX the First RISC-V AI Execution Platform

https://www.epicsemi.com/products/contrail/contrail-compute/
1•EvgeniyZh•53s ago•0 comments

Factoring "short-sleeve" zero-heavy RSA keys with polynomials

https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/
1•fanf2•5m ago•0 comments

What if we legally required politicians to work regular jobs 2 months a year?

1•ekoeko•15m ago•0 comments

Validates AI

https://validates.ai/
2•bellannns•15m ago•0 comments

I got shadow banned on X, 3 mistakes that led me to it

https://www.indiehackers.com/post/i-got-shadow-banned-on-x-3-mistakes-that-led-me-to-it-MIYYUCRyR...
1•kartik0001•17m ago•0 comments

A major KPMG report on AI was found to be chock-full of AI hallucinations

https://www.techradar.com/pro/a-major-kpmg-report-on-ai-was-found-to-be-chock-full-of-ai-hallucin...
2•thm•18m ago•0 comments

US Government directive to suspend access to Claude Fable 5 and Mythos 5

https://twitter.com/AnthropicAI/status/2065597531644743999
1•corentin88•19m ago•0 comments

WhatCable 1.0 – USB-C cable inspector for macOS, now with a TUI

https://www.whatcable.uk/
1•sleepingNomad•19m ago•0 comments

I used sound waves to make espresso. It could cut coffee‑brewing energy use by ¾

https://theconversation.com/i-used-sound-waves-to-make-espresso-it-could-cut-coffee-brewing-energ...
1•zeristor•25m ago•0 comments

Patterns of Software [pdf]

https://www.dreamsongs.com/Files/PatternsOfSoftware.pdf
2•tosh•28m ago•0 comments

The Simple Plan and Phase 3 of the real human network

https://world.org/blog/foundational-topics/thesimpleplan
1•helloplanets•30m ago•0 comments

Whissle Gateway – Run Multi-Modal Voice AI Locally in a 500MB Docker

https://whissle.ai/gateway
1•ksingla025•31m ago•0 comments

Ukraine MoD and Palantir build drone detection using war data

https://defensemirror.com/news/41613/Ukrainian_MoD__Palantir_Tech_Developing_Drone_Detection_Mode...
1•01-_-•32m ago•0 comments

Ask HN: What's the biggest problem you ever prevented?

2•bschne•33m ago•0 comments

Controversial FISA spying law expires tonight. The spying will continue

https://arstechnica.com/tech-policy/2026/06/controversial-fisa-spying-law-expires-tonight-the-spy...
1•01-_-•36m ago•0 comments

Lojban

https://en.wikipedia.org/wiki/Lojban
2•tosh•38m ago•0 comments

The quantum computing revolution is closer than you think

https://www.ft.com/content/7e461be0-5c13-4a93-a0f8-0659ae5505a2
1•thm•42m ago•0 comments

focus - A simple and fast text editor

https://github.com/focus-editor/focus
1•modinfo•42m ago•0 comments

WASM_of_OCaml on WASI: A Working Prototype Looking for a Production User

https://ocaml.org/backstage/2026-06-09-wasm-of-ocaml-on-wasi-a-working-prototype-looking-for-a-pr...
1•TheWiggles•44m ago•0 comments

Ask HN: Automoderated by AI Alternative to Reddit

1•julienreszka•45m ago•0 comments

Teach Your Kids to Pirate. Now [video]

https://www.youtube.com/watch?v=CBFlWUnjkRc
1•Cider9986•50m ago•0 comments

Show HN: theta_py, bindings to the Theta CLI

https://github.com/tamarillo-ai/theta_py
1•ivanbelenky•51m ago•0 comments

The Department of War just released the third tranche of records

https://www.war.gov/UFO/release/03/
2•aggrrrh•53m ago•0 comments

Old games feel "hard" because modern emulators have layers of abstraction

https://twitter.com/lauriewired/status/2065553747078709500
1•tosh•57m ago•0 comments

For NBA fans: If you loved 82-0 you'll love this

https://nbabrawl.netlify.app
1•Mwalwala•1h ago•0 comments

Israeli firm BlackCore suspected of meddling in New York and Scotland votes

https://www.reuters.com/world/israeli-firm-blackcore-also-suspected-meddling-nyc-scotland-votes-f...
58•pera•1h ago•12 comments

Anthropic disables top-tier AI models outside US

https://www.reuters.com/technology/us-blocks-foreign-access-anthropics-most-advanced-ai-models-ax...
5•apples_oranges•1h ago•0 comments

Ask HN: What Are You Working On?

4•eisleggje•1h ago•1 comments

Drinkner – Matches your bar to the 102 IBA cocktails, AI only on miss

https://www.drinkner.com/
2•alexsa•1h ago•0 comments