프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요 로그인

할 수 있는 일

SwiftPieces MCP는 모션, 햅틱, 상태 기능이 통합된 디자인된 SwiftUI 컴포넌트 라이브러리입니다. 개발자는 단일 Swift 파일, CLI 도구 또는 AI 지원 설치로 쉽게 통합할 수 있습니다.

제작자 설명을 자동 번역 · 팀 확인 전

  • 연결 방식 클라우드에서 실행
  • 계정 또는 키 키 필요 없음
  • 분류 개발자 도구
제작자의 원래 설명
Swift Pieces provides a library of designed SwiftUI components featuring integrated motion, haptics, and states. Developers can easily integrate these elements via a single Swift file, CLI tool, or AI-assisted installation.

3단계로 쓰기

  1. 설치 또는 연결

    이 URL을 원격 MCP를 지원하는 앱에 붙여 넣기

    https://swiftpieces.com/api/mcp
  2. 키와 설정

    키 필요 없음

  3. 첫 요청 해 보기

    get_design_skill 도구를 쓰라고 요청하세요. 만든 곳의 설명: App Design: the free SwiftPieces design method for any SwiftUI app.

저희 검사기가 확인한 설치 정보로 만들었어요

가격과 등록 경위

Official MCP Registry에 없음 · 팀이 확인 후 직접 추가

알아둘 점
  • MIT + Commons Clause 라이선스: 상업용 앱이나 웹사이트 안에서는 써도 되지만, 컴포넌트 자체를 단독이든 묶음이든 판매·재허가·재배포하면 안 돼요.
  • Pro(화면, 앱 템플릿, 추가 블록)는 비공개 소스이고 $199 일회성 구매예요. 일부 블록은 Pro 라이선스로 로그인해야 설치돼요.

2026년 11월 25일에 만든 곳의 파일과 대조 · github.com/Saivion/SwiftPieces/blob/main/LICENSE · swiftpieces.com/pro

팀이 추가한 날
2026년 11월 25일

만든 곳 페이지와 마지막 확인 2026년 11월 25일 · github.com/Saivion/SwiftPieces/blob/main/README.md

1클릭으로 직접 배포

내 계정에 이 서버의 사본을 만들어 내 URL을 받아요. PopNx MCP가 이 코드를 대신 실행하지 않아요.

  • Cloudflare Workers에 배포 ↗저장소에 wrangler.jsonc(Cloudflare Workers 설정)은 있지만 만든 곳이 버튼을 넣지 않았어요. 키나 데이터베이스 같은 추가 설정이 필요할 수 있어요

2026년 11월 25일에 저장소 파일로 확인 · MCP를 직접 올리는 다른 방법 →

함께 쓰기

이런 작업을 AI에게 가르치는 Skill, 이것과 함께 쓸 수 있습니다

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

제작자: morluto★ 478,489skill 1개

Skill · 안내서

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

제작자: multica-ai★ 235,718skill 1개

Skill · 안내서라이선스 명시 없음

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

제작자: Graphify-Labs★ 153,391skill 1개

Skill · 안내서

이 순위인 이유

이 항목은 “AI와 연결되는 앱” 탭에 있으며, 이 탭은 별 없이 다음 순서로 정렬합니다

1. Claude 커넥터 디렉터리에 있음아니요
2. 팀이 직접 써 봄아니요
3. 태국 사용자에게 맞음아니요
4. 별을 뺀 사용량20/100인기 0 · 최신성 12 · 응답 중 8 · 사용자 좋아요 +0
5. 등록일2026-11-25

사용자 좋아요: 0 · 순위에 최대 5점(1인 1점) 더해지며 돈으로 살 수 없습니다.

품질: 기본 점검 4/4개 통과(표시만, 정렬에는 안 씀)

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

한 문장으로 AI에게 설치 맡기기

SwiftPieces MCP 설치해 줘. https://mcp.popnx.com/i/swiftpieces-mcp.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.

내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기

