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.

Cataloging Growth: A Re-Evaluation of 1900–1990 [pdf]

https://veronicabp.github.io/website/VBP_BHW_CostOfLiving.pdf
1•alphabetatango•50s ago•0 comments

Ultraclose 2029 flyby of asteroid Apophis

https://www.livescience.com/space/asteroids/shared-cosmic-experience-potentially-hazardous-astero...
1•jinjin2•7m ago•0 comments

Show HN: Spiral – continuous-thrust orbit-transfer design in the browser

https://spiral.erikevenson.net
1•eevenson•10m ago•0 comments

Websites Detect Ban Evasion-why creating new accounts isn't enough to escape

https://medium.com/@thesuperrepemail/how-websites-detect-ban-evasion-and-why-creating-a-new-accou...
1•mssblogs•11m ago•0 comments

Beginning July 20, Claude Fable 5 will be included in all Max plans

https://twitter.com/claudeai/status/2078302415804379218
4•mfiguiere•12m ago•0 comments

Amp Subscriptions, at Last

https://ampcode.com/news/subscriptions
1•shmuppet•13m ago•0 comments

In the birthplace of the car, EVs are now king: BEVs outsell gas cars in Germany

https://electrek.co/2026/07/17/in-the-birthplace-of-the-automobile-electric-cars-are-now-king/
1•breve•15m ago•0 comments

Grok Imagine regenerated Xkcd comics

https://www.xkcd-ai.com/
2•levelforge•18m ago•1 comments

Nvidia CEO Jensen Huang's jacket has sold at Sotheby's for $960k

https://twitter.com/darrenrovell/status/2078207366625964058
2•donsupreme•18m ago•0 comments

Xkcd comics re-imagined with Grok IMAGINE

https://www.xkcd-ai.com/21507
1•levelforge•20m ago•1 comments

A CPython 3.14 Bytecode Interpreter Running Inside GPU Compute Kernels

https://zenodo.org/records/21421984
2•thelibrebob•26m ago•0 comments

The biologist dedicated to tackling human-wildlife conflict

https://www.theguardian.com/environment/2026/apr/30/lion-wild-animals-livestock-moreangels-mbizah...
1•thunderbong•27m ago•0 comments

Animal Crossing Decompilation has hit 100% matching

https://github.com/ACreTeam/ac-decomp
2•granimated•28m ago•1 comments

Why Teens Deserve Access to Safe AI

https://openai.com/index/why-teens-deserve-access-safe-ai
1•willmarch•36m ago•0 comments

Recreating the Bell Labs Cafeteria

https://danielmiessler.com/blog/recreating-the-bell-labs-cafeteria
2•walterbell•40m ago•0 comments

PerceptionBench – Evaluating Atomic Visual Perception in Multimodal LLMs

https://www.kimi.com/blog/perception-bench
2•wolttam•55m ago•0 comments

We Are Changing Our Developer Productivity Experiment Design

https://metr.org/blog/2026-02-24-uplift-update/#other-means-of-measuring-productivity
4•Helithumper•57m ago•0 comments

Anthropic in early talks with Meta to acquire compute power

https://www.cnbc.com/2026/07/17/anthropic-meta-ai-compute.html
5•gslin•1h ago•2 comments

AI hasn't shifted the bottleneck from coding to code review

https://thenewstack.io/ai-code-bottleneck-myth/
3•Brajeshwar•1h ago•1 comments

LoRa radio communication devices for Raspberry Pi

https://www.raspberrypi.com/news/lora-radio-communication-devices-for-raspberry-pi/
8•Brajeshwar•1h ago•0 comments

Moonstone: Modern, cross-platform Lua runtime and package manager written in Zig

https://moonstone.sh/
6•ksymph•1h ago•1 comments

Face Value: How AI is reshaping trust, identity, and scams

https://www.malwarebytes.com/ai-scams
2•CHB0403085482•1h ago•0 comments

LLMs are like handwritten notes

https://dunkirk.sh/blog/llms/
2•clacker-o-matic•1h ago•0 comments

I Started a "Dirt Notebook"

https://pinewind.bearblog.dev/i-started-a-dirt-notebook/
14•herbertl•1h ago•7 comments

Towach: Tell it your mood, swipe through trailers, pick something to watch

https://www.towach.com
2•barkins•1h ago•0 comments

Newly retired couples may lose $16,900/year in Social Security in 2033

https://www.usatoday.com/story/money/personalfinance/2026/07/16/social-security-cut-2033/90941392...
14•ilreb•1h ago•7 comments

Alien world chemistry found inside meteorite that struck New Jersey home

https://phys.org/news/2026-07-alien-world-chemistry-meteorite-struck.html
4•bookmtn•1h ago•0 comments

The How and Why of Entity Shorthand

https://www.bramadams.dev/the-how-and-why-of-entity-shorthand/
2•_bramses•1h ago•0 comments

Overtraining as the path to human-like AI

https://www.seangoedecke.com/overtraining-as-the-path-to-human-like-ai/
2•turadg•1h ago•0 comments

Show HN: Blockbeam – A block puzzle game built with React Native

https://play.google.com/store/apps/details?id=com.magstudios.blockpuzzle&hl=en_US
1•makbar890•1h ago•0 comments