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.

Vibecoded Game with Love

https://martino.im/Dungeotto
1•martinopiaggi•58s ago•0 comments

The Patriots' kicker scoreboard trick debunked

https://perthirtysix.com/essay/patriots-scoreboard-kicker-trick
1•potench•1m ago•0 comments

The senior engineer death spiral

https://sunilpai.dev/posts/the-senior-engineer-death-spiral/
1•nsavage•1m ago•0 comments

Our mission: Teaching language to learners who happen to not be human

https://www.theycantalk.org/home
1•bookofjoe•2m ago•0 comments

Procedural islands from fractal rock and 150k raindrops

https://ilands.ai/content/359897434698027008
1•yoichi_rig•4m ago•0 comments

Hair test proves Thomas Jefferson fathered children with slave, book claims

https://www.telegraph.co.uk/us/news/2026/09/19/thomas-jefferson-father-children-slave-sally-hemin...
1•Tomte•8m ago•0 comments

What if my Git host were a static site generator?

https://char.lt/blog/2026/09/sorcery-repo-viewer/
1•homarp•8m ago•0 comments

Scientists revive 100M-year-old microbes from deep under seafloor (2020)

https://www.reuters.com/article/world/scientists-revive-100-million-year-old-microbes-from-deep-u...
1•thunderbong•8m ago•0 comments

What I Remember

https://stevenwaterman.uk/what-i-remember/
1•StevenWaterman•9m ago•0 comments

Crawl Cosplay Trunk Tournament

https://www.crawlcosplay.org/cctt
1•Bluestein•12m ago•0 comments

Any2nix: Serialization-Powered Nix Converter

https://github.com/gbr-ufs/any2nix
1•gs-101•14m ago•1 comments

System Design in Depth – 200 topics, 118 diagrams, interactive demos

https://system-design-in-depth.pages.dev
3•innovatorved•16m ago•0 comments

Show HN: A minimal Pareto-optimal OpenRouter model router for pi, based on Jev

https://github.com/philippdubach/pi-jev-router
1•7777777phil•17m ago•0 comments

IBM Buys Hughs Research Lab for Quantum Dev

https://newsroom.ibm.com/2026-07-23-ibm-to-acquire-hrl-laboratories-to-power-the-future-of-quantum
2•jimbobbam•25m ago•1 comments

From 10-97% SoC in 9 minutes: Sunwoda joins the flash charging race

https://electrek.co/2026/09/20/from-10-97-soc-in-9-minutes-sunwoda-joins-the-flash-charging-race/
2•cisc•29m ago•0 comments

Laya MLX

https://github.com/mizorewww/laya-mlx
1•blueaquilae•30m ago•1 comments

With Adapted Sailing, the Sea Is for Everyone

https://reasonstobecheerful.world/adapted-sailing-school/
2•bookofjoe•31m ago•0 comments

Sherrod Brown Tries a New Retort to Criticism on Transgender Issues

https://www.nytimes.com/2026/09/19/us/politics/sherrod-brown-transgender-ad.html
1•whack•31m ago•0 comments

No More Code Dumps

https://www.reddit.com/r/rust/comments/1wkmzun/no_more_code_dumps/
2•mellosouls•33m ago•0 comments

Lawsuit: Anthropic, OpenAI, SpaceXAI and Google made illegal slowdown agreement

https://www.pbs.org/newshour/nation/lawsuit-says-anthropic-openai-spacexai-and-google-made-illega...
1•rdmuser•34m ago•0 comments

Mathematical Billiards (2024)

https://structures.uni-heidelberg.de/blog/posts/2024_01_costa/index.php
1•vismit2000•35m ago•0 comments

Cognition and consciousness arise from analog computations, says new theory

https://www.technology.org/2026/09/19/cognition-and-consciousness-arise-from-analog-computations-...
1•hackandthink•36m ago•1 comments

A Brief History of Koinometry

https://benjaminschneider.ch/2026/09/19/koinometry.html
1•bschne•37m ago•0 comments

OpenPrinter Teaser Update [video]

https://www.youtube.com/watch?v=wSV5XT4sl2A
1•rhmn_mdov•38m ago•0 comments

Winamp will be reborn in 2027 to take on streaming

https://www.engadget.com/2259236/winamp-coming-back-2027-deezer-partnership-streaming-music/
2•NordStreamYacht•40m ago•2 comments

Yes They Want to Kill Us: The Worshippers of Machines versus Human Beings

https://www.meditationsinanemergency.com/the-worshippers-of-machines-versus-the-lovers-of-nature/
2•eustoria•41m ago•0 comments

Show HN: Easymacros – free calorie and macro tracker, no ads, no subscription

https://easymacros.fit
2•hussein987•41m ago•1 comments

Which Regular Shapes can you draw on any* Grid? [video]

https://www.youtube.com/watch?v=BJXvaEUZvW0
1•vismit2000•42m ago•0 comments

Teen Social Media Bans Miss the Point

https://thereader.mitpress.mit.edu/teen-social-media-bans-miss-the-point/
27•eustoria•45m ago•27 comments

Our context warehouse knows your data, the semantic layer tells it what to trust

https://posthog.com/blog/semantic-layer
1•eustoria•45m ago•0 comments