Skip to main content

Refract Documentation

Build predictable, reactive applications with declarative optics, reusable components, and minimal boilerplate.

4.9/5 Developer Rating
🔒Enterprise Ready
99.9% Uptime
Quick Start
// Install the library
npm install @refract/core

// Initialize and use
import { createRefraction } from '@refract/core';

const state = createRefraction({
  count: 0,
  user: null
});

// Reactive updates
state.count.set(42);
console.log(state.count.get()); // 42

Why Choose Refract?

Built for modern development teams who value quality, performance, and developer experience

👨‍💻

Developer Experience

Built with developers in mind. Full TypeScript support, excellent IDE integration, comprehensive documentation, and interactive examples.

🚀

Performance First

Optimized for speed and efficiency. Minimal bundle size with maximum functionality. Tree-shakable modules and zero runtime overhead.

🤝

Community Driven

Open source and community-driven. Join thousands of developers building amazing things. Active Discord community and regular updates.

🧩

Composition API

Better logic reuse and organization. Build complex features from simple, reusable pieces. Embrace functional programming principles.