AI agents writing TypeScript
Using AI agents to generate, rewrite, or constrain TypeScript code, and designing type constraints so agents produce safer, deterministic output.
24.2%
Browse the best tweets about TypeScript, from type-system techniques and releases to tooling, architecture, migrations, libraries, and developer workflows.
Technical TypeScript language features, type patterns, tooling, migrations, architecture, releases, and real codebase lessons.
Original Xholic analysis
A TypeScript conversation of 33 posts from 28 creators, dominated by one outlier: Cheng Lou's pure-TypeScript text measurement algorithm. Recurring threads include using strict types to constrain AI agents, alternative compilers and runtimes (tsc-rs, scriptc), TypeScript 6.0 and the Go-based 7.0, tooling migrations, and debates over when Go or Rust beats TypeScript. Stance is mostly supportive (66.7%), and only 18.2% of posts are from the last 90 days.
66.7% of posts
All-time engagement
36.4% of posts
Published in 90 days
Conversation map
Using AI agents to generate, rewrite, or constrain TypeScript code, and designing type constraints so agents produce safer, deterministic output.
24.2%
Developer tooling and codebase migrations, including ESLint to oxlint, build errors like isolatedModules, AST libraries, monorepo setup, and generated types.
24.2%
Debates and case studies comparing TypeScript with Go, Rust, or new languages for CLIs, speed, distribution, and frontend performance.
21.2%
Projects that rewrite, compile, or run TypeScript outside tsc and Node, such as Rust rewrites, native executables, Bun-like runners, and embedded runtimes.
18.2%
Structuring TypeScript codebases: deep modules, plugin architectures, end-to-end typed APIs with tRPC and Hono, typed config specs, and MCP servers.
18.2%
Language features like inferred type predicates, strictness, null handling, compile-time proofs, ultra-strict dialects, and measuring type coverage.
18.2%
Security lessons such as type failures in n8n and leaked sourcemaps, plus TypeScript-first libraries for games, text layout, and UI.
15.2%
TypeScript 6.0 beta and release features, the move to the Go-based native TypeScript 7 (tsgo), and editor setup for the new compiler.
12.1%
Tone and stance
Performance benchmark
Posts with media make up 66.7% of this collection. Their median all-time score is 11.1, compared with 17.5 for text-only posts.
Format mix
Consensus and debate
Shared view
Several builders frame stricter typing or enforced structure as a way to keep agent-written code safe. Guillermo Rauch's gdp-ts requires compile-time 'proofs' of authorization checks. Justin Torre's 'Typescript Ultra Strict' bans nulls, classes and switch statements to force more deterministic AI output. Matt Pocock's deep-modules skill uses dependency-cruiser to enforce module seams and adds a pointer in AGENTS.md.
Shared view
The TypeScript account presents 6.0 as a step closer to a native-speed 7.0, and lists alignments for 7.0 in the 6.0 beta. beeman says 6.x is the last self-hosted major release and that 7.0 will be written in Go. Hot Aisle notes that Zed users need a new tsgo extension for TypeScript 7.
Shared view
Tutorials and practitioners praise setups where types flow automatically. Examples include tRPC and Hono APIs without schema files or codegen, Supabase's generated types, Wasp's TypeScript spec with go-to-definition, and type-safe React plugin architectures.
Open debate
Richard Seroter cites Appwrite's TypeScript-to-Go CLI switch, reporting 17x faster startup and a 66MB to 14MB binary. Paul Iusztin argues that infra-heavy agentic CLIs should use Go to avoid installation friction, while saying TypeScript may fit frontend-heavy apps. Separately, Chris Tate's scriptc offers a different route: it compiles TypeScript to native executables with no JS engine.
Open debate
Seve reports that a ChatGPT Pro Rust/WASM rewrite was 40x faster, and that a later TypeScript rewrite ended up 25% faster still (about 50x the original). Darren Shepherd argues a statically typed compiled frontend language could be far faster than TypeScript. Encore took a hybrid path, writing 60,000 lines of Rust to power its TypeScript framework.
Open debate
Theo announces tsc-rs, a Rust rewrite of tsc, saying 'I have not read a single line of the code.' Seve also says he can no longer read his optimized code. Rauch's gdp-ts, by contrast, starts from the premise that agents write more code than humans can review, so compile-time checks should catch bugs.
What performs
Cheng Lou's pure-TypeScript text measurement post scored 11222.26, which is 965.11x the 11.628 median. The next highest, Rauch's gdp-ts at 1082.01, sits at 93.05x.
Announcements are the largest format (12 posts) with a 124.74 median score. Tutorials have a 0.7 median and opinions a 5.56 median. This is a descriptive pattern, not proof that format drives reach.
The security and ecosystem libraries theme has the highest median score (119.454). Releases and native compiler posts follow at 101.68, then alternative compilers and runtimes at 91.38. Tooling sits at 11.12 and performance tradeoffs at 7.029. Themes overlap, so posts can count in more than one.
Posts with media make up 66.7% of the set but have a lower median score (11.12) than text-only posts (17.537).
Statistical standouts
Creator landscape
The five most represented creators account for 30.3% of the selected posts.
1. Chris Tate
@ctatedev
2 posts
2. freeCodeCamp.org
@freeCodeCamp
2 posts
3. GitHub Projects Community
@GithubProjects
2 posts
4. Petar Ivanov
@petarivanovv9
2 posts
5. TypeScript
@typescript
2 posts
6. Cheng Lou
@_chenglou
1 post
The typescript account posted twice, with a 419.28 median score, covering the 6.0 beta and the 6.0 release.
Chris Tate's two posts track scriptc's progress, from native child_process.fork() support to self-compilation, with a 91.38 median score.
freeCodeCamp.org posted two tutorials with a 31.28 median, above the 11.628 dataset median. Petar Ivanov posted two educational items with a 2.64 median, covering type-coverage and the inferred type predicates added in v5.5.
Since the previous snapshot
Themes, sentiment, stance, and post format are classified per tweet. All counts, shares, medians, creator concentration, freshness, and performance comparisons are then calculated directly from the published snapshot.
Xholic's all-time score compares engagement while accounting for reach, post age, and creator consistency. It is used for relative comparisons within this collection.
This report analyzes the exact 33-post snapshot shown below. AI identifies editorial categories and drafts explanations; all statistics are calculated from the snapshot, and every narrative claim is checked against cited posts before publication.
Best TypeScript tweets
Ranked 01โ33
@_chenglou ยท
My dear front-end developers (and anyone whoโs interested in the future of interfaces): I have crawled through depths of hell to bring you, for the foreseeable years, one of the more important foundational pieces of UI engineering (if not in implementation then certainly at least in concept): Fast, accurate and comprehensive userland text measurement algorithm in pure TypeScript, usable for laying out entire web pages without CSS, bypassing DOM measurements and reflow
@rauchg ยท
Introducing gdp-ts: Ghosts of Departed Proofs for TypeScript. gdp-ts is a library, linter and AI skill for safer API design. Under this contract, sensitive functions require 'proofs' that the caller performed an authorization check. The typechecker verifies these proofs at compile time, preventing your team and agents from shipping catastrophic security (and other kinds of) bugs. While these patterns have existed for quite some time, especially in ecosystems like Haskell, โ human code review and โก cognitive and syntactic overhead made these solutions niche. The situation is now inverted. Agents are writing more code than we can review, and they *thrive* in tight loops with hard constraints that would frustrate us. We see this with the rise of Rust, borrow checker, code aesthetics debate and all. The README and examples model a real-world Vercel API product constraint: changing the password on a Project requires a proof of a certain role + a certain entitlement. Thanks to Matt Noonan and Ollie Charles for their research in this space. https://t.co/eRWdiMvQ2V
@theo ยท
Announcing tsc-rs (aka ts-rust), my complete rewrite of the Typescript compiler, type checker, and LSP, all in Rust. This is a project I've had agents working on for 5 months now. I burned ~$400k of Codex tokens and got nowhere. Burned ~$20k of Opus and got there in 2 weeks. I have not read a single line of the code. tsc-rs is an open source drop-in replacement for tsc, and it's available now.

