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.

Should your toaster be able to refuse to make you toast?

https://blog.pascalschuster.de/article/on-model-welfare-and-usage-policies
1•thepasch•17s ago•0 comments

Inspect Your Model Training

https://github.com/ahmadmustafaanis/tvis
1•ahmadanis1234•1m ago•0 comments

Shipping Container Sized Whales: Scientists are unsure how many exist

https://www.discoverwildlife.com/animal-facts/marine-animals/omuras-whale-feeding-raja-ampat
1•bigwheels•2m ago•0 comments

Bitmaps in the Linux Kernel

https://0xax.dev/books/linux-inside/linux-datastructures-2
1•matt_d•3m ago•0 comments

Why Capitalism Is Doomed According to Joseph A. Schumpeter

https://jonasanksher.substack.com/p/why-capitalism-is-doomed
1•paulpauper•4m ago•0 comments

When the White Collars Feel Threatened – A Reply to Terence Tao

https://komando1.substack.com/p/when-the-white-collars-feel-threatened
1•paulpauper•4m ago•0 comments

AI and the Death of the Author

https://thedeepdish.substack.com/p/ai-and-the-death-of-the-author
1•paulpauper•4m ago•0 comments

Show HN: Page.json – An open standard for representing UI

https://wuwei.us/pages/page-json
1•laybak•6m ago•0 comments

Pentagon to execute convicted Fort Hood mass shooter Nidal Hasan by firing squad

https://abcnews.com/US/pentagon-execute-convicted-fort-hood-mass-shooter-nidal/story?id=137019865
1•embedding-shape•6m ago•0 comments

Equality Saturation: An "Incomplete" Project

https://blog.sigplan.org/2026/10/01/equality-saturation-an-incomplete-project/
1•matt_d•7m ago•0 comments

https://surf-alert.net - Simplified Surf Forecasts

1•rmarques7•8m ago•0 comments

Planning system ensures a robot's flight path will remain collision-free

https://news.mit.edu/2026/planning-system-ensures-robots-flight-path-will-remain-collision-free-1007
1•gmays•9m ago•0 comments

Firmus pulls IPO amid investor doubt about datacentre company

https://www.theguardian.com/australia-news/2026/oct/09/firmus-pulls-asx-float-datacentre-investor...
1•aussieguy1234•9m ago•0 comments

AI and Chiral Fermions

https://www.math.columbia.edu/~woit/wordpress/?p=15915
1•jjgreen•10m ago•0 comments

Apple will reportedly debut its first touchscreen MacBook in three weeks

https://www.theverge.com/tech/1008422/apple-macbook-pro-touchscreen-ipad-mini-rumor
1•tolugenius•11m ago•0 comments

Why 'vertical farming' is not a fix for our food system

https://theconversation.com/why-vertical-farming-is-not-a-fix-for-our-food-system-293201
1•rdmuser•13m ago•0 comments

A quiet pixel-art city where strangers listen to music together

https://roomcity.live/
1•louislefebvreqc•15m ago•0 comments

Data needs its DevOps moment

https://render.com/blog/data-needs-its-devops-moment
1•dm03514•16m ago•1 comments

Fort Hood attacker's execution by firing squad will be livestreamed

https://www.bbc.com/news/articles/cmy0r96xygx6o
5•mo7061•17m ago•0 comments

Load TBs into Postgres in Minutes

https://www.databricks.com/blog/load-terabytes-data-minutes-lakebase-postgres
1•moonikakiss•19m ago•0 comments

Bevy 0.20

https://bevy.org/news/bevy-0-20/
2•Philpax•21m ago•0 comments

Show HN: Wick, a daily word game where you guess by meaning, not spelling

https://guesswick.com/
1•jpage2•22m ago•1 comments

Lego Mindstorms' future predictions from 1998

https://www.youtube.com/playlist?list=PL6Tt4uBL-6Pw7kGiKjSDds7A3xhxOG2hq&si=ztOhEYq6JK3-V68Q
2•soundworlds•23m ago•0 comments

The Subreddit Where Men Share Their Dinners–and Their Most Intimate Feelings

https://www.gq.com/story/boydinnerdiaries-subreddit-community
1•rdmuser•24m ago•0 comments

Top Reasons AI Will Never Become Superintelligence: Won't Destroy nor Save Us

https://www.wmbriggs.com/post/62236/
3•B1FF_PSUVM•24m ago•0 comments

ICE Emails Discuss Using Palantir-Supported Tool to Investigate Voter Fraud

https://www.wired.com/story/ice-emails-discuss-using-palantir-supported-tool-to-investigate-voter...
2•mikelgan•27m ago•0 comments

Scientists invent new kind of clock

https://www.the-independent.com/tech/clock-new-atomic-nuclear-time-b3062910.html
1•gmays•27m ago•0 comments

'Breathtaking,' 'Devastating': Mathematics Reels After New OpenAI Release

https://www.nytimes.com/2026/10/08/science/mathematicians-respond-openai-release.html
2•furcyd•27m ago•0 comments

Highly multiplexed mammalian metabolic engineering with a shotgun approach

https://www.nature.com/articles/s41587-026-03318-7
1•bookofjoe•29m ago•0 comments

Spinal: A near-instant, predictive surface for any codebase

https://spinal.sh/
2•handfuloflight•30m ago•0 comments