Skip to content
プロジェクト

概要

アニメーション対応の、本番環境で使えるUIコンポーネント。実際のプロダクトに必要な形で設計されています。

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
+2
7日間
+15
15日間
+23
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Componentry

Beautiful, interactive UI components you can copy and paste into your apps.

Crafted with React, Tailwind CSS, and Framer Motion. Open source. Free forever.

Documentation · Components · Report Bug · Request Feature

Vercel OSS Program

License Twitter


Introduction

Componentry is a collection of beautifully designed, interactive UI components built with React and Tailwind CSS. Just run the CLI command, add the component to your project, and start building.

Why Componentry?

  • Copy & Paste - Not a dependency. You own the code.
  • Interactive - Cursor-following effects, 3D transforms, and smooth animations.
  • Customizable - Built with Tailwind CSS. Easy to modify.
  • Accessible foundations - Native controls and component-specific keyboard and motion support. Validate accessibility in your application.
  • Dark Mode - All components support light and dark modes.
  • TypeScript - Fully typed for the best developer experience.

Quick Start

Installation via CLI

The fastest way to add components is using the shadcn CLI:

npx shadcn@latest add @componentry/magnetic-dock

Development

This project uses Turborepo for monorepo management.

Prerequisites

  • Node.js 20+
  • pnpm 10+

Setup

# Clone the repository
git clone https://github.com/harshjdhv/componentry.git
cd componentry

# Install dependencies
pnpm install

# Start development server
pnpm dev

Environment variables

All env vars live in a single root .env file (gitignored). apps/web/next.config.mjs loads it with Next's own env loader, so the web app picks up the same values automatically. No symlink or extra setup is needed.

After cloning, copy the template and fill in what you need:

cp .env.example .env

Nothing here is required to run the app: with no keys, everything degrades gracefully — analytics stays off, registry namespace falls back to @componentry, and the R2 upload scripts just tell you which var is missing.

Variable Used for
R2_* Cloudflare R2 uploads for component preview videos (scripts)
NEXT_PUBLIC_POSTHOG_* PostHog analytics
NEXT_PUBLIC_APP_URL Base URL of the registry
NEXT_PUBLIC_REGISTRY_NAMESPACE Namespace in install commands
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION Search Console meta tag
TURBO_TOKEN, TURBO_TEAM Turborepo remote cache

Project Structure

componentry/
├── apps/
│   └── web/                 # Documentation site (Next.js)
├── packages/
│   ├── ui/                  # Component library
│   ├── eslint-config/       # Shared ESLint configuration
│   └── typescript-config/   # Shared TypeScript configuration
└── turbo.json               # Turborepo configuration

Available Scripts

Command Description
pnpm dev Start development server
pnpm build Build all packages
pnpm lint Run linting
pnpm format Format code with Prettier
pnpm registry:generate Regenerate component and block payloads
pnpm registry:check Check registry freshness, dependencies and docs coverage
pnpm test Run distribution regression tests
pnpm typecheck Typecheck the web and UI workspaces
pnpm test:registry:install Install and typecheck representative payloads in a fresh app

Contributing

We welcome contributions! Whether it's:

  • Reporting a bug
  • Submitting a fix
  • Proposing new features
  • Creating new components

See the component creation guide for source, registry and documentation steps, and the maintenance guide for validation commands.

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-component)
  3. Commit your changes (git commit -m 'Add amazing component')
  4. Push to the branch (git push origin feature/amazing-component)
  5. Open a Pull Request

Component Guidelines

When creating new components:

  • Use TypeScript with proper type definitions
  • Support both light and dark modes
  • Include comprehensive props with sensible defaults
  • Add smooth transitions and animations
  • Write clear documentation with examples
  • Follow existing code style and patterns

Tech Stack

License

MIT License - feel free to use these components in personal and commercial projects.

Third-Party Licenses

Some components use third-party dependencies with separate license terms.

  • image-trail and layered-stack require gsap (GSAP).
  • If you use or redistribute those components, you are responsible for complying with GSAP's license terms.
  • GSAP license: https://gsap.com/licensing/

See LICENSE for more information.

Acknowledgments


Made with care by Harsh Jadhav

関連プロジェクトを探す

読み込み中…