검사 4/4 통과 · 내가 묻는 내용은 제작자 서버(swiftpieces.com)를 거쳐요 · ✓ 명령 확인 2026년 11월 25일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음 · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가

  1. 이 버튼을 누르면 Claude가 미리 채워진 connector 추가 창을 엽니다

    Claude에 SwiftPieces MCP 추가 ↗

    이름과 주소가 채워져 있어요. 확인하고 Add를 누르세요 · 로그인하지 않았다면 Claude가 먼저 로그인을 요청해요

    Claude가 찾은 로그인 설정 화면에서 Continue를 누르고 · Authentication은 제작자 안내대로(Sign in now, Sign in when needed, No sign in) 고른 뒤 Add를 누르세요

    버튼이 안 되나요? 직접 입력하기

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    “Add” → “Custom” → “Web”를 누르고 이 2칸 채우기

    여기서 복사해 Claude의 같은 이름 칸에 붙여 넣고 Continue를 누르세요

    Name · 이름SwiftPieces MCP
    Remote MCP server URL · 주소https://swiftpieces.com/api/mcp
  2. 채팅에서 켜기

    +ConnectorsSwiftPieces MCP

  3. 해 보기

    SwiftPieces MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 SwiftPieces MCP을 쓰고 있다고 하거나 답에 SwiftPieces MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT 연결은 요금제에 따라 달라요

전체 MCP: 웹 ChatGPT Business, Enterprise, Edu · Pro: 읽기/가져오기 권한으로 연결, 데이터를 바꾸는 도구는 안 될 수 있어요 · Plus: 공식 문서 미확인, 플러그인 화면에 사용자 지정 MCP 추가 항목이 보이면 시도해 볼 수 있어요 · 웹만

  1. 웹 ChatGPT에서 MCP 추가 페이지 열기

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 이름과 주소 입력

    이름을 넣고 Connection에 주소를 붙여 넣은 뒤 경고에 체크하고 Create as a plugin을 누르세요

    Name · 이름SwiftPieces MCP
    Connection · 주소https://swiftpieces.com/api/mcp
  3. 채팅에서 SwiftPieces MCP 고르기

    새 채팅을 열고 입력 전에 플러그인 목록에서 SwiftPieces MCP을 고르세요

  4. 해 보기

    SwiftPieces MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ ChatGPT가 SwiftPieces MCP을 쓰고 있다고 하거나 답에 SwiftPieces MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 OpenAI 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Claude Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  2. 이 명령을 붙여 넣고 Enter

    claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcp
  3. Claude Code에서 /mcp 입력

    SwiftPieces MCP이 목록에 있고 연결됨으로 보이면 돼요

  4. 해 보기

    SwiftPieces MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 SwiftPieces MCP을 쓰고 있다고 하거나 답에 SwiftPieces MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  2. Cursor에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    SwiftPieces MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 SwiftPieces MCP을 쓰고 있다고 하거나 답에 SwiftPieces MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  2. VS Code에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    SwiftPieces MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 SwiftPieces MCP을 쓰고 있다고 하거나 답에 SwiftPieces MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

웹으로 연결하는 앱용 주소

주소https://swiftpieces.com/api/mcp

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? SwiftPieces MCP을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

웹으로 연결

Claude Code

claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "swiftpieces": {
      "url": "https://swiftpieces.com/api/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "swiftpieces": {
      "type": "http",
      "url": "https://swiftpieces.com/api/mcp"
    }
  }
}

팀이 만든 곳의 페이지를 보고 정리한 설정이에요. 다르면 만든 곳의 안내를 따르세요.

한눈에 보기

목록 ID (registry에 없음)
com.swiftpieces/mcp
주간 다운로드i
npm/PyPI에 없음
라이선스i
라이선스 표시 없음
연결 방식
클라우드에서 실행
도구 수
도구 7개 · 가벼움 이 MCP를 연결하면 모든 도구의 이름과 설명이 AI에 전달됩니다(쓰는 것만 불러오는 앱도 있음). 도구가 많을수록 채팅마다 AI가 기억할 수 있는 공간을 더 차지하고 도구를 잘못 고르기 쉬워집니다. 2026년 11월 25일에 서버가 저희 검사기에 보낸 도구 목록으로 셌습니다
전송 방식
streamable-http
최신 버전i
–
카테고리i
개발자 도구
팀이 추가한 날
2026년 11월 25일
코드 마지막 변경i
2026년 11월 25일
마지막 확인
2026년 11월 25일
제작자
Saivion
웹사이트
swiftpieces.com

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

인터넷으로 연결하는 앱

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

