Docs / guide/philosophy
Foundations Guide
5 min read

The SnapJSX Philosophy

Understand the core principles of minimalist, zero-dependency component design.

The Problem with Traditional UI Libraries

Most UI libraries today come as massive npm packages. While convenient, they often lead to 'dependency hell', version conflicts, and bloated bundles. You are forced to accept their abstractions, making customization a battle against the library itself.

The SnapJSX Approach

SnapJSX is not a library you install; it's a registry you copy from. We give you the raw JSX and Tailwind source code. This means you have zero runtime dependencies, full ownership of the code, and absolute freedom to customize.
tsx
// Instead of importing from a package
import { Button } from 'snapjsx'; // ❌

// You copy the source into your own components folder
import { Button } from '@/components/ui/button'; // ✅

Three Pillars of Design

1. Zero Dependencies: No package.json bloat. 2. Total Control: The source code is yours to modify. 3. Performance First: No unnecessary abstractions or runtime overhead.