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.

Darwin Was Right About Sex Roles

https://www.stevestewartwilliams.com/p/darwin-was-right-about-sex-roles
1•Anon84•55s ago•0 comments

A small PHP guestbook

https://twitter.com/__tosh/status/2086418779920105952
1•tosh•4m ago•0 comments

Show HN: DeepSeek-V4 Latent Reasoning – moving "thinking" into latent space

https://blog.n.ichol.ai/packaging-latent-reasoning-as-a-real-model
1•nmitchko•4m ago•0 comments

Drought Threatens the Rhine, a Vital Economic Artery in the Heart of Europe

https://www.nytimes.com/2026/08/06/business/rhine-drought-germany-economy.html
2•bookofjoe•5m ago•1 comments

Yuval Noah Harari on AI, Human Stupidity, and the Future of Civilization [video]

https://www.youtube.com/watch?v=bZL1NsrfuYE
1•thelastgallon•6m ago•0 comments

Reviving a four year old reMarkable 2

https://oskrim.github.io/hardware/2026/08/09/remarkable-over-ssh.html
2•tremguy•11m ago•0 comments

Sperm whale communication clicks can travel up to 70 km

https://bio.au.dk/en/about-biology/news-and-events/show/artikel/verdens-kraftigste-clickbait
2•ashurandi•15m ago•0 comments

Data Warehouse Isn't Integrated Just Because the Tables Are in One Place

https://seattledataguy.substack.com/p/your-data-warehouse-isnt-integrated
1•eigenBasis•17m ago•0 comments

Everything You Do Is Being Recorded

https://www.theatlantic.com/technology/2026/05/ai-wearable-surveillance-countermeasures/687203/
5•ike_usawa•20m ago•0 comments

Silencing brain's prefrontal cortex boost creative problem-solving in mice

https://news.emory.edu/stories/2026/08/how-mice-learn-think-out-box-neuroscience-surprise
1•giuliomagnifico•22m ago•0 comments

Show HN: Inspect any MCP server – latency, token usage, and security scans

https://github.com/ytkoka/mcp-tester
1•ytkoka•26m ago•0 comments

Switching to electric stoves can dramatically cut indoor air pollution

https://news.stanford.edu/stories/2025/12/gas-propane-stoves-nitrogen-dioxide-exposure-health-ris...
3•Doriell•31m ago•0 comments

Real Engineers Dig with Their Bare Hands

https://www.minid.net/2026/7/14/how-to-automatise-with-ai
4•meerita•31m ago•0 comments

A quick look at zero-knowledge proofs

https://bernsteinbear.com/blog/zkp/
3•birdculture•32m ago•0 comments

Show HN: Pier – Give every agent session its own cloud VM, on your own infra

https://pier.kak.dev/
1•kasktra•36m ago•0 comments

Hybrid Structured Editing

https://programming-journal.org/2026/11/1/
1•mpweiher•36m ago•0 comments

Myspace eyes comeback as an an 'antidote' to social media fatigue

https://www.cnbc.com/2026/08/09/myspace-comeback-rival-social-media-giants.html
1•pseudolus•37m ago•0 comments

The Analytic Monopoly on AI Philosophy

https://millermanschool.substack.com/p/the-analytic-monopoly-on-ai-philosophy
1•theanonymousone•39m ago•0 comments

Story of Roomy with Handmade Illustrations

https://story.roomy.space
1•jdsane•39m ago•0 comments

India's Republic of Uncles

https://www.economist.com/asia/2026/05/31/indias-republic-of-uncles
3•thunderbong•44m ago•3 comments

If You Get in a Car Crash, the Risk Is Growing Your Insurance Won't Pay

https://www.wsj.com/finance/if-you-get-in-a-car-crash-the-risk-is-growing-your-insurance-wont-pay...
3•impish9208•47m ago•2 comments

Tcl Note A1 Nxtpaper Review (2026): A Hybrid Tablet for Taking Notes and Watchi

https://www.wired.com/review/tcl-note-a1-nxtpaper-tablet/
1•joozio•48m ago•0 comments

One Japanese village defied the tsunami (2011)

https://www.nbcnews.com/id/wbna43018489
2•mpweiher•52m ago•0 comments

We are witnessing the death of the games console

https://mattcasmith.net/2026/08/09/death-of-the-games-console
1•mattcasmith•55m ago•0 comments

The Aaronson Oracle: an interactive lesson in human predictability

https://aaronsonoracle.com/
1•Tomte•56m ago•0 comments

Ask HN: Should AI's tell you they're AI?

3•logicallee•56m ago•2 comments

Show HN: Argonix – One AI-powered platform for SRE and cloud operations

https://argonix.io/
1•pydavid•1h ago•0 comments

Show HN: Free QR Code Generator – URL, Text, WiFi and VCard – Free, No Signup

https://at-use.com/tools/qr-code-generator
1•atuse•1h ago•1 comments

Angel Investor Simulator

https://store.steampowered.com/app/4771830/Angel_Investor_Simulator/
2•babuskov•1h ago•0 comments

Ask HN: What you using local models for?

1•kandros•1h ago•1 comments