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.

We're Hiring at Modular

1•pcardona•3m ago•0 comments

Show HN: Create a realistic couple photo from two separate portraits

https://ai-couplephoto.com
1•hackerchy•9m ago•0 comments

Cloudfleet – A Freemium Kubernetes Control Plane

https://cloudfleet.ai
2•nikolay•10m ago•0 comments

Liquid: Back to the Future

https://twitter.com/benjaminsehl/status/2079633466581258469
2•doppp•12m ago•0 comments

Best way to practice LeetCode questions

https://github.com/Qurse123/Ankicode
2•Qurse22•13m ago•0 comments

Kimi K3 first open model in ErrataBench Top 10

https://revise.io/blog/07-22-2026/kimi-k3-broke-90-on-erratabench
1•artursapek•14m ago•0 comments

6,600 Non-Citizens Mistakenly Added to NJ Voter Rolls

https://www.cnn.com/2026/07/21/politics/new-jersey-voter-rolls-non-citizen
2•giardini•14m ago•0 comments

Trump says generic drugs to face US tariffs 100% and 200% two year later

https://www.reuters.com/business/healthcare-pharmaceuticals/trump-says-generic-drugs-face-no-us-t...
1•rguiscard•15m ago•0 comments

The Hunt for the Counterfeiter Trying to Make the Perfect Bill

https://www.nytimes.com/2026/07/16/magazine/counterfeit-dollars.html
1•js2•16m ago•1 comments

Show HN: Empix – A super-simple graphic editor for Arduino

https://github.com/niklauslee/empix
1•niklauslee•16m ago•0 comments

Explore Automated License Plate Readers - Locations Near You

https://maps.deflock.org/
2•pseudolus•19m ago•0 comments

TokenSwitch

https://www.tokenswitch.co/
2•handfuloflight•22m ago•0 comments

Error Led to 400 Noncitizens Voting, New Jersey Governor Says

https://www.nytimes.com/2026/07/21/nyregion/noncitizen-voting-new-jersey-error.html
2•pudgywalsh•24m ago•1 comments

Keynesian Beauty Contest

https://en.wikipedia.org/wiki/Keynesian_beauty_contest
1•salamo•24m ago•0 comments

The Hair-Dryer Incident Is Just the Start

https://www.theatlantic.com/technology/2026/07/prediction-market-outsider-trading/687975/
3•nabbed•26m ago•1 comments

Plat: An embeddable infinite canvas for humans and agents

https://github.com/zackham/plat
2•zackham•28m ago•0 comments

How to Run a Multi-Agent Coding Workspace (2026)

https://www.augmentcode.com/guides/how-to-run-a-multi-agent-coding-workspace
2•mahirsaid•29m ago•0 comments

Snowflake's string min/max is truncated to ~40 chars, and it's undocumented

https://gist.github.com/wubx/c7a7d754ec5ec7d84b3aa7945bafec3f
2•river_wu•29m ago•0 comments

China's EV Revolution [video] – Foreign Correspondent

https://www.abc.net.au/news/2026-07-21/china-s-ev-revolution/106940630
2•langfo•30m ago•1 comments

If HF was breached, should we expect OpenAI to face criminal charges?

5•arm32•30m ago•0 comments

Ten Steps Towards Happiness

http://hintjens.com/blog:99
4•emerongi•31m ago•1 comments

Transformation Theater

https://tusshah.codeberg.page/posts-output/2026-07-16-currentstate/
2•mmts•31m ago•0 comments

Fundamental Theorem of Software Engineering

https://en.wikipedia.org/wiki/Fundamental_theorem_of_software_engineering
2•vismit2000•32m ago•0 comments

Trump Now Wants E. Jean Carroll to Return the $5.6M He Paid

https://people.com/trump-now-wants-e-jean-carroll-to-return-the-usd5-6m-he-paid-for-sexual-abuse-...
6•ninjahawk1•33m ago•0 comments

SynnoDB – Synthesizing Database engines for your workloads

https://github.com/SynnoDB/SynnoDB
2•zX41ZdbW•34m ago•0 comments

A Fireside Chat with Cat and Thariq from the Claude Code Team

https://simonwillison.net/2026/Jul/21/cat-and-thariq/
2•vismit2000•35m ago•0 comments

Light Comes into the Room

https://lightcomesintotheroom.com/
2•bpierre•38m ago•0 comments

What the World Should Learn from Australia's Social Media Law

https://time.com/article/2026/07/18/the-world-should-learn-from-australia-s-social-media-law/
2•dotcoma•38m ago•2 comments

SEAM-V: A Hybrid-Decoupled RISC-V Vector Processor

https://arxiv.org/abs/2607.17899
2•Jimmc414•44m ago•0 comments

An Explosion of Surveillance Towers Is Coming to US Borders, Costing $1B+

https://www.eff.org/deeplinks/2026/07/explosion-surveillance-towers-coming-us-borders-costing-ove...
5•Jimmc414•45m ago•0 comments