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.

I made a game that unlocks real PubMed literature discovery

https://bringYourOwnBrain.org
1•pathmap•1m ago•0 comments

Astroengrams: Rethinking the Cellular Substrate for Memory

https://www.nature.com/articles/s41583-025-01012-2
1•randomImmigrant•2m ago•1 comments

Technical/eng breakdown of Framer's Lighthouse 13.6 optimizations

https://www.framer.com/blog/lighthouse-13-6/
1•hitdelete•3m ago•0 comments

The XML-First vs. JSON-First Dilemma

https://www.xml.com/articles/2025/11/21/xml-first-vs-json-first-publishing/
1•protomolecool•4m ago•0 comments

Cessna Paints GTA6 Promo on FlightRadars

https://www.flightradar24.com/data/aircraft/n1810r
1•subbz•9m ago•0 comments

EIC receives just nine applications for €100M defence scale-up call

https://eic.ec.europa.eu/news/overview-eic-step-scale-defence-call-submissions-2026-10-29_en
1•bartek_boniecki•10m ago•0 comments

Kerckhoffs's Principle

https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle
2•num42•11m ago•0 comments

How can obedient agents behave badly?

https://www.turing.ac.uk/blog/how-can-obedient-agents-behave-badly
1•ankitg12•11m ago•0 comments

Silver Lake, PIF have held recent talks to buy gaming software provider Unity

https://www.theverge.com/games/1028484/unity-has-reportedly-had-acquisition-talks-with-silver-lak...
1•rarisma•11m ago•0 comments

Dutch 'idealist' bank ASN blocks non-Google Android, including GrapheneOS

https://github.com/PrivSec-dev/banking-apps-compat-report/issues/105
1•microtonal•12m ago•0 comments

Two models are cheaper than one

https://samihonkonen.com/posts/two-models-are-cheaper-than-one/
2•ankitg12•14m ago•0 comments

Tarantulas smuggled in socks Peru by polish and German

https://www.theguardian.com/world/2026/nov/06/3000-tarantulas-smuggled-inside-dirty-socks-peru
1•mo7061•15m ago•0 comments

Free Advanced ETL Processor Licences for IT Professionals

https://www.etl-tools.com/free-etl-software-for-it-professionals.html
1•etl-tools•15m ago•0 comments

The Elephant-Goldfish Model: scaling design-driven AI development

https://opensource.googleblog.com/2026/10/introducing-elephant-goldfish-model-plugin.html
1•Mxbonn•16m ago•0 comments

Show HN: Hackercasts – Podcasts Mentioned on HN

https://hackercast.org/
1•rjcrystal•18m ago•0 comments

Windows Insiders: New Windows Search Experience

https://blogs.windows.com/windows-insider/2026/10/07/from-searching-to-doing-building-a-faster-mo...
1•chemodax•22m ago•0 comments

Auto HD for YouTube

https://chromewebstore.google.com/detail/auto-hd-for-youtube-–-4k/mnjkjpceiedpapflgoodflbimjmgkigk
2•CodeWanderer•23m ago•0 comments

Analysis: China's quarterly CO2 falls 3% in largest drop since Covid

https://www.carbonbrief.org/analysis-chinas-quarterly-co2-falls-3-in-largest-drop-since-covid
3•xbmcuser•23m ago•0 comments

Sua produçãO criativa está travada em tarefas repetitivas?

https://artesoftransmutations.lojavirtualnuvem.com.br/produtos/galeria-vip-kit-pratico-de-prompts...
1•Artes-Of-Transm•25m ago•0 comments

AI for scientific discovery: How researchers use Claude

https://www.anthropic.com/research/how-researchers-use-claude
2•ersinesen•26m ago•0 comments

The FAA Is Finally Phasing Out Floppy Disks from Air Traffic Control

https://www.engadget.com/2308330/the-faa-is-finally-phasing-out-floppy-disks-from-air-traffic-con...
1•jnord•27m ago•0 comments

Why IFR (7k humanoids sold) and IDC (25,000 shipped) are both right

https://bryancharles.org/2026/10/14/the-ifr-counted-7000-humanoid-robots-sold-in-2025-idc-just-co...
1•SpareKey•27m ago•0 comments

For host Same model, 169x smaller prompt: cost per correct step fell 4.5x

https://zenodo.org/records/23958737
2•shalendragaur•28m ago•0 comments

Computer game Worms went from classroom to classic

https://www.bbc.co.uk/news/articles/cmp8gd6l03g3o
2•JonoW•28m ago•0 comments

The Web Is More Than Enough

https://ftrain.com/aboard-the-web-is-more-than-enough
2•BerislavLopac•28m ago•0 comments

100x More Programmers

https://tailscale.com/blog/100x-more-programmers
2•crowdhailer•30m ago•1 comments

Democratic sweep could slow AI growth in US – and help China's ambitions

https://www.scmp.com/tech/big-tech/article/3373295/how-democratic-sweep-could-slow-ai-growth-us-a...
2•giuliomagnifico•31m ago•0 comments

The Reconstruction of Torn Documents

https://www.bundesarchiv.de/en/stasi-records-archive/the-reconstruction-of-torn-documents/
1•jacquesm•34m ago•0 comments

Datasets with Surprising Side Effects

https://twitter.com/TransluceAI/status/2118387567838347681
1•pretext•34m ago•0 comments

A complete set of canonical nucleobases in the carbonaceous asteroid Ryugu [pdf]

https://www.nature.com/articles/s41550-026-02791-z
2•thunderbong•38m ago•0 comments