Skip to content

MinimactThe Posthydrationist Framework

Server-first reactive UI with 'MINIMal Anticipatory Client Technology' — zero hydration, predictive DOM patches, instant interactivity, and Rust-fueled performance. Built for ASP.NET Core.

Minimact

Watch the Introduction

Quick Start

bash
# Clone and run Swig - the official Minimact IDE
git clone https://github.com/minimact/swig
cd swig
npm install
npm start

Create Your First App

Once Swig launches:

  1. Create Project - Click "New Project" and choose a directory
  2. Edit Components - Write TSX in Monaco editor (auto-transpiles to C#)
  3. Build - Click "Build" to compile your app
  4. Run - Click "Run" and open in browser

That's it! From zero to running app in under 2 minutes.

Two runtime versions available:

  • @minimact/core — 12.01 KB gzipped (WebSocket-based, modern browsers)
  • @minimact/core/r — 25.03 KB gzipped (Full SignalR with fallbacks)

Example

Write familiar React code:

tsx
import { useState } from '@minimact/core';

export function Counter() {
  const [count, setCount] = useState(0);

  return (
    <button onClick={() => setCount(count + 1)}>
      Count: {count}
    </button>
  );
}

Babel transpiles to C#, Rust predicts the next state, and the client applies cached patches instantly (~2-3ms).

The cactus doesn't hydrate — it stores. 🌵


Why Minimact?

For React Developers

Finally, a path to .NET without learning Razor. Keep writing React — get ASP.NET Core's power, security, and enterprise features.

Bundle size: 12.01 KB vs React's 45 KB (71% smaller!)

For .NET Teams

Modern frontend DX without abandoning your stack. Your team already knows C# and EF Core. Now they can build UIs with React syntax.

Performance: 2-3ms interactions vs 47ms traditional SSR

For CTOs

Solve the "React DX + .NET backend" problem. One stack, one deployment, full type safety from database to DOM. Rust-powered performance makes ASP.NET Core shine.

Comparison:

  • React 18: 45 KB gzipped
  • Vue 3: 34 KB gzipped
  • Minimact: 12.01 KB gzipped (71% smaller than React)

Better Than Blazor

Blazor requires learning Razor syntax. Minimact uses React — the syntax millions of developers already know. Lower barrier, faster adoption, bigger talent pool.

Released under the MIT License.