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•11mo ago

Comments

llm-exe•11mo 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•11mo 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.

Trump vows to blockade Strait of Hormuz after talks stumble

https://www.reuters.com/world/asia-pacific/us-iran-talks-pause-now-disagreements-remain-2026-04-11/
1•andyjohnson0•2m ago•0 comments

PostgreSQL Credential Rotation in Production: A Zero-Downtime Runbook

https://www.elydb.com/blog/postgresql-credential-rotation-production
1•thunderbong•3m ago•0 comments

Ask HN: What's your experience with PoW captchas against form spam?

1•pentacent_hq•4m ago•0 comments

A full-featured terminal user interface for hledger plain-text accounting

https://github.com/thesmokinator/hledger-textual
1•willm•6m ago•0 comments

Ask HN: What are all the bad things that AI companies have done which we forgot

1•Imustaskforhelp•7m ago•0 comments

Ask HN: Is Zero Trust Architecture Overkill?

2•devinabox•10m ago•0 comments

Show HN: Formal – Formal verification for AI-generated code using Lean 4

https://github.com/yamafaktory/formal
2•yamafaktory•12m ago•0 comments

Show HN: What's SBTI

https://whatssbti.com/
2•aitooltrek-com•12m ago•0 comments

Show HN: Terminal Style Web Component

https://github.com/spider-hand/terminal-element
1•spider-hand•13m ago•0 comments

Show HN: ApplePy – Embed and Call Swift from Python (Like PyO3, but for Swift)

https://github.com/jagtesh/ApplePy
1•sheepscreek•14m ago•1 comments

Show HN: PrepLists – a directory of 500 prep centers and 3PLs for sellers

https://preplists.com
1•devequijo•14m ago•0 comments

Feature Vomit

https://public.grugnotes.com/keizo/blog/feature-vomit/
1•keizo•15m ago•0 comments

Show HN: Telegram feed reader using DNS TXT records for Iran's Internet shutdown

https://github.com/sartoopjj/thefeed
2•znano•17m ago•0 comments

Trump says US will blockade Strait of Hormuz

https://www.cnn.com/2026/04/12/world/live-news/iran-us-war-talks-trump
3•Tomte•17m ago•1 comments

White Rabbit meets quantum entanglement

https://home.cern/news/news/computing/white-rabbit-meets-quantum-entanglement
1•bookofjoe•19m ago•0 comments

Ask HN: What is the best way to get your first users?

1•Mohd_Umar•19m ago•4 comments

158-year-old home distilling ban ruled unconstitutional

https://www.reuters.com/legal/government/us-appeals-court-declares-158-year-old-home-distilling-b...
2•PessimalDecimal•21m ago•1 comments

Dario Says Continual Learning Is Solved. Is It?

https://twitter.com/tianle_cai/status/2042459055483207818
1•gmays•22m ago•0 comments

Show HN: Kafkaesque – a wire-compatible mock Kafka

https://github.com/dcminter/kafkaesque
1•dcminter•25m ago•1 comments

HappyHorse AI Video Generator

https://openhappyhorse.io/
1•cathy246•28m ago•1 comments

LRTS – Regression testing for LLM prompts (open source, local-first)

https://github.com/rufus-SD/lrts
1•arthur-G•35m ago•0 comments

Metallic θ-phase tantalum nitride has thermal conductivity triple that of copper

https://www.science.org/doi/10.1126/science.aeb1142
2•bookofjoe•36m ago•1 comments

Seven countries now generate 100% of their electricity from renewable energy

https://www.the-independent.com/tech/renewable-energy-solar-nepal-bhutan-iceland-b2533699.html
23•mpweiher•37m ago•4 comments

Tell HN: OpenAI silently removed Study Mode from ChatGPT

19•smokel•38m ago•5 comments

Malvertising and the trend of curl – sh install on macOS

https://pgaleone.eu/security/2026/04/12/paying-google-to-hack-macos-users/
1•me2too•38m ago•0 comments

Simple Git Server

https://sigit.si/
1•kampak212•38m ago•1 comments

Ask HN: How to build an "AI native" company?

1•canxerian•39m ago•2 comments

My adventure in designing API keys

https://vjay15.github.io/blog/apikeys/
1•vjay15•41m ago•1 comments

Apple Is Launching an 'Ultra' Line of Products with New Capabilitie

https://www.entrepreneur.com/business-news/apple-is-launching-an-ultra-line
1•f1shy•41m ago•0 comments

Pro Max 5x Quota Exhausted in 1.5 Hours Despite Moderate Usage

https://github.com/anthropics/claude-code/issues/45756
133•cmaster11•43m ago•61 comments