Skip to content
b3hr4d edited this page Mar 11, 2026 · 2 revisions

IC Reactor Wiki

This wiki is a repo-oriented companion to the main documentation site.

What IC Reactor Is

IC Reactor is a set of libraries for building Internet Computer applications with:

  • end-to-end TypeScript types
  • TanStack Query-powered caching and invalidation
  • React hook factories like createActorHooks(...)
  • reusable query and mutation factories
  • display-friendly transforms through DisplayReactor
  • optional code generation through the CLI and Vite plugin

Start Here

Recommended Setup

For most React apps:

pnpm add @ic-reactor/react @icp-sdk/core @tanstack/react-query
pnpm add -D @ic-reactor/vite-plugin

Then create:

// src/clients.ts
import { ClientManager } from "@ic-reactor/react"
import { QueryClient } from "@tanstack/react-query"

export const queryClient = new QueryClient()
export const clientManager = new ClientManager({
  queryClient,
  withCanisterEnv: true,
})

And configure the Vite plugin:

// vite.config.ts
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import { icReactor } from "@ic-reactor/vite-plugin"

export default defineConfig({
  plugins: [
    react(),
    icReactor({
      canisters: [{ name: "backend", didFile: "./backend/backend.did" }],
    }),
  ],
})

Use This Wiki For

  • quick architectural orientation
  • deciding which package or pattern to use
  • finding the right example quickly
  • repo-specific workflows

Use the main docs site for full API reference and deeper guides.

Clone this wiki locally