모든 앱과 장단점 →

할 수 있는 일

도구 이름과 설명은 서버가 2026년 11월 25일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.

  • get_design_skill

    App Design: the free SwiftPieces design method for any SwiftUI app. Load it before building, designing or polishing iPhone UI (screens, flows, onboarding, paywalls, navigation, motion), then follow it. Pass reference to read one of its references when the skill points to it.

  • search_pieces

    Search the free SwiftPieces registry by keyword, optionally filtered by category or minimum iOS version.

  • search_blocks

    Search SwiftPieces patterns, also called blocks (whole sections of a screen such as a chat thread, a prompt composer, a tab bar, a settings group, a form, a sheet, sign in or checkout), by keyword, optionally by category. Every pattern is in SwiftPieces Pro and installs from the

  • get_piece

    Return a free piece's or free block's full source, shaders, metadata and docs URL. A block lists the pieces it is built from in registryDependencies.

  • install_piece

    Return the files to write (path + content) so the agent can install a piece or block into an Xcode 16 synchronized folder, plus the equivalent CLI command. For a block, also install each name in registryDependencies (the pieces it is built from).

  • list_categories

    List free piece categories and pattern categories with counts, and links to the SwiftPieces Pro library (screens, patterns, flows and app templates).

  • get_liquid_glass_guide

    The rules for correct Liquid Glass adoption with verified iOS 26 API names.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 26일 점검

  • ✓ 통과

    제작자와 저장소 일치

    팀이 만든 곳의 페이지를 보고 추가했어요. 이 이름은 registry로 신원이 확인되지 않았어요.

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 어제

  • – 해당 없음

    라이선스 있음

    해당 없음: swiftpieces.com 소유자가 직접 운영하는 클라우드 서버라 저장소 코드를 실행하지 않아요

  • ✓ 통과

    엔드포인트 응답

    835ms 만에 응답(HTTP 200)

  • – 해당 없음

    OAuth로 로그인

    로그인 필요 없음

  • ✓ 통과

    도구 설명에 숨겨진 지시 없음

    도구 설명 7개를 읽었고, AI에게 보내는 숨겨진 지시는 없었어요

우리가 확인하는 것 → · JSON

