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.

White House Will Ad Hoc Decide Who Can Individually Access GPT-5.6

https://thezvi.substack.com/p/white-house-will-ad-hoc-decide-who
1•paulpauper•7m ago•0 comments

Movie reconstruction from mouse video cortex activity

https://www.youtube.com/watch?v=K3Hvy4CKVpg
1•bookofjoe•8m ago•0 comments

Security Baked into the JVM: Why Fork Apache River and OpenJDK?

https://blog.frankel.ch/security-baked-into-jvm/1/
1•theanonymousone•8m ago•0 comments

Central Vacuums: Spiritual, Social, Economic, and Hygienic Consequences

https://vac.bpe.xyz
2•shoes_for_thee•10m ago•1 comments

Limbic Capitalism Has Been Driving Addiction for Hundreds of Years

https://www.afterbabel.com/p/limbic-capitalism-addiction-david-courtwright
1•paulpauper•10m ago•0 comments

Roundup #83: I told you so

https://www.noahpinion.blog/p/roundup-83-i-told-you-so
1•paulpauper•11m ago•0 comments

Show HN: Bcad – An OpenSCAD-syntax CAD powered by OpenCASCADE

https://asm32.info/johnfound/bcad-openscad-syntax-with-exact-geometry
1•johnfound•11m ago•1 comments

AI is creating America's next underclass

https://thehill.com/opinion/technology/5942757-ai-demands-new-social-norms/
3•pseudolus•11m ago•1 comments

Run Obsidian as a self-hosted web app

https://mudkip.me/2026/06/29/Run-Obsidian-as-a-self-hosted-web-app/
1•mudkipme•13m ago•0 comments

Direct Job Alerts – open-source tool to get new jobs directly from employers

https://github.com/orasik/direct-job-alerts
1•Oras•14m ago•0 comments

Show HN: Paige – A spoiler-free AI book chat

https://github.com/derekmpeterson/paige
1•dualarte•15m ago•0 comments

China's Loongson launches 16-core server CPU built on LoongArch architecture

https://www.tomshardware.com/pc-components/cpus/chinas-loongson-launches-homegrown-16-core-server...
3•unleaded•16m ago•0 comments

Towards a history of the hammock: An Indigenous technology in the Atlantic world

https://link.springer.com/article/10.1057/s41280-025-00379-w
1•bookofjoe•17m ago•0 comments

Agent Identity: Why Every Agent Vulnerability Is a Trust Boundary Failure

https://portkey.ai/blog/why-every-agent-vulnerability-is-a-trust-boundary-failure/
1•segalord•17m ago•0 comments

Costs of Running a 15k/mo AI SaaS [video]

https://www.youtube.com/watch?v=tK2K26CeThY
1•mesmertech•20m ago•1 comments

Nvidia Partner Wants to Put a $150k AI Data Center in Your Yard

https://www.bgr.com/2186797/nvidia-home-mini-ai-data-center-span/
1•Adam-Hincu•20m ago•1 comments

Magit - a complete text-based user interface to Git

https://github.com/magit/magit
2•modinfo•20m ago•0 comments

Show HN: Shikhu – Understand the code your agents write

https://github.com/arjunpatel7/shikhu
1•arjunkpatel•21m ago•0 comments

Evaluating Offline Monitoring of Internal AI Agents

https://www.lesswrong.com/posts/yrbyyvFvuaGfRAtB7/evaluating-offline-monitoring-of-internal-ai-ag...
1•joozio•22m ago•0 comments

How to Connect Hermes Agent to MCP

https://www.arcade.dev/blog/connect-hermes-agent-mcp-arcade/
1•manveerc•23m ago•0 comments

Cramming 1M (Scaled to Zero) Virtual Machines in a Single Box

https://unikraft.com/blog/1m-vms-single-box/
1•tanelpoder•25m ago•0 comments

The Most Detailed Image yet of the Milky Way's Center

https://www.wired.com/story/this-is-the-most-detailed-image-yet-of-the-milky-ways-center/
1•joozio•26m ago•0 comments

The Ethical People-Smuggler

https://www.economist.com/interactive/1843/2026/06/26/the-good-people-smuggler
1•Geekette•30m ago•1 comments

Working around dragons with the Lemote Yeeloong laptop and OpenBSD

http://oldvcr.blogspot.com/2026/06/working-around-dragons-with-lemote.html
18•zdw•30m ago•1 comments

Show HN: DRM-Free Books

https://frequal.com/Perspectives/DrmFreeAuthors.html
3•TeaVMFan•30m ago•0 comments

Tech firms blame AI for rising PC and console prices

https://www.bbc.co.uk/news/articles/cd95k584pzqo
2•logickkk1•33m ago•0 comments

Show HN: A directory of open source alternatives to proprietary software

https://houseofopen.com/
1•TheOmkarBirje•34m ago•0 comments

More than 3M college students are raising kids. Most won't graduate

https://fortune.com/2026/06/28/student-parents-workforce-talent-shortage-child-care-okebugwu/
1•Brajeshwar•35m ago•0 comments

Your Shit Is Unreadable

https://unstory.eu/lcn/
4•jonifico•36m ago•0 comments

AI Economy from the Bottom Up

https://www.exponentialview.co/p/the-state-of-the-ai-economy
1•joddystreet•40m ago•0 comments