@typescript ยท
TypeScript 6.0 is now available! This release brings better type-checking for methods, new standard library features, new module features for Node.js, and more! But most important, this release brings us one step closer to the upcoming native-speed 7.0! https://t.co/hon0RU1L5B
@typescript ยท
TypeScript 6.0 beta is now published! This release brings - inference improvements for functions - updates to package.json 'imports' - the Temporal APIs - alignments for the upcoming TypeScript 7.0 - & more! Try it today! https://t.co/vAnfKvrei1
@encoredotdev ยท
We wrote 60,000 lines of Rust to power a TypeScript framework. Here's the full story of how we got here, what broke along the way, and what we'd do differently. https://t.co/ANCL5PWAh4
@justinstorre ยท
I am experimenting with something I call "Typescript Ultra Strict". Basically, typescript with no nulls, no classes, no undefineds, no switch statements, and no vars + the addition of match macros. Basically forcing AI to write functional AI code through compilation errors that is more deterministic and testable. Back in 2008 Chrome built the V8 Javascript engine and the entire world built edge compute on top of this amazing primitive. However, Javascript had it's short comings so we made Typescript, but Typescript still was "too friendly", mainly to appeal to a human audience. We no longer have humans writing code, so why not give the AI something less clunky and more clanky ๐ UX - write .tsus files - add a one-line plugin to webpack, Vite, esbuild, or Bun Features include: - Option/Result runtime, with boundary helpers that turn the outside world's nulls and throws into Option and Result - match macros - good error messages, so an agent can fix its own errors in a loop

