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.

British Parliament, 1 Sept 1939 – start of WW2

https://api.parliament.uk/historic-hansard/commons/1939/sep/01/british-note-to-germany
1•stmw•45s ago•0 comments

Researchers use AI to 'democratize' 3D printing of crucial metal alloy

https://news.wsu.edu/news/2026/08/24/researchers-use-ai-to-democratize-3d-printing-of-crucial-met...
1•yogthos•1m ago•0 comments

AI and the Practical Scientist

https://scholarlyfutures.substack.com/p/ai-and-the-practical-scientist
1•JohnHammersley•2m ago•0 comments

Ask HN: Anyone homeschooling their kids?

3•wbnns•5m ago•0 comments

The efficient frontier of LLM inference

https://www.baseten.co/blog/the-efficient-frontier-of-llm-inference/
1•philipkiely•8m ago•0 comments

TEAS: Tracking Evolving AI and Systems – cost, accuracy, performance, energy

https://www.teasbench.com/
1•matt_d•9m ago•0 comments

Teltonika RUTM: industrial cellular and Ethernet routers

https://wiki.teltonika-networks.com/view/RUTM_Routers
1•gregsadetsky•11m ago•0 comments

GitHub CLI: Media in issues, pull requests, and comments

https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/
1•lovre•13m ago•1 comments

Giving Feedback After a Mistake Is Worse Than Waiting a Day

https://www.reddit.com/r/askmanagers/comments/1w4aiki/the_management_lesson_i_learned_too_late_gi...
1•bucket2015•13m ago•0 comments

To bot or not to bot: My personal rules of engagement with AI

https://code2yugen.substack.com/p/what-i-use-ai-for-and-what-i-never
1•anukin•16m ago•0 comments

Logic, Rhetoric and Legal Reasoning in the Qur'an

https://www.routledge.com/Logic-Rhetoric-and-Legal-Reasoning-in-the-Quran-Gods-Arguments/Gwynne/p...
1•handfuloflight•17m ago•0 comments

Smartwatch is lying to you about how many calories you burned, Study finds

https://news.fiu.edu/2026/your-smartwatch-is-lying-to-you-about-how-many-calories-you-burned-in-y...
1•DeepLogin•22m ago•0 comments

One-Handed Hyperbolic Clock

https://jpivarski.github.io/hyperbolic-map/clock.html
1•mathgenius•25m ago•0 comments

ChatGPT desktop app bundles a full copy of the LibreOffice

https://twitter.com/simonw/status/2094864223683903800
1•hisamafahri•25m ago•0 comments

Presage – Kubernetes autoscaling that forecasts demand with TimesFM

https://github.com/breezycourses/presage
1•subhamkts•30m ago•1 comments

New Google AI Model Said to Narrow Gap on Coding Ability (Gemini 3.8 Flash)

https://www.wsj.com/tech/ai/new-google-ai-model-said-to-narrow-gap-on-coding-ability-264c6052
1•petilon•32m ago•0 comments

FTC alleges Amazon illegally made $20B by rigging billions of ad auctions

https://arstechnica.com/tech-policy/2026/09/ftc-alleges-amazon-illegally-made-20-billion-by-riggi...
2•kurthr•32m ago•0 comments

BallGOAT – Play a whole football career in 5 minutes

https://theballgoat.com/
1•snowbol•34m ago•0 comments

Coin and Bullion Melt Value Calculators

http://coinapps.com/
1•gregsadetsky•37m ago•0 comments

Perplexity launches privacy-minded 'hybrid compute' AI feature for Mac

https://9to5mac.com/2026/09/01/perplexity-launches-privacy-minded-hybrid-compute-ai-feature-for-mac/
2•DGAP•38m ago•0 comments

FBI Probes Service Selling 153M+ Drivers Licenses

https://krebsonsecurity.com/2026/09/fbi-probes-service-selling-153m-drivers-licenses/
3•tatersolid•38m ago•0 comments

Nvidia's Anthropic Deal: Just Don't Call It 'Circular Financing'

https://www.barrons.com/articles/nvidia-stock-price-anthropic-deal-ai-circular-financing-6be908a3
3•doener•38m ago•0 comments

Show HN: Notes Plus – A Markdown Apple Notes Clone with Latex, Excalidraw etc.

https://notesplus.io/
2•sliqqq•39m ago•1 comments

Google vs. Canva

https://vector.news/google-takes-aim-at-canva/
1•artur_makly•39m ago•0 comments

Improving our alignment and security efforts

https://www.anthropic.com/news/improving-alignment-security-efforts
3•reasonableklout•43m ago•0 comments

Show HN: Secure agentic email infrastructure with beta desktop client

https://github.com/adecubed/gigamail
2•Adecubed•48m ago•0 comments

OpenAI delayed its new model's development after the Hugging Face hack

https://www.theverge.com/ai-artificial-intelligence/987695/openai-astra-unreleased-model-cybersec...
4•sbulaev•49m ago•2 comments

Rust Function Overloading – Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
2•birdculture•56m ago•0 comments

The ColorChecker, photography's most important 24 squares, turns 50

https://www.dpreview.com/news/the-colorchecker-photographys-most-important-24-squares-turns-50/
2•sohkamyung•1h ago•0 comments

Open Source Access Control Management Application

https://github.com/Simkura-tech/loudin
1•jackmerrifield2•1h ago•1 comments