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.

Diving into the Bun Rust rewrite [video]

https://www.youtube.com/watch?v=2AqwehBu84w
1•kissgyorgy•1m ago•0 comments

Mapping AI-enabled cyber threats: Insights from the LLM ATT&CK Navigator

https://red.anthropic.com/2026/attack-navigator/
1•berlianta•1m ago•0 comments

You Are an 'Avatar in a VR Game,' Scientist Claims

https://www.popularmechanics.com/science/a71445608/space-time-illusion-consciousness/
1•XzetaU8•2m ago•0 comments

AI and the Psychology of Cognitive Surrender

https://www.psychologytoday.com/us/blog/the-digital-self/202606/ai-and-the-psychology-of-cognitiv...
2•xenophonf•5m ago•0 comments

Raytracing Geometries in 3D Rendering

https://andeplane.github.io/Raytracing/
1•kvakkefly•5m ago•1 comments

Why GPTHuman AI Is the Best AI Humanizer?

https://gpthuman.ai/
1•karl192001•6m ago•0 comments

Ask HN: Playlist – Hit the Road

1•systemkwiat•8m ago•0 comments

Scientists Create Tiny Chip That Uses Light Instead of Electricity

https://scitechdaily.com/scientists-create-tiny-chip-that-uses-light-instead-of-electricity-to-pr...
1•01-_-•10m ago•0 comments

Zamicus+|+Dang.ai

https://dang.ai/tool/ai-marketing-intelligence-zamicus-com
1•VickyK09•11m ago•0 comments

The AI Question That No AI Person Asks [video]

https://www.youtube.com/watch?v=o9Vbvp4awQU
2•mantesso•12m ago•0 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/
2•gregsadetsky•18m ago•0 comments

Open Source Aviation Maps

https://tech.marksblogg.com/aviation-maps.html
2•marklit•20m ago•0 comments

Illegal live TV streaming in Germany grows 33% since 2022, to €2.4B loss in 2025

https://vau.net/pressemeldungen/study-reveals-annual-losses-of-e2-4-billion-from-illegal-tv-strea...
2•giuliomagnifico•21m ago•0 comments

Google must let publishers opt out of AI Search features, rules UK

https://www.theverge.com/tech/942302/google-search-ai-overviews-uk-cma-publisher-opt-out
1•SockThief•22m ago•0 comments

Exploring geospatial link between soils and national intelligence quotient

https://www.nature.com/articles/s41598-025-22539-5
1•geox•27m ago•0 comments

What we learned mapping a year's worth of AI-enabled cyber threats

https://www.anthropic.com/news/AI-enabled-cyber-threats-mitre-attack
1•surprisetalk•28m ago•0 comments

JL Collins goes global, and why that feels familiar

https://www.thehappysaver.com/blog/jl-collins-goes-global-and-why-that-feels-familiar
1•teleforce•28m ago•0 comments

You won't be talking to AI in natural language for too long

https://www.elicited.blog/posts/you-wont-be-talking-to-ai-in-natural-language-for-too-long
2•justanotheratom•31m ago•1 comments

Oils – Reviewing Our NLnet Grants After 4 Years

https://oils.pub/blog/2026/06/grants.html
1•birdculture•32m ago•0 comments

Mathematicians issue warning as AI rapidly gains ground

https://www.science.org/content/article/mathematicians-issue-warning-ai-rapidly-gains-ground
2•pseudolus•37m ago•0 comments

Redis 8.8: New array data structure, rate limiter, performance improvements

https://redis.io/blog/announcing-redis-8-8/
1•ksec•38m ago•0 comments

The empty field that wasn't

https://lsc-pagepro.mydigitalpublication.com/publication/?i=865273
1•robinhouston•43m ago•2 comments

Japan declines to join movement to ban youth from social media

https://www.asahi.com/ajw/articles/16615541
6•BaudouinVH•46m ago•2 comments

A runtime verification pipeline that reduced hallucinations from 67% to 11%

https://www.crukx.dev/
2•Shafwan_safi•47m ago•0 comments

Gödel and Turing outlined the limits of AI

https://www.heise.de/en/blog/How-Goedel-and-Turing-outlined-the-limits-of-AI-11313804.html
1•bertman•49m ago•0 comments

Build 2026: WSL improvements and the new Containers CLI and APIs

https://build.microsoft.com/en-US/sessions/DEM346
5•pjmlp•50m ago•1 comments

Embedding Tailwind Design System in Obsidian

https://alessandrofarace.com/essay/how-to-embed-design-system-obsidian
1•A-F-V16•52m ago•0 comments

Show HN: Vivix – See inside JavaScript as it executes (open source)

https://vivix.dev/
2•hlude•52m ago•1 comments

UK lawmakers call on government to ditch Palantir NHS contract

https://www.theregister.com/software/2026/06/03/uk-lawmakers-call-on-government-to-ditch-palantir...
5•beardyw•54m ago•0 comments

Google Is Quietly Buying Code from Play Store Developers to Train AI

https://www.404media.co/google-is-quietly-buying-code-from-play-store-developers-to-train-ai/
2•beardyw•56m ago•1 comments