@ctatedev ยท
TypeScript โ native, now in parallel scriptc v0.1.4 adds native child_process.fork() + messaging This fractal renders 2.9ร faster with four workers, and compiles to one executable No Node.js, no JS engine
@GithubProjects ยท
KAPLAY.js is a 2D game library for JavaScript and TypeScript designed to make game development feel as fun as playing a game, with a built-in web-based editor. - Composes game objects from simple, powerful components like rect, pos, area, and body - Includes a web-based playground with over 90 examples for instant code testing - Supports TypeScript with global types and full type import options - Offers multiple installation methods including create-kaplay, npm, and CDN Explore it here: https://t.co/wmmd7PgYuB

@mattpocockuk ยท
Here's a skill you can run once to set up deep modules in any TypeScript codebase: - Each 'package' lives at src/packages/<name> (name/path is totally customizable) - From outside the package, you can only import from <name>/index.ts - Tests for the package live at <name>/tests, and can only import from index.ts - No circular dependencies between packages - Puts a context pointer inside AGENTS.md so the agent knows about it (no skills needed) - Works with frontend or backend code (even Effect code!) - Enforced by dependency-cruiser This means you can hide stuff inside modules, with only a single test seam exposed. Clear seams, deterministically enforced: no more shit tests. Awaiting a merge. Should I ship it? https://t.co/6VGvNb6tMl
@ctatedev ยท
scriptc now compiles itself The compiler that turns your TypeScript into native executables can now turn its own TypeScript into a native executable

@freeCodeCamp ยท
Large React apps get harder to scale when every feature has to live inside the core codebase. In this tutorial, Jessica shows you how to design a React plugin architecture with TypeScript that is type-safe, lazy-loaded, and secure. You'll also learn about hosting APIs, plugin lifecycles, separate bundling, runtime loading, and more. https://t.co/SsT4uIKAnH

@freeCodeCamp ยท
Did you know โ you can get end-to-end type safety in full-stack TypeScript apps without schema files or code generation. In this guide, @itsTarun24 shows you how to use tRPC and Hono to build APIs where the backend and frontend share types automatically. You'll learn when to use each tool and how they improve reliability, catch errors at compile time, and speed up development. https://t.co/jPqlzN44oH

