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.

Unshittify: A log of owners reclaiming hardware from dead clouds and lock-in

https://unshittify.dev/
1•andreasduess•2m ago•0 comments

Uncensored Kimi K3.1 will be a cheap API call the day the weights drop

https://silkcompute.com/
1•nsdonati•3m ago•0 comments

UK [under-16] social media ban likely to require photo ID checks

https://www.politico.eu/article/uk-social-media-ban-likely-to-require-photo-id-checks/
2•milderworkacc•5m ago•0 comments

AI, Mathematics, Education, and a public goods problem

https://terrytao.wordpress.com/2026/10/29/ai-mathematics-education-and-a-public-goods-problem/
1•smilelamp•5m ago•0 comments

Show HN: Free check of how ready your PHP app is for the EU Cyber Resilience Act

https://patchclock.com/
1•Fairydx•8m ago•0 comments

Show HN: I Turned DOOM into a Transformer

https://github.com/mottopanikeiku/doomformer
3•falperc•8m ago•0 comments

Mathematicians find an infinite number of Ramanujan equations

https://www.yahoo.com/news/science/articles/mathematicians-infinite-number-ramanujan-equations-10...
1•westurner•9m ago•1 comments

The Feed

https://agentowl.netlify.app/feed
1•webxos•12m ago•0 comments

China's Utter and Total Erasure of Kylian Mbappé

https://www.sportsandcrime.com/p/chinas-utter-and-total-erasure-of
2•chistev•14m ago•1 comments

Where AI agents' social boundaries break: 5 LLMs try to form a government

https://judgementlabs.app/blog/the-coalition-room
2•Jash271•15m ago•2 comments

Laser Mosquito Air Defense

https://store.photonmatrixlab.com/products/photon-matrix-laser-mosquito-air-defense
1•nycdatasci•15m ago•0 comments

Built an astrology website with a unique/differentiating feature

https://nakshatra.chakrapani.net/
1•ycombyaccount•16m ago•1 comments

Man given first-of-its-kind religious exemption against mandatory AI use at work

https://www.tomshardware.com/tech-industry/artificial-intelligence/secular-humanist-gets-religiou...
2•yboris•18m ago•0 comments

AI training platform Outlier illegally surveils European platform workers

https://noyb.eu/en/ai-training-platform-outlier-illegally-surveils-european-platform-workers
1•latexr•20m ago•0 comments

Fan-fiction site Archive of Our Own could be offline for up to 4 weeks

https://techcrunch.com/2026/10/29/fan-fiction-site-archive-of-our-own-could-be-offline-for-up-to-...
1•windsurfer•23m ago•0 comments

There's No Such Thing as Society in the Objective Function

https://laurenleek.substack.com/p/theres-no-such-thing-as-society-in
1•sebg•25m ago•0 comments

Vertical Farming: Reimagining Agriculture in an Urban Age

https://worldsensorium.com/vertical-farming-reimagining-agriculture-in-an-urban-age/
1•dnetesn•26m ago•0 comments

Are we in an AI Bubble? Lessons from 1873 and 2000

https://samissermoyer.substack.com/p/are-we-in-an-ai-bubble-lessons-from
2•greekanalyst•27m ago•0 comments

The end of startups: The coming credit crunch

https://evanjconrad.com/posts/end-of-startups
2•maxall4•27m ago•0 comments

How ancient DNA is rewriting the story of human origins

https://blue-continuum.com/our-history-written-in-dust
1•dnetesn•27m ago•0 comments

You're in a War for Your Attention. You Should Probably Wear Armor

https://www.talysman.app/blog/attention-armor
2•yauneyz•28m ago•1 comments

Digging a Secret Garage Part 8 the Last 6 Months (Colin Furze) [video]

https://www.youtube.com/watch?v=sxur0bhmkFM
1•mfrw•31m ago•0 comments

When AI Starts Writing Systems Code

https://www.coreauto.com/blog/when-ai-starts-writing-systems-code
1•skidrow•34m ago•0 comments

You Can Turn Off the New MacBook Pro's Touchscreen Functionality

https://twitter.com/viticci/status/2115524599081558016
1•throwaway270925•35m ago•0 comments

Advanced Matrix Multiplication Optimization on Nvidia GPUs

https://salykova.github.io/gemm-gpu
1•skidrow•35m ago•0 comments

Blog FlexAttention: The Flexibility of PyTorch with the Performance of FA

https://pytorch.org/blog/flexattention/
1•skidrow•36m ago•0 comments

Show HN: Resumux – TCP over WebSockets that survives the WebSocket dying

https://github.com/k4lleanka/resumux
1•k4lleanka•39m ago•1 comments

SpaceX no longer needs NASA, and that's a problem for America's space agency

https://arstechnica.com/space/2026/10/spacex-no-longer-needs-nasa-and-thats-a-problem-for-america...
7•civilchaos•42m ago•0 comments

Highway thieves are spoofing GPS to steal millions in data center-bound cargo

https://arstechnica.com/tech-policy/2026/10/highway-thieves-are-spoofing-gps-to-steal-millions-in...
4•cdrnsf•43m ago•0 comments

The Economic Organisation of a POW Camp [pdf]

https://courses.cit.cornell.edu/econ4260/out/radford_pow.pdf
2•sebg•43m ago•0 comments