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.

The Website Is Down

https://www.thewebsiteisdown.com/
1•kretaceous•2m ago•0 comments

Tech giants lose $2T in SpaceX's IPO month

https://english.elpais.com/economy-and-business/2026-07-01/tech-giants-lose-2-trillion-in-spacexs...
1•01-_-•3m ago•0 comments

The Regret We Get Wrong

https://jordangrumet.substack.com/p/the-regret-we-get-wrong
1•jader201•3m ago•0 comments

Show HN: Coding Agent Survey – Which coding agents do you use?

https://codingagentsurvey.org/
1•jacobgold•3m ago•1 comments

What do you mean by "Event-Driven"? (2017)

https://martinfowler.com/articles/201701-event-driven.html
1•adletbalzhanov•4m ago•0 comments

Show HN: I Made TS Compiler Graph MCP: 10x Fewer Tokens in Claude Code and Codex

https://github.com/samchon/ttsc/tree/master/packages/graph
1•autobe•7m ago•0 comments

FFmpeg's native AAC encoder has just been rewritten, and beats fdk_aac

https://xcancel.com/FFmpeg/status/2072320220509741087
2•wyattblue•8m ago•0 comments

Who needs a museum when there's a banana room in town?

https://www.nytimes.com/2026/07/01/arts/design/museum-of-ice-cream-companies-art.html
1•thebigship•10m ago•0 comments

Fedora: Future of Community Initiatives and AI Deveoper Desktop

https://discussion.fedoraproject.org/t/fedora-council-statement-on-the-future-of-community-initia...
2•logic•11m ago•0 comments

What are you, Claude Fable 5?

https://slug-kebabs.dev/blog/what-are-you/
1•jedwidz•12m ago•1 comments

Salt v1.0.0 – a systems language with Z3 theorem proving in the compiler

https://salt-lang.dev
2•bneb-dev•12m ago•0 comments

A complete ClickHouse OLAP engine, compiled to WebAssembly

https://wasm.chdb.io/
1•porridgeraisin•12m ago•0 comments

The average vibe coder experience

https://www.reddit.com/r/vibecoding/s/xqZ2MpJJ8R
1•eeko_systems•13m ago•0 comments

Belkin's Cable Won't Charge Your Switch 2 More Quickly

https://www.lttlabs.com/articles/2026/07/01/does-the-belkin-cable-charge-the-nintendo-switch-2-fa...
1•LabsLucas•13m ago•0 comments

When does redundancy become redundant?

https://www.bengodfrey.dev/blog/redundancy/
1•sudo-bendg•13m ago•0 comments

Consciousness: How 'working memory' may mysteriously give rise to it

https://theconversation.com/consciousness-how-working-memory-may-mysteriously-give-rise-to-it-283823
2•anarbadalov•13m ago•0 comments

Differentiation drives the erosion of positivity on social media

https://www.pnas.org/doi/10.1073/pnas.2527316123
2•marojejian•13m ago•1 comments

Codex reasoning-token clustering at 516 may be leading to degraded performance

https://github.com/openai/codex/issues/30364
1•0x_rs•14m ago•0 comments

I prompt AI to write at a 7th-grade level

https://anatoliybabushka.com/blog/ela7-writing-rule.html
1•bbsnly•14m ago•0 comments

Govt issues notice to WhatsApp over username feature

https://www.thehindu.com/sci-tech/technology/govt-issues-notice-to-whatsapp-over-username-feature...
3•thisislife2•15m ago•0 comments

LLMs are stuck in a groupthink groove. This startup is trying to get them out

https://www.technologyreview.com/2026/07/01/1140003/llms-are-stuck-in-a-groupthink-rut-this-start...
1•joozio•15m ago•0 comments

The Second Coming of the Command Line

https://cautomaton.com/articles/second-coming-of-the-command-line/
1•jaaron•16m ago•0 comments

PlayStation 5 Linux project gets upgraded to support new firmware and PS5 Slim

https://www.gamingonlinux.com/2026/07/playstation-5-linux-project-gets-upgraded-to-support-new-fi...
1•watermelon0•17m ago•0 comments

AI's next bottleneck is power

https://www.businessinsider.com/why-creator-economy-startup-founder-pivot-data-center-power-tar-2...
2•toredo1729_2•20m ago•0 comments

NanoShell: A preemptively multi-tasked 32-bit OS with a windowed GUI

https://github.com/iProgramMC/NanoShellOS
1•mrunix•20m ago•0 comments

Show HN: Classify mechanical faults using Contrastive Language-Audio Pretraining

https://github.com/adam-s/car-diagnosis
2•dataviz1000•20m ago•0 comments

Please Do Not Touch

https://readme.dm/please-do-not-touch/
1•dmadisetti•23m ago•0 comments

AI Danger VC

https://aidangervc.com
1•ipostragebait•25m ago•0 comments

Crowded planes and airports set records, straining the U.S. aviation system

https://text.npr.org/nx-s1-5869367
2•mooreds•25m ago•0 comments

Why did it take us hundreds of years to discover plate tectonics?

https://worksinprogress.co/issue/on-the-origin-of-continents/
2•devitoria•26m ago•0 comments