@PentesterLab ยท
๐ฅ๐ฒ๐๐ฒ๐ฎ๐ฟ๐ฐ๐ต ๐ช๐ผ๐ฟ๐๐ต ๐ฅ๐ฒ๐ฎ๐ฑ๐ถ๐ป๐ด - ๐ช๐ฒ๐ฒ๐ธ ๐ณ, ๐ฎ๐ฌ๐ฎ๐ฒ Parser Differential, TypeScript and AI โจ ๐๐ฟ๐ฒ๐ฎ๐ธ๐ถ๐ป๐ด ๐๐ผ๐๐ป ๐๐ฉ๐-๐ฎ๐ฌ๐ฎ๐ฒ-๐ฎ๐ฑ๐ฌ๐ฐ๐ต: ๐๐ผ๐ ๐ง๐๐ฝ๐ฒ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐ง๐๐ฝ๐ฒ๐ ๐๐ฎ๐ถ๐น๐ฒ๐ฑ ๐ป๐ด๐ป'๐ ๐ฆ๐ฒ๐ฐ๐๐ฟ๐ถ๐๐ A great explanation of the recent vulnerabilities impacting n8n. If you are working in security on TypeScript projects, it's a must read. https://t.co/9cqTpEAluI. โ๏ธ ๐๐ป๐๐ฟ๐ผ๐ฑ๐๐ฐ๐ถ๐ป๐ด ๐๐๐ด๐๐๐๐๐: ๐ข๐ฝ๐ฒ๐ป ๐ฆ๐ผ๐๐ฟ๐ฐ๐ฒ ๐๐๐ ๐ฃ๐ฟ๐ผ๐บ๐ฝ๐ ๐๐ป๐ท๐ฒ๐ฐ๐๐ถ๐ผ๐ป ๐ง๐ผ๐ผ๐น Praetorian is back with another tool (one of their 12 Caesars): Augustus... Make sure you check it out! https://t.co/kIgkNwiNMM. ๐คบ ๐ช๐ต๐ฒ๐ป ๐ง๐๐ผ ๐ฃ๐ฎ๐ฟ๐๐ฒ๐ฟ๐ ๐๐ถ๐๐ฎ๐ด๐ฟ๐ฒ๐ฒ: ๐๐ ๐ฝ๐น๐ผ๐ถ๐๐ถ๐ป๐ด ๐ค๐๐ฒ๐ฟ๐ ๐ฆ๐๐ฟ๐ถ๐ป๐ด ๐๐ถ๐ณ๐ณ๐ฒ๐ฟ๐ฒ๐ป๐๐ถ๐ฎ๐น๐ ๐ณ๐ผ๐ฟ ๐ซ๐ฆ๐ฆ If you enjoy parser differential issues, you are going to love this exploit. Don't think "It's a CTF challenge" or "It's just an XSS", read between the lines to find the real gold. https://t.co/rwf2BGnerh. ๐ค ๐ฅ๐๐ ๐ถ๐ป ๐๐ผ๐ผ๐ด๐น๐ฒ'๐ ๐๐ ๐ฐ๐ผ๐ฑ๐ฒ ๐ฒ๐ฑ๐ถ๐๐ผ๐ฟ ๐๐ป๐๐ถ๐ด๐ฟ๐ฎ๐๐ถ๐๐ - $๐ญ๐ฌ๐ฌ๐ฌ๐ฌ ๐๐ผ๐๐ป๐๐ A detailed blog post on hacking Antigravity with a lot of interesting details on its inner workings. https://t.co/3ExHVYrf9X. ๐ ๐ง๐ฟ๐ฎ๐ถ๐น๐ถ๐ป๐ด ๐๐ฎ๐ป๐ด๐ฒ๐ฟ: ๐ฒ๐ ๐ฝ๐น๐ผ๐ฟ๐ถ๐ป๐ด ๐๐ง๐ง๐ฃ ๐ง๐ฟ๐ฎ๐ถ๐น๐ฒ๐ฟ ๐ฝ๐ฎ๐ฟ๐๐ถ๐ป๐ด ๐ฑ๐ถ๐๐ฐ๐ฟ๐ฒ๐ฝ๐ฎ๐ป๐ฐ๐ถ๐ฒ๐ Probably one of the lesser-known features of HTTP... Trailers. This post provides details on the feature and explains how they can be leveraged to find security issues. https://t.co/I2J8yvXdpa.
@dshukertjr ยท
Supabase automatically generating TypeScript types is still one of my favorite features! Supports various column types, views, and functions so that you can develop apps with a fully typed setup!

