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.

Loop Engineering

https://addyosmani.com/blog/loop-engineering/
1•ulrischa•51s ago•0 comments

Due to DMA, Siri AI delayed in EU for iOS 27 and iPadOS 27

https://www.apple.com/newsroom/2026/06/due-to-dma-siri-ai-delayed-in-eu-for-ios-27-and-ipados-27/
2•surprisetalk•1m ago•0 comments

Siri AI

https://www.apple.com/apple-intelligence/
2•0xedb•1m ago•0 comments

Apple previews new child safety features

https://www.apple.com/newsroom/2026/06/apple-previews-new-child-safety-features/
2•surprisetalk•2m ago•0 comments

Apple introduces Siri AI, a profoundly more capable and personal assistant

https://www.apple.com/newsroom/2026/06/apple-introduces-siri-ai-a-profoundly-more-capable-and-per...
2•surprisetalk•2m ago•0 comments

Learn X in Y Minutes

https://learnxinyminutes.com/
1•sanbor•3m ago•0 comments

Trying Out Vivaldi on Linux

https://taonaw.com/2026/06/07/trying-out-vivaldi-on-linux.html
1•speckx•3m ago•0 comments

Apple OS 26 Overview

https://www.apple.com/os/
4•surprisetalk•4m ago•0 comments

Ask HN: How do PaaS hosting providers enforce user policy compliance?

1•iishanto•4m ago•0 comments

The Economics of Speculative Decoding

https://fergusfinn.com/blog/economics-of-speculative-decoding/
1•kkm•4m ago•0 comments

They Spent Years on a Math Problem. Then They Were Scooped by A.I

https://www.nytimes.com/2026/06/08/science/ai-scoop-young-mathematicians.html
1•donohoe•4m ago•0 comments

Why I Left Quantum Computing Research

https://www.youtube.com/watch?v=pDj1QhPOVBo
1•tcp_handshaker•6m ago•1 comments

Show HN: Metatron – give coding agents your team's conventions over MCP

https://github.com/kerbelp/metatron
1•kerbelp•6m ago•0 comments

Half of Americans say they're worse off financially than a year ago

https://www.cbsnews.com/news/americans-worse-off-financially-year-ago-fed-survey/
3•tcp_handshaker•6m ago•0 comments

Humanity is the bootloader, not Homo Deus

https://moai.studio/blog/posts/stop-reading-homo-deus.html
1•ionwake•9m ago•0 comments

Study: Childhood egg allergies fall as early introduction becomes more common

https://www.cnn.com/2026/06/08/health/egg-allergies-early-introduction-wellness
1•BostonFern•9m ago•0 comments

The Decline of Token-Level Purchasing Power

https://bigspin.ai/resources/the-decline-of-token-level-purchasing-power
1•jxmorris12•10m ago•0 comments

Pushing Dial-Up Modems Further Than We Ever Thought Possible [video]

https://www.youtube.com/watch?v=LZ259Jx8MQY
1•austinallegro•11m ago•0 comments

Human Operator – Winner of MIT Hard Mode 2026

https://github.com/danielkaijzer/Human-Operator
1•aanet•13m ago•1 comments

The IRS Moved IT and HR Staff to Process Taxes. It's Not Going Well

https://www.notus.org/policy/irs-tax-processing-detail-hr-it-test
3•everybodyknows•17m ago•0 comments

Tech Influence Watch

https://influence.citationneeded.news/
1•Tomte•17m ago•0 comments

Turn a $3M AI bill into $1.9M

https://willhackett.com/opus-tax/
1•speckx•18m ago•0 comments

We Saw What AI Data Centers Don't Want You to See [video]

https://www.youtube.com/watch?v=5p426fSlYH4
1•askl•20m ago•0 comments

Judge blocks Trump's $100k H-1B visa fee

https://www.cnbc.com/2026/06/08/trump-h1b-visa-fee-blocks.html
8•goshx•23m ago•0 comments

Nex N2 Pro: Frontier agentic performance at 400B

https://huggingface.co/nex-agi/Nex-N2-Pro
3•himata4113•24m ago•0 comments

When is detecting AI-generated text worthwhile?

https://statmodeling.stat.columbia.edu/2026/06/06/when-is-detecting-ai-generated-text-worthwhile/
1•caminanteblanco•24m ago•0 comments

Egg Allergy Prevalence Before and After Guidelines for Earlier Egg Introduction

https://jamanetwork.com/journals/jamapediatrics/article-abstract/2849462
2•michaefe•24m ago•0 comments

A CS new grad applied to 200 internships, landed only one unpaid role

https://twitter.com/Hesamation/status/2054695714148556822
2•USTECH_WORKER•25m ago•0 comments

The weather and climate science AI revolution isn't revolutionary

https://arstechnica.com/science/2026/06/the-weather-and-climate-science-ai-revolution-isnt-revolu...
1•counters•25m ago•0 comments

Steven Spielberg Does 2001: A Space Odyssey on the Rewatchables

https://blog.mattglassman.net/steven-speilberg-on-the-rewatchables/
1•speckx•26m ago•0 comments