rivet-dev

rivet-dev / antiox

Public

Rust- and Tokio-like async primitives for TypeScript.

43
0
100% credibility
Found Mar 27, 2026 at 43 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

Antiox is a lightweight TypeScript library offering structured concurrency tools like channels, tasks, and locks inspired by Rust's Tokio to simplify reliable async programming.

How It Works

1
😩 Struggling with async chaos

You're building an app that juggles multiple tasks at once, but promises, timeouts, and cancellations create sneaky bugs and crashes.

2
🔍 Discover Antiox

You hear about this handy toolkit that brings reliable ways to coordinate tasks, just like in pro languages, but simple for everyday coding.

3
📦 Add the toolkit

With one easy step, you bring Antiox into your project, ready to tame the chaos.

4
Create your first smart worker

You set up a background helper that listens for instructions through a safe message pipe and responds neatly, feeling the control click into place.

5
📨 Send messages and get replies

Fire off quick updates or ask questions and get back exactly what you need, with automatic cleanup when done.

🎉 Smooth, bug-free multitasking

Your app now handles busy workloads reliably, with clean shutdowns and no more edge-case headaches—everything flows perfectly.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 43 to 43 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is antiox?

Antiox delivers Rust- and Tokio-inspired async primitives to TypeScript, like channels, streams, tasks, and synchronization tools, fighting the concurrency bugs from hand-rolled Promise.all, AbortController, and setTimeout combos. It's an antioxidant for JS async code—structured concurrency with backpressure, clean shutdowns, and zero-cost abstractions that feel like rust github crates but run natively in Node or browsers. Install via npm, tree-shake what you need, and build actor systems or request-response flows without custom DSLs.

Why is it gaining traction?

It mirrors Tokio's API structure and naming, so rust github trending fans or LLM-prompted devs port ideas instantly, skipping JS's flaky event emitters. Tiny minified sizes (under 5KB per primitive, gzipped ~1KB) make it a safe rust github dependency for libraries, with no runtime overhead unlike Effect's wrappers. Vanilla async/await + AbortSignal keeps perf predictable for high-throughput apps.

Who should use this?

Node backend devs crafting microservices or game servers with mpsc channels and select for multiplexing. Real-time TS apps needing broadcast or watch for state sync without WebSockets boilerplate. Rust migrants building rust github actions cache or rust github ci workflows in JS, craving Tokio's safety.

Verdict

Grab it for production prototypes if you need Tokio primitives now—docs are thorough, examples run, and it's battle-tested in RivetKit—but watch for API changes (pre-release). At 43 stars and 1.0% credibility, it's early; pair with zod for schemas until adoption grows. Solid bet for rust github client alternatives in TS.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.