@mehulmpt ยท
Nub by @colinhacks is a big deal and a long time coming. Bun made running TypeScript cool locally, without worrying about transpiling or fighting with your own code. Today in 2026, `tsx` package, and other tooling combined with pnpm, a faster laptop, and a little patience and ecosystem knowledge, allows you to get the stability of Node with the experience you'd want from a runtime like Bun. That bun <> node gap closed a little today with Nub, which I spent some time reading about and playing with. Made me remember the 2021-2022ish broken esbuild local setup systems we used to have to run the code locally. We have come a long way from that. Talking about that in a video today

@GithubProjects ยท
This is the monorepo behind the TypeScript website, containing the playground, sandbox, and documentation tooling. - Uses pnpm workspaces with node 20+ and watchman for file watching. - All packages support `pnpm build`, `pnpm test`, and debug logging via the `debug` package. - Deployment is automatic: pushes to the `v2` branch deploy to production. - Changesets manage version bumps for public packages like `@typescript/twoslash` and `@typescript/sandbox`.

@GergelyOrosz ยท
Sometimes I hate being a dev who can debug JavaScript because I see the absolute careless code another dev pushed to prod. It is impossible to print package labels on the NL Post site (@PostNL) b/c of this unhandled null breaks everything Use TypeScript and handle nulls, OK?!

@rseroter ยท
The smart team at open platform provider @appwrite switched their CLI from TypeScript to Go. The results? โ Starts 17x faster โ Installs 2 packages instead of 330 โ 66MB --> 14MB binary โ 1/10 the memory footprint https://t.co/P1KRHTUYSW
@petarivanovv9 ยท
Do you want to know how much of your TypeScript code is type-safe? If yes, use type-coverage. Why? 1. This CLI tool reports the percentage of your code thatโs type-safe. 2. It highlights the usage of: โข any โข as assertions (foo as string) โข type assertions (<string>foo) โข Non-null assertions (foo!) โข Plain Object type (Object or {}) 3. Provides a detailed report of spots to improve type safety. 4. For a visual output, use typescript-coverage-report. Bonus: With a strict ๐ต๐ด๐ค๐ฐ๐ฏ๐ง๐ช๐จ.๐ซ๐ด๐ฐ๐ฏ, we can enable the IDE to highlight untyped code. This will naturally motivate the developer to look at the warning and fulfill the missing type safety. Links ๐ โโ ๐พ Save this for later. โป Repost to help others find it. โ Follow @petarivanovv9 + turn on notifications. #typescript #softwareengineering #programming

@dan_note ยท
QuickBEAM v0.7.1โ0.8 updates N-API addon support ๐๐๐๐๐๐ฑ๐ด๐ฐ๐ผ.๐๐๐๐_๐๐๐๐๐(๐๐, "๐๐๐๐น๐ธ.๐๐๐๐", ๐๐: "๐๐๐๐น๐ธ") {:๐๐, ๐ฟ๐ถ๐ฝ_๐ถ๐ผ๐ถ_๐พ๐ฝ๐ถ} = ๐๐๐๐๐๐ฑ๐ด๐ฐ๐ผ.๐๐๐๐(๐๐, ~๐[๐๐๐๐น๐ธ.๐๐๐๐น๐ธ("๐๐๐๐๐")]) Load native .node addons (napi-rs, plain C) into a BEAM runtime. Tested with node-rs/bcrypt, argon2, crc32, sqlite-napi. Full N-API surface: constructors, typed arrays, async work, threadsafe functions. New Beam APIs ๐ฑ๐๐๐.๐๐๐๐๐๐๐๐๐๐๐(), ๐ฑ๐๐๐.๐๐๐๐๐๐๐ธ๐๐๐๐๐๐(), ๐ฑ๐๐๐.๐๐๐๐๐๐๐(), ๐ฑ๐๐๐.๐๐๐๐๐๐๐() TypeScript in Context now works โ auto-transforms .ts/.tsx and bundles imports, matching Runtime behavior. https://t.co/I8w6NReRQ1
@seveibar ยท
whirlwind day of optimizations first I wrote a typescript autorouter that I thought was pretty fast then I got chatgpt pro to rewrite it in rust/WASM and that was 40x faster! (darn, bye js?) then I asked chatgpt pro to look at the Rust code and make the Typescript code as fast as the Rust code, and now the Typescript is 25% faster So now I'm around 50x where I started, and the only downside is now I can't read any of the code lol

