Hacker News with Generative AI: TypeScript

Show HN: Aberdeen – An elegant approach to reactive UIs (aberdeenjs.org)
Build blazing-fast, declarative UIs in pure TypeScript/JavaScript – no virtual DOM.
Show HN: VoltAgent – Open-Source Observability-First TS AI Agent Framework (github.com/VoltAgent)
VoltAgent is an open source TypeScript framework for building and orchestrating AI agents.
Automatically add missing "async/await" keywords to your TypeScript code (github.com/stanNthe5)
This VScode extension automatically add missing 'async/await' keywords when you save a typescript file.
Show HN: Moose – OSS framework to build analytical back ends with ClickHouse (fiveonefour.com)
Moose lets you develop analytical backends in pure TypeScript or Python code like this:
N-Params vs. Single Param (carlos-menezes.com)
When writing functions in TypeScript (and, truthfully, any language that does not support named parameters), you either pass arguments individually (n params) or group them into a single object.
Ts-Rest: TypeScript Contracts for REST APIs with Built-In Zod Validation (ts-rest.com)
A seriously tiny type-safe wrapper around existing, battle-tested, established techAn incrementally adoptable tool, for TS-first teams who care about stability + safetyNo opinionated API structure, should be compatible with your existing structures
Show HN: Zero-codegen, no-compile TypeScript type inference from Protobufs (github.com/nathanhleung)
Zero-codegen TypeScript type inference from protobuf messages.
Show HN: Gatehouse-TS – TypeScript port of Rust's authorization policy framework (github.com/9Morello)
Gatehouse-TS is a flexible, zero-dependencies authorization library written in TypeScript. It combines role-based (RBAC), attribute-based (ABAC), and relationship-based (ReBAC) access control policies. Port of the Gatehouse authorization library for Rust. The original authors did a fantastic job at creating an easy to use API, and were kind enough to let this library be named after Gatehouse.
Zod v4 Beta (v4.zod.dev)
Zod 4 is now in beta after over a year of active development. It's faster, slimmer, more tsc-efficient, and implements some long-requested features.
ArkType: Ergonomic TS validator 100x faster than Zod (arktype.io)
📈 Announcing ArkType 2.1 📈Search⌘K
Use the Gemini API with OpenAI Fallback in TypeScript (sometechblog.com)
If you want to use Gemini’s public API, but at the same time have a safe fallback in case you have exhausted the rate limits, you can use the OpenAI TS/JS library and a few helper functions. In my particular case I needed a type-safe solution for a chartmaker app with a fallback since Gemini’s gemini-2.5-pro-exp-03-25 model is restricted to 20 request/min.
In Defence of TypeScript Enums (yazanalaboudi.dev)
In the past few years, there’s been a growing trend of criticizing TypeScript’s enum feature.
Show HN: TypeScript as a proof assistant for intuitionistic propositional logic (github.com)
TypeScript can be used just like a proof assistant (for intuitionistic propositional logic)!
Typed Japanese (github.com/typedgrammar)
If you can write TypeScript, you can understand Japanese!
TypeScript is Like C# – A Backend Guide (chrlschn.dev)
If you already know TypeScript, then learning C# is easy! This guide walks you through the similarities (and differences) between TypeScript and C#.
Show HN: Minimal JavaScript/TS framework that made us 10k in 10 days (github.com/The-Pocket-World)
Enable LLMs to Program Themselves.
Show HN: AgentKit – JavaScript Alternative to OpenAI Agents SDK with Native MCP (github.com/inngest)
Build multi-agent networks in TypeScript with deterministic routing and rich tooling via MCP.
Valibot v1 – The 1 kB schema library for TypeScript (valibot.dev)
I am excited to announce the release of Valibot v1. Valibot is a modular and fully tree-shakable schema library that helps you describe and validate your data with a type-safe and easy-to-remember API. As a 1 kB alternative to Zod, Valibot is perfect for validating forms and securing backend-frontend communication with a single source of truth.
TypeScript-go is now a performance benchmark for the Go compiler (googlesource.com)
Choosing Languages (steveklabnik.com)
The other day, Microsoft announced that they are re-writing the TypeScript compiler in Go. A lot of people had a lot of feelings about this. I did too, but in a different way than many other people.
TypeScript is being ported to Go – interview with Anders Hejlsberg (youtube.com)
Why Go? (github.com/microsoft)
Language choice is always a hot topic! We extensively evaluated many language options, both recently and in prior investigations. We also considered hybrid approaches where certain components could be written in a native language, while keeping core typechecking algorithms in JavaScript. We wrote multiple prototypes experimenting with different data representations in different languages, and did deep investigations into the approaches used by existing native TypeScript parsers like swc, oxc, and esbuild.
A 10x Faster TypeScript (microsoft.com)
Today I’m excited to announce the next steps we’re taking to radically improve TypeScript performance.
Bundling MCP Servers in Every OpenAPI –> TypeScript SDK (speakeasy.com)
It’s no longer enough for businesses to make their services available to developers. A great development experience also hinges on the ability for AI to access and integrate with available APIs. That’s why starting today, every TypeScript SDK generated by Speakeasy now bundles a runnable Model Context Protocol (MCP) (opens in a new tab) server enabling you to expose your API to the growing landscape of AI agents.
How to Implement a Cosine Similarity Function in TypeScript (alexop.dev)
To understand how an AI can understand that the word “cat” is similar to “kitten,” you must realize cosine similarity. In short, with the help of embeddings, we can represent words as vectors in a high-dimensional space. If the word “cat” is represented as a vector [1, 0, 0], the word “kitten” would be represented as [1, 0, 1]. Now, we can use cosine similarity to measure the similarity between the two vectors.
Node just added TypeScript support (deno.com)
Node.js recently added native TypeScript support in version 22.6 (stabilized in 23.6), a welcome enhancement simplifying setups for TypeScript users. This has sparked questions within the community about how Node’s new capabilities compare with Deno’s existing TypeScript integration.
Show HN: Testeranto – the AI driven test framework for TypeScript projects (npmjs.com)
🚧 WARNING: Testeranto is still under development and is not ready for production yet. 🚧
An ode to TypeScript enums (disintegrator.dev)
It’s official, folks. TypeScript 5.8 is out bringing with it the --erasableSyntaxOnly flag and the nail in the coffin for many of the near-primordial language features like Enums and Namespaces. Node.js v23 joined Deno and Bun in adding support for running TypeScript files withouth a build step. The one true limitation is that only files containing erasable TypeScript syntax are supported. Since Enums and Namespaces (ones holding values) violate that rule since they are transpiled to JavaScript objects.
Porting Doom to TypeScript Types Took 3.5T Lines, 90GB of RAM (tomshardware.com)
MichiganTypeScript: A WebAssembly runtime implemented in TypeScript types (github.com/MichiganTypeScript)
This is a WebAssembly runtime implemented purely in TypeScript types.