제작자: 재확인 요청 또는 잘못된 정보 신고
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/swiftpieces-mcp.svg)](https://mcp.popnx.com/en/servers/swiftpieces-mcp)

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

로그인하고 리뷰 쓰기

개발자 도구 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 8006개 중 98%보다 스타가 많아요
  • 기본 점검 결과가 이 카테고리의 다른 서버 8006개 중 99%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

SwiftPieces MCP, 안전한가요?

해당하는 기본 점검 4개 중 4개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

팀이 만든 곳의 페이지를 보고 추가했어요. 이 이름은 registry로 신원이 확인되지 않았어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.

아직 관리되고 있나요?

팀이 2026년 11월 25일에 추가 · 마지막 코드 변경: 어제

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되므로 원격 MCP를 받는 앱에서도 쓸 수 있어요. 예: 웹 ChatGPT(Business 이상은 전체 MCP, Pro는 읽기 전용).

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

비슷하게 동작하는 다른 것

같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

제작자: ahmedkhaleel2004널리 사용됨★ 1.9만2개월 전 업데이트

바로 연결 (URL 있음)도구 3개 · 가벼움✓ 서비스 회사 · gitdiagram.comPopNx 팀이 직접 써 봄

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

제작자: Appllama널리 사용됨★ 5.7천3개월 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · appllama.io

Cloudflare MCP

Cloudflare MCP servers

제작자: cloudflare성장 중★ 4.5천14개월 전 업데이트

바로 연결 (URL 있음)도구 2개 · 가벼움✓ 서비스 회사 · mcp.cloudflare.comPopNx 팀이 직접 써 봄

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

제작자: omnara-ai널리 사용됨★ 3.5천2개월 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

제작자: repowise-dev널리 사용됨↓ 6.5천/주★ 8.3천 저장소 전체의 별4일 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · repowise.dev
비슷한 항목과 비교
이 항목
SwiftPieces MCP
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
실행 위치클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드 또는 컴퓨터 설치 모두 가능
키 필요아니요아니요아니요아니요아니요아니요
Claude에서 +로 추가아니요아니요아니요예아니요아니요
기본 점검4/44/44/44/44/45/5
라이선스NOASSERTIONMITMITApache-2.0Apache-2.0AGPL-3.0
가격등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

An open-source library of animated SwiftUI components.

swiftpieces.com · Components · Docs · Follow on X

SwiftPieces is a library of designed SwiftUI interactions: swipe decks, glass menus, floating docks, scrubbable charts. Not primitives, and not a dependency. Each piece is a single .swift file with a #Preview, built on Apple frameworks only, that you copy into your project and own outright. Motion, haptics and states are already done.

Quick start

Add any piece with the CLI:

npx swiftpieces add AssistantOrb

Several at once:

npx swiftpieces add AssistantOrb SwipeDeck GlassActionMenu

Or open the file on swiftpieces.com/components and copy it. There is nothing to install and no package to track.

98 pieces across 14 categories: text, backgrounds, Liquid Glass, buttons and controls, inputs and forms, cards, lists, navigation, sheets, feedback, motion, data and charts, AI and media.

Blocks: whole sections of a screen, laid out, wired and given their states: sign in, account settings, a stats overview, checkout and more. Blocks come with SwiftPieces Pro: npx swiftpieces add SignInBlock installs one with Pro's design system once your license is signed in. All blocks.

Guides: SwiftUI animations · SwiftUI buttons · SwiftUI cards · SwiftUI haptics · Loading states · Liquid Glass

Agent skill: App Design is a free skill for Claude Code, Cursor or Codex that makes any SwiftUI app better, with or without SwiftPieces: study real apps first, pick the right navigation, keep motion native, and record the whole flow in the simulator before calling a screen done. Copy the folder into your agent's skills folder, or run npx swiftpieces add tool-app-design.

What you get

  • iOS 17 baseline. Liquid Glass effects are gated behind #available(iOS 26, *) with a Material fallback, so a piece never fails to build on an older SDK.
  • Apple frameworks only. No third-party dependencies, ever. A .metal sibling ships alongside the .swift file where a shader is involved.
  • Accessible by default. Reduce Motion and Reduce Transparency are respected, colors are semantic, and Dynamic Type works.
  • Documented parameters. Every init parameter carries a doc comment, which becomes the parameters table on the site.
  • Type-checked in CI. Every piece is compiled against the iOS simulator SDK on every change, so an API that does not exist cannot land.

Sponsors

SwiftPieces is maintained by one developer and funded by its sponsors. Sponsorship pays for new free pieces, fixes for every iOS release, and the docs, CLI and MCP server.

[Become a sponsor](https://swiftpieces.com/sponsors) from $5 a month. Company tiers put your logo on swiftpieces.com, the docs and this README.

SwiftPieces Pro

The free library is the pieces and a first set of blocks. [Pro](https://pro.swiftpieces.com) is the layer above them: production-ready screens, more blocks, complete app templates, and the Build Kit, a set of agent skills that build the rest of your app in the same design language. One purchase, lifetime access.

Pro is closed source and lives in a private repository. This repo holds the free library and the site, and it stays that way.

Running locally

git clone https://github.com/Saivion/SwiftPieces.git

cd SwiftPieces npm install npm run brand:build # @swiftpieces/brand -> dist (first run only) npm run registry:build # .swift -> registry JSON, docs pages, llms.txt npm run dev

Use Node 22.22.0 or newer: .nvmrc pins 22.22.0, the line CI and Cloudflare's builds use. Pieces live in registry/swift/ /; after changing one, or registry.json, rerun npm run registry:build to regenerate the registry output.

PathPurpose
registry/swift/ /Source of truth. One .swift per piece with a // swiftpieces: header; .metal siblings for shaders.
registry/__registry__/Generated registry JSON. Do not hand-edit.
content/docs/Fumadocs content. Per-piece pages are generated.
app/Next.js App Router: marketing, docs, /api/registry/[name], /api/mcp, search.
components/previews/Web recreations of the pieces, used for live previews.
packages/cli/swiftpieces on npm: init, add, list, login, whoami.
packages/brand/@swiftpieces/brand on npm: tokens, Tailwind theme, shared primitives.
previews/Xcode preview harness and recorder.
scripts/Registry build, Swift type-check, preview recorder, bundle gate, public-safety audit.

Useful checks, all of which CI runs too:

npm run typecheck        # TypeScript

npm run swift:typecheck # every piece against the iOS simulator SDK npm run bundle:check # the Worker must stay under 8 MB compressed npm run audit:public # nothing Pro-shaped, nothing secret

Deployment, reviews and analytics (maintainers)

swiftpieces.com deploys from GitHub with Cloudflare Workers Builds. Nothing is deployed from a laptop: package.json has no deploy, upload or publish script, and the deploy commands below live only in the Workers Builds settings.

BranchWhat happens
mainBuilds and deploys to production (swiftpieces.com).
any other branch in this repoBuilds a preview version with its own URL. Production traffic is untouched.
a fork's branch, opened as a PRNot built. Cloudflare only sees branches in this repo.

A preview version runs with the production Worker's bindings and secrets, so only maintainers push branches here. Contributors work from forks.

GitHub Actions is here for safety and releases. The safety checks exist because this repo is public and takes contributions: ci.yml checks every push and PR for leaked secrets, Pro-only code, a stale registry, type errors and bundle size. swift.yml type-checks every piece against the iOS SDK, and runs only when Swift, Metal or the preview app changes. protected-files.yml fails a PR from a fork that changes dependency, CI, build, deploy or Xcode project files (the list is in CONTRIBUTING.md). release.yml publishes a GitHub release for every merge to main. It's the only workflow that writes to the repo, and all it writes is a tag and a release. Actions never deploys and holds no Cloudflare credentials; Cloudflare does the deploying.

Releases. Each merge to main is tagged with the next version, worked out from the Conventional Commit types since the last release: a feat bumps the minor version, a ! after any type (or a BREAKING CHANGE footer) bumps the major, and anything else bumps the patch. The notes group the changes by type and link each pull request. Put [skip release] in the squash commit's message to hold a merge back, and the next release lists it. Actions › Release › Run workflow releases main by hand or forces a bump.

Reviewing a PR from a fork. The fork's branch never exists in this repo, but every PR does, as refs/pull/ /head. Read it under Files changed on GitHub, or with gh pr diff , and look at the Protected files check first. To run it, check it out into a worktree of its own:

git fetch origin pull/35/head:pr-35

git worktree add ../SwiftPieces-pr-35 pr-35

A worktree holds only tracked files, so .env.local and .dev.vars aren't there for the PR's code to read. It doesn't hide your Cloudflare, npm or GitHub logins, so read the diff before running anything, and if a package.json or package-lock.json changed, read that before npm install. To push a fix to the contributor's branch, check it out with gh pr checkout or GitHub Desktop's pull request list instead; both add the fork as a remote. When you're done: git worktree remove ../SwiftPieces-pr-35 && git branch -D pr-35.

Workers Builds settings (Cloudflare dashboard → Workers → swiftpieces → Settings → Build):

SettingValue
Git repositorythis repo, production branch main
Build commandnpm run cf:build
Deploy commandnpx opennextjs-cloudflare deploy
Non-production branch deploy commandnpx opennextjs-cloudflare upload
Builds for non-production brancheson
Build variablesNODE_VERSION = 22.23.4, NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN, NEXT_PUBLIC_POSTHOG_HOST and NEXT_PUBLIC_DATABUDDY_CLIENT_ID (optional)

Build variables are read while building, not by the running Worker. PostHog and Databuddy only start on swiftpieces.com itself, so preview URLs and local builds never count toward the numbers.

ISR cache retention. The prerendered pages and ISR entries live in the swiftpieces-cache R2 bucket under incremental-cache/ /. Every deploy and every preview upload writes the whole site again under a new build ID, about 160 MB, and nothing reads the old build's copy after that. R2 has no per-object expiry, so a lifecycle rule on the bucket removes cache entries a week after they were last written:

npx wrangler r2 bucket lifecycle add swiftpieces-cache expire-isr-cache incremental-cache/ --expire-days 7

npx wrangler r2 bucket lifecycle list swiftpieces-cache

Or in the dashboard: R2 → swiftpieces-cache → Settings → Object lifecycle rules → Add rule, prefix incremental-cache/, delete objects 7 days after upload. Only that prefix is affected. The VIEWS KV namespace (view count, star count

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요