@beeman_nl ยท
Oooh nice, @typescript 6 has been released ๐ 6.x is the last major release of TypeScript that's self-hosted. As of 7.0 it will be written in @golang ๐๏ธ๐ฅณ


@pauliusztin_ ยท
Most agentic CLIs are built in TypeScript. Hereโs why thatโs a mistake (and you should use Go instead): We'll use Michael @maximilien as an exampleโฆ He built his Weave CLI with Go. He's also the former CTO at IBM and former Chairperson of the NodeJS Foundation. So this is not a โTypeScript is badโ take... He knows the ecosystem deeply. But when he started building Weave CLI, an open-source tool for production RAG across 11 vector databases, the constraints were different. He needed something that could run anywhere. And this is where Go shines. It has no: โข npm install โข Python virtual envs โข uv issues โข JVM setup โข Broken package registries โข On-prem network restrictions Just download the binary, make it executable, and run it. Weave CLI has to: โข Spin up vector databases โข Ingest documents โข Run RAG agents โข Compare embeddings โข Benchmark configurations โข Monitor traces & experiments with Opik by @Cometml For this kind of infrastructure tooling, installation friction is product friction. If users canโt run it easily, they wonโt use it. But there's a deeper lesson in this: Donโt pick your stack based on the herd. Pick it based on what the system needs. For frontend-heavy agent apps, TypeScript may be the right choice. For infra-heavy CLIs and TUIs that need to run anywhere, Go is hard to beat. Full Weave CLI case study in Decoding AI Magazine: https://t.co/MpJ3bYuH8g

@ibuildthecloud ยท
I'm absolutely fascinated by the fact that frontend developers accept typescript. That means it's possible to build a better language for frontend. Everything frontend people have rejected about compiled and statically typed languages they have brought to JavaScript. So it's definitely possible to create a statically typed compiled language for frontend that would be ridiculously fast compared to typescript. It's a times like this I wish I didn't have a job.
@MatijaSosic ยท
Just spent two hours testing the final Wasp TypeScript Spec with @infomiho, and I got really excited about it. One of the gamechangers is definitely the ability to split your spec file across multiple files and organize features in vertical units. Plus, since it's all just TS now, type safety and go-to-definition work out of the box. Can't wait to ship this.

@petarivanovv9 ยท
TypeScript v5.5 removed one of the most annoying things in typing, and barely anyone is talking about it. In v5.5, type predicates are now inferred automatically. That means this: You no longer need to write: "x is string" โฆjust to make TypeScript understand your function. It figures it out itself. Less boilerplate Cleaner functions Fewer mental gymnastics This is one of those small changes that quietly improve everything. Most devs wonโt notice it. But once you do, you wonโt go back. If you haven't upgraded, consider doing it. โโ ๐พ Save this for later. โป Repost to help others learn TypeScript. โ Follow @petarivanovv9 + turn on notifications. #TypeScript

@dashersw ยท
I just open-sourced eszter โ a library that lets you write Babel AST the way you write code. Tagged template literals + TypeScript return-type inference. No more six-level-deep builder towers just to generate an if statement. npm install eszter
@buildwithhassan ยท
claude code shipped its full TypeScript source again via .js.map in the npm package (v2.1.88) second time this packaging footgun happened and this is a terminal agent people run with --dangerously-skip-permissions / auto-accept sourcemaps = architecture + security assumptions exposed

@creowistech ยท
๐จ How to Fix TypeScript isolatedModules Error in Next.js? If your Next.js build fails with this message: Re-exporting a type when isolatedModules is enabled requires using export type Donโt worry, itโs not a complex bug. Itโs just about being clear with TypeScript. more...

@HotAisle ยท
if you're using zed with typescript 7, you need to install a new tsgo extension and configure it correctly according to the readme... https://t.co/xVIR9YsQRi

@thenewstack ยท
Learn how to build your first MCP server using TypeScript and connect it to Claude Desktop with this step-by-step calculator app tutorial for developers. https://t.co/C4hD4S2fBU
Best TypeScript tweets
Xholic studies what works in your niche, drafts posts in your voice and schedules them for the hours your audience is online.
No card needed ยท Nothing to cancel
Browse all tweet collectionsLive demo: no sign-up or login needed ยท takes about 2 minutes
Keep exploring