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.

Job Loss and Cortisone Mania

https://tilschuenemann.de/job-loss-cortisone-mania
1•speckx•1m ago•0 comments

Aging Populations Weighing on Global Retirement Systems

https://www.plansponsor.com/
1•throw0101c•3m ago•0 comments

Free Cached Input

https://runinfra.ai
2•OsamaJaber•4m ago•0 comments

Jared Kushner's Hacked Phone Revealed His Secret Negotiations

https://wallhop.io/https://www.vanityfair.com//story/jared-kushner-hacked-phone-secret-negotiations
1•alexander2002•4m ago•0 comments

I built Peer Fitness, an app to make walking fun with friends

https://play.google.com/store/apps/details?id=com.texvnx.peerfitness&hl=en_US
1•m-maaz-azhar•4m ago•0 comments

Forward deployed engineers are the future

https://keithbrown.com/forward-deployed-engineers
1•drewlem•8m ago•0 comments

Using the Dygma Defy ergonomic keyboard for 6 months

https://www.typequicker.com/blog/dygma-defy
1•absoluteunit1•9m ago•0 comments

Bitchat Becomes France's Top Social App Amid Riots and Mobile Network Outage

https://gizmodo.com/jack-dorseys-bitchat-becomes-frances-top-social-app-amid-riots-and-mobile-net...
1•giuliomagnifico•9m ago•0 comments

Dark mode for Medium is finally here

https://medium.engineering/dark-mode-was-never-on-our-roadmap-heres-how-it-got-built-b8e0a54c1d12
1•tontonius•12m ago•0 comments

'VPNs at Risk': Tech Coalition Pushes Back on Piracy Blocking Duties for VPNs

https://torrentfreak.com/vpns-at-risk-tech-coalition-pushes-back-on-piracy-blocking-duties-for-vpns/
2•gslin•15m ago•0 comments

The Founder Purity test is a measure of how much founder experience you have

https://john.fun/founderpurity
1•pghqdev•17m ago•0 comments

How Generative AI Is Scaling Transnational Repression

https://www.justsecurity.org/159245/how-generative-ai-scaling-transnational-repression/
3•pluc•17m ago•0 comments

Software is slow because of bad design, not slow languages

https://www.seangoedecke.com/software-is-slow-because-of-bad-design-not-slow-languages/
2•speckx•18m ago•0 comments

The Greatest Psychedelic Discovery You've Never Heard of [video]

https://www.youtube.com/watch?v=YZSraGWiOSE
1•binyu•19m ago•0 comments

See how many tickets NYC officials get, and whether they pay

https://www.carmula.com/nyc-car-tax/
2•knicker•19m ago•0 comments

Cloud Penetration Testing Vs.Cloud Security Assessment:Which Checklist You Need?

1•kunal9955•20m ago•0 comments

The Hibernate Origin Story (Outsider Edition)

https://fishbowl.pastiche.org/2026/10/23/hibernate-origin-story
1•joshcsimmons•20m ago•0 comments

Robot Will Draw Your Blood Now

https://spectrum.ieee.org/blood-draw-robot-vitestro-aletta
1•donk8r•21m ago•0 comments

AI Is Changing Everything About Hacking. No One Knows What Happens Next

https://www.404media.co/php2shell-black-october-ai-is-changing-everything-about-hacking-no-one-kn...
1•_tk_•22m ago•0 comments

iPhone Duo Jailbreak

https://twitter.com/calif_io/status/2113570095549337977
1•commandersaki•24m ago•2 comments

Show HN: Papers made effortless today – photograph a letter, get a to-do card

https://paper.effortless.today/
1•harisingh1612•26m ago•0 comments

AI and its main promoters are not enterprise-ready, says Gartner

https://www.theregister.com/ai-and-ml/2026/09/14/ai-and-its-main-promoters-are-not-enterprise-rea...
3•donk8r•27m ago•1 comments

How to do ambitious things with AI (parent friendly)

https://dhruvagoyal.com/blog/how-to-do-ambitious-things-with-ai-parent-friendly/
2•dhruvagoyal•31m ago•2 comments

Show HN: Parallax Hidden Objects Game

https://igoryakunin.itch.io/hollowmere
1•ibackstrom•31m ago•0 comments

Learning About Unix Community Through "A Research Unix Reader"

https://playtechnique.io/long/a-research-unix-reader.html
1•gwynforthewyn•32m ago•1 comments

Why Listening to Audiobooks at Normal Speed Is a Waste of Time

https://thatjournalingguy.substack.com/p/why-listening-to-audiobooks-at-normal
1•austinallegro•32m ago•3 comments

Show HN: FattyURL–Open URL shortener with bulk migration and non-expiring links

https://fattyurl.com/
1•kaushalkhodifad•33m ago•0 comments

Show HN: L4ES – verifiable Linux microVMs powered by seL4

https://l4es.dev/
2•losfair•33m ago•0 comments

Poly – A human readable programming language for Coding Agents

https://github.com/cognitive-fab/poly
2•jdubray•35m ago•0 comments

A Man Who Saved the Internet Yesterday

https://www.theatlantic.com/technology/2026/10/man-who-saved-internet-php-vulnerability/689123/
3•falava•36m ago•0 comments