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.

WebSocket Servers in JavaScript: Node.js, Bun and Deno in 2026

https://lemire.me/blog/2026/10/10/websocket-servers-in-javascript-node-js-bun-and-deno-in-2026/
1•smilelamp•5m ago•0 comments

Show HN: Save photo, video, and audio from websites in one step

https://menura.download
2•haneboxx•10m ago•0 comments

Ctrl + Shift + A to search tabs on Firefox

https://gist.github.com/radiantly/f18ea1fd06d8dd328b6ae64b6fa7cb36
3•calmingsolitude•18m ago•0 comments

Division by zero in common meadows (nicer fields)

https://arxiv.org/abs/1406.6878
2•fanf2•22m ago•0 comments

GATE – A Godot Engine GDScript Superset

https://github.com/Blade67/GATE
2•liminal-dev•22m ago•0 comments

Senate Investigation Challenges Big Tech's Case for AI Data Centers

https://time.com/article/2026/10/08/senate-investigation-ai-data-centers/
2•snikolaev•29m ago•0 comments

OpenAI's New ChatGPT Watermark Breaks If You Edit One Word in Four

https://rews.cc/a/openai-s-new-chatgpt-watermark-breaks-if-you-edit-one-word-i-37eb4a
2•ojosilva•31m ago•0 comments

I earned $100 from premium subscription of this extension in 30 days

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
2•digitaShida•39m ago•1 comments

Show HN: Open Components – UI Components standard for people, devs and AI agents

https://opencomponents.dev/
1•alexgrozav•40m ago•0 comments

Show HN: Chrome Relay – background tabs in your real Chrome for coding agents

https://github.com/aindeev/agent-chrome-relay
1•alexeyindeev•49m ago•0 comments

Helium Terminal – A tiny macOS terminal for coding agents, built on libghostty

https://helium-terminal.bensarmiento.com/
6•yowmamasita•50m ago•0 comments

Anthropic can't reliably control its AI agents, cuts internet access

https://techcrunch.com/2026/10/09/anthropic-cant-reliably-control-its-ai-agents-its-cutting-off-i...
3•sbulaev•56m ago•1 comments

The hazy OpenAI growth metric driving Wall Street

https://www.ft.com/content/62653892-2333-4953-a8d5-cfd760ae3257
3•sbulaev•57m ago•0 comments

Show HN: Printable Calendar

https://printcalendarx.com/
2•artiomartiom•1h ago•0 comments

PhotoCraft Online – A browser editor with English guides

https://photocraftonline.org/
1•visiohex•1h ago•0 comments

Study on AI coding agents finds gains "absorbed" by human review "bottleneck."

https://arstechnica.com/ai/2026/10/ai-coding-agents-generate-more-code-but-not-more-software/
4•evolve2k•1h ago•1 comments

A Rant About Two Things: AI and the People Who Rant About AI

https://www.patreon.com/FluffyQuack/posts/rant-about-two-168230683
1•turpentine•1h ago•0 comments

The Power of Constraint Solvers

https://btmc.substack.com/p/the-awesome-power-of-constraint-solvers
1•sirwhinesalot•1h ago•0 comments

Phone 18 Pro in Everyday Life: Upgrades That Matter – and the Ones You Can Skip

https://thetechboom.com/2026/10/10/iphone-18-pro-everyday-life-real-benefits-australia/
2•ninyeh•1h ago•0 comments

Careless People: An entertaining book with few surprises

https://piotrmzakrzewski.substack.com/p/careless-people-an-entertaining-book
1•gieksosz•1h ago•0 comments

Mac.apk – Run Android Apps Natively on Apple Silicon Macs

https://github.com/kksimp/Mac.apk-Releases
4•phantomathkg•1h ago•0 comments

Tesla Renames FSD to 'Assisted Driving' in Europe

https://www.reuters.com/business/autos-transportation/tesla-renames-full-self-driving-assisted-dr...
2•JumpCrisscross•1h ago•0 comments

Zeroization, part 1: Wiping can make things worse

https://00f.net/2026/10/06/zeroization-1/
3•birdculture•1h ago•0 comments

I expect rapid progress but not towards general superintelligence

https://www.interconnects.ai/p/i-expect-rapid-progress-but-not-towards
3•pretext•1h ago•1 comments

I Made Diablo First Person [video]

https://www.youtube.com/watch?v=xkpLG9keQF0
3•skibz•1h ago•0 comments

The Download: AI's refusal problem and weight-loss drug side effects

https://www.technologyreview.com/2026/10/09/1146250/the-download-ai-refusal-problem-weight-loss-d...
1•joozio•1h ago•0 comments

Could Nigerian eateries become as widespread as Chinese restaurants?

https://www.cnn.com/world/africa/could-nigerian-restaurants-become-as-common-as-chinese-restauran...
4•koolhead17•1h ago•0 comments

Alan Turing – Intelligent Machinery, a Heretical Theory (1951)

https://turingarchive.kings.cam.ac.uk/publications-lectures-and-talks-amtb/amt-b-4
2•yshklarov•1h ago•0 comments

Unauthorized access, personal data leaks surge in Japan

https://www3.nhk.or.jp/nhkworld/news/20261007de55671/
2•phantomathkg•1h ago•0 comments

Cyril Hilsum invented the flat-screen displays that hold us in thrall

https://www.economist.com/obituary/2026/10/08/cyril-hilsum-invented-the-flat-screen-displays-that...
4•sohkamyung•1h ago•0 comments