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.

Supreme Court expands Trump's power over the federal bureaucracy

https://www.washingtonpost.com/politics/2026/06/29/supreme-court-expands-trumps-power-over-federa...
1•throw0101a•4m ago•1 comments

Comparison Between ATProto and Tim Berners-Lee's Solid Protocol

https://forum.solidproject.org/t/comparing-solid-to-atproto-pds/9461
1•xeonmc•4m ago•0 comments

Small Penetrator Instrument Concept for the Advancement of Lunar Surface Science

https://iopscience.iop.org/article/10.3847/PSJ/abda4f
1•rbanffy•5m ago•0 comments

Learn X in Y Minutes

https://learnxinyminutes.com/
1•skogstokig•7m ago•0 comments

Show HN: Turn documents into lip-synced video readers

https://shashekhar.github.io/screencastgen/demo-reader/
1•ShaShekhar•8m ago•0 comments

LinkedIn without lunatics is deeply weird

https://designcapitalpower.substack.com/p/linkedin-without-lunatics-is-deeply
3•domstatecraft•10m ago•0 comments

About the security content of iOS 26.5.2 and iPadOS 26.5.2

https://support.apple.com/en-us/127594
1•akyuu•11m ago•0 comments

Open-sourcing Revolut's talent system: How we built Europe's top tech company

https://twitter.com/Revolut/status/2071623149955805247
2•rzk•13m ago•0 comments

Title: Show HN: 10 Killer Game Apps – O(1) hash-table lookup for game logic

https://big.lain.technology/gameapps/
1•glyph_os•15m ago•1 comments

California Leaders Agree to $351B Budget, Software Tax

https://www.bloomberg.com/news/articles/2026-06-27/california-leaders-agree-to-351-billion-budget...
3•rndsignals•17m ago•0 comments

The (real) dead economy theory

https://pluralistic.net/2026/06/17/its-the-stupid-economy-stupid/#trillionairitis
1•momentmaker•18m ago•0 comments

Show HN: Entity Event Matrix on any topic

https://reloadium.com/reloadium-investigations/
1•julienreszka•19m ago•0 comments

Show Up in Person 8:30 Am Tuesday in Sacramento to Save 3D Printing [video]

https://www.youtube.com/watch?v=vSU6QZO_rHM
1•jshprentz•20m ago•0 comments

Evals: The strategic IP that will define the next era of AI

https://twitter.com/GarrettLord/status/2068754262440767500
1•gmays•20m ago•1 comments

Segmenting Robot Video into Actionable Subtasks

https://macrodata.co/blog/annotating-robot-video-subtasks
1•tomaspduarte•24m ago•0 comments

A.I. 'Employees' Might Disrupt Work in Unexpected Ways

https://www.nytimes.com/2026/06/29/business/artificial-intelligence-workplace-consequences.html
2•speckx•26m ago•0 comments

Announcing .self: A New Top-Level Domain Designed to Support Self-Hosting

https://hccf.onmy.cloud/2026/06/21/reclaiming-our-digital-selves-hccfs-vision-for-a-human-centere...
4•HumanCCF•28m ago•2 comments

How the first solo-founder unicorn gets built

https://www.thisandthat.chat/blog/how-the-first-solo-founder-unicorn-gets-built/
1•jreynar•29m ago•1 comments

The Richest Country Is Pretty Mid Now [video]

https://www.youtube.com/watch?v=4FZy1lBNykA
5•onemoresoop•30m ago•0 comments

Video compression takes advantage of your eyes

http://stefano.petrilli.xyz/how-video-compression-takes-advantage-of-your-eyes/
2•stefanopetrilli•33m ago•0 comments

Zero Mostel's Testimony Before the Committee on Un-American Activities

https://www.nypl.org/events/exhibitions/galleries/literature-and-film/item/17519
1•kayo_20211030•34m ago•1 comments

Asymmetric Quantization: Near-Lossless Retrieval with 97% Storage Reduction

https://www.mixedbread.com/blog/asymmetric-quant
1•breadislove•35m ago•0 comments

Microsoft worker emails colleagues about company's support for genocidal Israel

https://www.thecanary.co/global/world-analysis/2026/06/26/microsoft-worker-emails/
5•DeusExMachina•35m ago•0 comments

AI has lots of people digging out their iPods

https://news.harvard.edu/gazette/story/2026/06/ai-has-lots-of-people-digging-out-their-ipods/
2•gnabgib•38m ago•0 comments

The Billionaires' Vagina Club

https://www.newyorker.com/magazine/2026/07/06/the-billionaires-vagina-club
4•mitchbob•40m ago•1 comments

GitHub Issues as Untrusted Input

https://www.olafalders.com/2026/06/25/on-github-issues-as-untrusted-input/
2•oalders•42m ago•0 comments

Why narcissistic leaders resist remote work

https://www.sciencedirect.com/science/article/pii/S0749597826000300?fr=RR-2&ref=pdf_download&rr=a...
16•dcre•42m ago•6 comments

Foldkit: Effect Front End Framework

https://github.com/foldkit/foldkit
2•handfuloflight•43m ago•0 comments

One last trip to the Internet with The Rough Guide 14

https://www.planetjones.net/blog/19-04-2026/one-last-trip-to-the-internet-in-2009-with-the-rough-...
1•planetjones•44m ago•0 comments

How Did the English Arrive in Britain?

https://www.historytoday.com/archive/head-head/how-did-english-arrive-britain
2•samizdis•45m ago•0 comments