frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Noemi Reveals Multi-Mission Strategy for Electric Amphibious Aircraft

https://www.ainonline.com/aviation-news/futureflight/2026-05-19/noemi-reveals-multi-mission-strat...
1•rbanffy•1m ago•0 comments

Startup Fundraising, just like Dating, are both deeply inefficient markets

https://intercoin.org/matchmaking.html
1•EGreg•1m ago•0 comments

End of the beginning – the state of global energy markets after ten weeks of war

https://nbutler.substack.com/p/the-end-of-the-beginning-the-state
1•JumpCrisscross•1m ago•0 comments

Node.js 26.0.0 (Now with Temporal)

https://nodejs.org/en/blog/release/v26.0.0
2•aarestad•2m ago•0 comments

Researchers discover a new gigantic dinosaur species in Thailand

https://abcnews.com/International/researchers-discover-new-gigantic-dinosaur-species-thailand/sto...
1•gmays•2m ago•0 comments

Ask HN: US is planning another Invasion (Cuba).Can Congress/public stop this?

2•orsenthil•3m ago•0 comments

Understand Russian without Studying [video]

https://www.youtube.com/watch?v=86zPQ53bgX0
1•diimdeep•3m ago•0 comments

GitHub Source code leaked. Be prepared

https://twitter.com/github/status/2056949169701720157
2•TZubiri•3m ago•1 comments

Show HN: Llama CPU Benchmarks

https://deemwar-products.github.io/llama-cpu-benchmarks/
1•muthuishere•3m ago•0 comments

What You Will Lose When You Retire – By Dan Haylett

https://danhaylett.substack.com/p/what-you-will-lose-when-you-retire
1•bilsbie•6m ago•0 comments

If an LLM is too expensive it won't be next year

http://liveatthewitchtrials.blogspot.com/2026/05/if-llm-is-too-expensive-it-wont-be-next.html
3•speckx•12m ago•0 comments

Citor: A header-only C++20 thread pool tuned for sub-us dispatch

https://github.com/Lallapallooza/citor
3•Lallapallooza•14m ago•0 comments

Flipper One Tech Specs

https://docs.flipper.net/one/general/tech-specs
3•gregsadetsky•16m ago•0 comments

Marine scientists discover record number of new species

https://abcnews.com/International/marine-scientists-discover-1100-new-species-new-record/story?id...
2•thunderbong•18m ago•0 comments

Notched sticks to calculators: the history of counting machines

https://lcamtuf.substack.com/p/a-brief-history-of-counting-stuff
2•fratellobigio•19m ago•0 comments

Built a CAPTCHA alternative in C with PoW, JA4, and puzzle in complex mode

https://github.com/captxa/captxa-backend
1•captxa•19m ago•0 comments

OSS Alternative to AWS Transfer Family Written in Elixir

https://hex.pm/packages/sftpd
3•ixtli•21m ago•1 comments

Training a small model to write better OCaml with RLVR and GRPO

https://blog.nilenso.com/blog/2026/05/18/training-a-small-model-to-write-better-ocaml-with-rlvr-a...
1•sriharis•23m ago•0 comments

Killing in Japan Stirs Fear of New Crime Rings That Recruit the Vulnerable

https://www.nytimes.com/2026/05/20/world/asia/japan-tokuryu-crime-killing.html
1•mistersquid•24m ago•0 comments

What will better AI mean?

https://geohot.github.io//blog/jekyll/update/2026/05/20/what-will-better-mean.html
2•speckx•26m ago•0 comments

I got ratioed by 300 writers

https://booksbyjeffrey.substack.com/p/i-got-ratioed-by-300-writers
1•exolymph•28m ago•0 comments

TeamPCP Interview

https://buymeacoffee.com/insidedarknet/teampcp-interview
1•Cider9986•28m ago•0 comments

SQL injection on Drupal sites using PostgreSQL

https://www.drupal.org/sa-core-2026-004
2•nwellnhof•29m ago•0 comments

Muxy is a lightweight terminal for Mac with a mobile app for remote control

https://github.com/muxy-app/muxy
1•543310•29m ago•0 comments

SpaceX picks Goldman Sachs for lead left position on record-breaking IPO

https://www.cnbc.com/2026/05/19/spacex-picks-goldman-sachs-to-lead-record-breaking-ipo-sources-sa...
1•cwwc•31m ago•0 comments

Former Cuban president Raúl Castro indicted in US over fatal downing of 2 planes

https://www.bbc.com/news/live/czr24nr681gt
5•tartoran•32m ago•0 comments

Garry Tan – How one founder becomes a 1000x engineer (Stanford) [video]

https://www.youtube.com/watch?v=Lri2LNYtERM
2•sebzuddas•32m ago•0 comments

ReMarkable Connection Utility (RCU)

https://www.davisr.me/projects/rcu/
1•nathell•32m ago•0 comments

Assoc between preop vit D level andpostop pain in breast cancer surgery patients

https://rapm.bmj.com/content/early/2026/05/04/rapm-2025-107495
1•bookofjoe•32m ago•0 comments

Premium Deception: Uncovering a Global Android Carrier Billing Fraud Campaign

https://zimperium.com/blog/premium-deception-uncovering-a-global-android-carrier-billing-fraud-ca...
2•speckx•34m ago•0 comments