bidyut10/opensourceui
소개
Opensource UI: React와 Next.js를 위한 무료 오픈 소스 컴포넌트로, 프로덕션 환경에서 사용할 수 있습니다. TypeScript, Tailwind CSS, lucide 아이콘을 기반으로 합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- +6
- in 7 days
- +15
- in 15 days
- +18
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOpensource UI
Free React and Next.js UI you copy into your project. 200+ components across 30 categories, TypeScript, Tailwind CSS v4, and live previews. MIT for personal and commercial use — no package to install, and no paywall later.
Browse the catalog at opensourceui.in/components.
Why copy-paste
Most kits ask you to learn a system before one button is usable. These pieces are meant to be copied, not installed: find a component, paste the file, tweak props, and ship. No provider setup and no theme config.
Quick start
Node.js 22.x.
git clone https://github.com/bidyut10/opensourceui.git
cd opensourceui
npm install
npm run dev
- Homepage: http://localhost:3000
- Catalog: http://localhost:3000/components
| Command | What it does |
|---|---|
npm run dev |
Dev server |
npm run build |
Static export to out/ (runs check:showcase first) |
npm run lint |
ESLint |
npm run typecheck |
tsc --noEmit |
npm run format |
Prettier, with Tailwind class sorting |
npm run test |
Vitest unit tests |
npm run verify |
Full gate: format, lint, types, catalog, design, tests, build, Playwright |
npm run verify:quick |
Same gate without build and end-to-end tests |
Husky runs Prettier and ESLint on commit, then npm run verify on push. GitHub CI runs the same checks.
Use a component
There is no opensourceui npm package. Copy the file from components/, then bring along whatever that file imports:
lib/cn.ts, plusclsxandtailwind-merge- Matching files from
icons/ lucide-react, when the source imports itnext/image, when the source uses images
Keep "use client" when the source has it. Each detail page at /components/[slug] shows a live preview and the copy-ready source.
Register a new showcase entry
Edit lib/showcase/showcase.tsx and add the component to showcaseRows:
import { MyNewCard } from "@/components/text/my-new-card";
c(
"my-new-card",
<MyNewCard />,
"components/text/my-new-card.tsx",
"MyNewCard",
{
title: "My New Card",
description: "Shown on the detail page.",
usage: "<MyNewCard />",
},
),
Also update skills/opensource-ui/references/source_inventory.txt, and catalog.md when the listing should appear in the agent catalog.
AI coding agents
Works with Cursor, Claude Code, Codex, Copilot, Grok, ChatGPT, and other agents. Point the agent at skills/opensource-ui/. Setup notes are in AGENTS.md.
Read skills/opensource-ui/SKILL.md and add the Opensource UI Login Form to my Next.js app.
In Cursor, @skills/opensource-ui/SKILL.md is enough. You do not need a second copy under .cursor/skills/.
Stack
- Next.js 16 — App Router, static export (
output: "export") - React 19, TypeScript, Tailwind CSS v4
cn()fromclsxandtailwind-merge- Optional PostHog analytics (
NEXT_PUBLIC_POSTHOG_KEY)
Copy-pasted components are React, Tailwind, and SVG. They do not depend on shadcn, MUI, or Radix, and copying one does not require PostHog or Sentry.
Design
Paper white, ink text, hairline borders. Accents only for state. The catalog stays light so you can add dark mode after the file is yours.
forwardRef, native HTML props, andcn()for classes"use client"only when the browser is required- Responsive styles use base plus
md:— notsm: - Focus changes the border. No colored focus rings
- Icons: kebab-case files, PascalCase exports, under
icons/
import { ArrowRight } from "@/icons/actions/arrow-right";
import { Bell } from "@/icons/elements/bell";
<ArrowRight size={16} />
<Bell size={20} color="#171717" className="opacity-60" />
Repository
| Path | What it is |
|---|---|
app/(marketing)/ |
Home, about, contact, careers, sponsor, legal |
app/(docs)/ |
Catalog, category, search, and detail pages |
app/_shared/ |
Navigation and scroll helpers |
components/ |
Copy-paste library |
icons/ |
SVG icon components |
lib/cn.ts |
Class merge |
lib/site.ts |
Site config, author, sponsorship tiers |
lib/showcase/ |
Registry — edit showcase.tsx to add a preview |
lib/seo/ |
Metadata and JSON-LD |
skills/opensource-ui/ |
Agent kit |
tests/unit/ |
Vitest |
tests/e2e/ |
Playwright smoke and accessibility |
scripts/checks/ |
Catalog and design gates |
scripts/deploy/ |
Build cleanup and Cloudflare deploy |
(marketing) and (docs) are route groups. They do not appear in the URL.
| Route | Page |
|---|---|
/ |
Homepage |
/components |
Full catalog |
/components?q=iphone |
Search |
/components/category/mockups |
Category browse |
/components/[slug] |
Preview, setup, and source |
/about |
Story |
/contact |
Support, bugs, pull requests |
/careers |
Open roles |
/sponsor |
Brand placement |
/privacy · /terms |
Legal |
More detail: tests/README.md, scripts/README.md, CONTRIBUTING.md.
Deploy
Vercel
- Import github.com/bidyut10/opensourceui in Vercel. Framework preset: Next.js.
- Build command:
npm run build. Output:out/(static export). - Copy variables from
.env.exampleonly if you want PostHog, Search Console, or Sentry source-map uploads.
vercel.json sets security headers and optional /ingest rewrites for PostHog.
Cloudflare
This project deploys as a Worker with static assets, configured in wrangler.toml. It is not a Cloudflare Pages site.
| Dashboard field | Value |
|---|---|
| Build command | npm run build |
| Deploy command | npm run cf:deploy |
| Output directory | out |
Local preview: npm run cf:dev. Security headers come from public/_headers, copied into out/ at build time. On Workers, PostHog uses the direct API host. The functions/ingest/ folder is unused on this path.
Sponsors
Components stay free either way. Sponsoring is optional.
- GitHub Sponsors — support the maintainer
- opensourceui.in/sponsor — brand placement on the homepage, docs, and this README
Contributing
CONTRIBUTING.md covers setup and pull requests. Questions and sponsorships go to opensourceui.in/contact.
This project follows the Contributor Covenant.
Security
Report sensitive issues using SECURITY.md. Do not file a public issue for those.
License
MIT — personal and commercial use. Credit is welcome and not required.
Maintained by Bidyut · X · GitHub
Something broken? Open an issue on GitHub.
관련 프로젝트 살펴보기
불러오는 중…