ใช้ทำอะไรได้
MCP สาธารณะของ SwiftPieces ให้ AI ค้นชิ้นส่วน SwiftUI (search_pieces) และบล็อกหน้าจอ (search_blocks) ที่มีแอนิเมชันและการสั่นในตัว แล้วนำไฟล์ .swift ไปใส่โปรเจกต์ iOS ไม่ต้องมีบัญชี
เรียบเรียงโดย PopNx MCP จากข้อมูลของผู้ทำ
- ต่อแบบ คลาวด์ (ต่อผ่านอินเทอร์เน็ต)
- บัญชีหรือคีย์ ไม่ต้องใส่คีย์
- หมวด เครื่องมือนักพัฒนา
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
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 ขั้น
- ติดตั้งหรือต่อ
วาง URL นี้ในแอปที่รองรับ MCP แบบ remote
https://swiftpieces.com/api/mcp - คีย์และค่าตั้ง
ไม่ต้องใส่คีย์
- ลองสั่งครั้งแรก
ขอให้ใช้เครื่องมือ
get_design_skillซึ่งผู้ทำอธิบายว่าApp Design: the free SwiftPieces design method for any SwiftUI app.
สร้างจากข้อมูลติดตั้งที่ตัวตรวจของเรายืนยันแล้ว
ราคาและที่มาของรายการนี้
ไม่อยู่ใน Official MCP Registry · ทีมเพิ่มเองหลังตรวจ
- สัญญาอนุญาต MIT + Commons Clause: ใช้ในแอปหรือเว็บเชิงพาณิชย์ได้ แต่ห้ามขาย ให้สิทธิ์ต่อ หรือแจกจ่ายตัว component เอง ไม่ว่าแยกชิ้นหรือรวมชุด
- รุ่น Pro (หน้าจอ แม่แบบแอป และบล็อกเพิ่ม) เป็นโค้ดปิด ราคา $199 ซื้อครั้งเดียว · บล็อกบางชุดติดตั้งได้เมื่อล็อกอินด้วยใบอนุญาต Pro
ตรวจกับไฟล์ของผู้ทำเมื่อ 25 พ.ย. 2569 · github.com/Saivion/SwiftPieces/blob/main/LICENSE · swiftpieces.com/pro
- ทีมเพิ่มเมื่อ
- 25 พ.ย. 2569
ตรวจกับหน้าของผู้ทำล่าสุด 25 พ.ย. 2569 · github.com/Saivion/SwiftPieces/blob/main/README.md
ขึ้นเองใน 1 คลิก
สร้างสำเนาของ server นี้บนบัญชีของคุณเอง แล้วได้ URL ของตัวเอง PopNx MCP ไม่ได้รันโค้ดนี้ให้
- ขึ้นบน Cloudflare Workers ↗repo มีไฟล์ wrangler.jsonc (ตั้งค่า Cloudflare Workers) แต่ผู้ทำไม่ได้ใส่ปุ่มเอง อาจต้องตั้งค่าเพิ่ม เช่นคีย์หรือฐานข้อมูล
ตรวจจากไฟล์ใน repo เมื่อ 25 พ.ย. 2569 · วิธีขึ้น MCP เองแบบอื่น →
ใช้คู่กับ
Skill ที่สอน AI ทำงานแบบนี้ ใช้ร่วมกับตัวนี้ได้
andrej-karpathy-skills
andrej-karpathy-skills เป็นไฟล์ CLAUDE.md ไฟล์เดียวที่ใช้ปรับพฤติกรรมของ Claude Code ให้ดีขึ้น โดยอ้างอิงจากข้อสังเกตของ Andrej Karpathy เกี่ยวกับข้อผิดพลาดที่พบบ่อยเมื่อ LLM เขียนโค้ด
ทำไมอยู่อันดับนี้
ตัวนี้อยู่ในแท็บ "แอปที่ต่อกับ AI" ซึ่งเรียงโดยไม่ใช้ดาว ตามลำดับเหล่านี้
| 1. อยู่ในสมุด connector ของ 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 จะอ่านขั้นตอนจากเรา แสดงคำสั่งให้ดู และรอคุณตกลงก่อน · ไม่ต้องใช้คีย์ ไม่ต้องสมัคร · ดูข้อความเต็มที่ AI จะอ่าน
ผลตรวจผ่าน 4/4 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (swiftpieces.com) · ✓ ตรวจคำสั่งแล้ว 25 พ.ย. 2569
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว · แผน Team/Enterprise ให้เจ้าของ (Owner) เป็นคนเพิ่ม
กดปุ่มนี้ Claude จะเปิดหน้าเพิ่ม connector ที่กรอกไว้ให้แล้ว
เพิ่ม SwiftPieces MCP ใน Claude ↗
ชื่อกับที่อยู่ถูกกรอกให้แล้ว ตรวจแล้วกด Add · ถ้ายังไม่ได้ล็อกอิน Claude จะให้ล็อกอินก่อน
กด Continue ผ่านหน้าตรวจการล็อกอินที่ Claude ตรวจเจอ · หัวข้อ Authentication เลือกตามที่ผู้ทำบอก (Sign in now, Sign in when needed หรือ No sign in) แล้วกด Add
ปุ่มไม่ทำงาน? กรอกเองทีละช่อง
CustomizeConnectors
กด “Add” → “Custom” → “Web” แล้วกรอก 2 ช่องนี้
คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue
Name · ชื่อSwiftPieces MCPRemote MCP server URL · ที่อยู่https://swiftpieces.com/api/mcpเปิดใช้ในแชต
+ConnectorsSwiftPieces MCP
ลองเลย
ใช้ SwiftPieces MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ SwiftPieces MCP หรือมีชื่อเครื่องมือของ SwiftPieces MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ ChatGPT ได้ ขึ้นกับแผน
MCP แบบเต็ม: ChatGPT Business, Enterprise หรือ Edu บนเว็บ · Pro: ต่อได้ด้วยสิทธิ์อ่านและดึงข้อมูล เครื่องมือที่แก้ข้อมูลอาจใช้ไม่ได้ · Plus: เอกสารยังไม่ยืนยัน ถ้าเห็นเมนูเพิ่ม MCP แบบกำหนดเองในหน้าปลั๊กอิน ลองตามขั้นตอนได้ · ใช้บนเว็บเท่านั้น
เปิดหน้าเพิ่ม MCP ของ ChatGPT บนเว็บ
Plugins+Add custom MCP server
กรอกชื่อและที่อยู่
ใส่ชื่อ แล้ววางที่อยู่ใต้ Connection ติ๊กยอมรับคำเตือน แล้วกด Create as a plugin
Name · ชื่อSwiftPieces MCPConnection · ที่อยู่https://swiftpieces.com/api/mcpเลือก SwiftPieces MCP ในแชต
เปิดแชตใหม่แล้วเลือก SwiftPieces MCP จากรายการปลั๊กอินก่อนพิมพ์
ลองเลย
ใช้ SwiftPieces MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า ChatGPT บอกว่ากำลังใช้ SwiftPieces MCP หรือมีชื่อเครื่องมือของ SwiftPieces MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ OpenAI เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Claude Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิด Terminal
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
วางคำสั่งนี้แล้วกด Enter
claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcpพิมพ์ /mcp ใน Claude Code
ต้องเห็น SwiftPieces MCP ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ลองเลย
ใช้ SwiftPieces MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ SwiftPieces MCP หรือมีชื่อเครื่องมือของ SwiftPieces MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน Cursor โหมด Agent
ลองเลย
ใช้ SwiftPieces MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ SwiftPieces MCP หรือมีชื่อเครื่องมือของ SwiftPieces MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน VS Code โหมด Agent
ลองเลย
ใช้ SwiftPieces MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ SwiftPieces MCP หรือมีชื่อเครื่องมือของ SwiftPieces MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม
ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ
https://swiftpieces.com/api/mcpค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON
ต่อผ่านเว็บ
Claude Code
claude mcp add --transport http --scope user swiftpieces https://swiftpieces.com/api/mcpCursor (~/.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"
}
}
}ค่าตั้งนี้ทีมเรียบเรียงจากหน้าของผู้ทำ ถ้าไม่ตรงกัน ให้เชื่อหน้าของผู้ทำ
สรุป
- รหัสรายการ (ไม่อยู่ใน registry)
com.swiftpieces/mcp- ดาว GitHubi
- 320
- ดาวน์โหลดต่อสัปดาห์i
- ไม่มียอดใน npm/PyPI
- การเชื่อมต่อ
- รันบนคลาวด์
- จำนวนเครื่องมือ
- เครื่องมือ 7 ตัว · เบา รายชื่อเครื่องมือทุกตัวถูกส่งให้ AI อ่านเมื่อต่อ MCP นี้ (บางแอปโหลดเฉพาะตัวที่ใช้) ยิ่งมากยิ่งกินพื้นที่ที่ AI จำได้ในแต่ละแชต และ AI เลือกเครื่องมือผิดง่ายขึ้น นับจากรายชื่อเครื่องมือที่ server ตอบตัวตรวจของเรา 25 พ.ย. 2569
- ช่องทาง (transport)
- streamable-http
- รุ่นล่าสุดi
- –
- ทีมเพิ่มเมื่อ
- 25 พ.ย. 2569
- แก้โค้ดล่าสุดi
- 25 พ.ย. 2569
- ตรวจล่าสุดเมื่อ
- 25 พ.ย. 2569
- ผู้ทำ
- Saivion
- เว็บผู้ทำ
- swiftpieces.com
ใช้กับโปรแกรมไหนได้
ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ต่อผ่านคลาวด์ได้ใน
ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
คู่มือที่เกี่ยวข้อง
ทำอะไรได้บ้าง
ชื่อและคำอธิบายเครื่องมือตามที่ server ตอบมาเมื่อ 25 พ.ย. 2569 ผู้ทำเป็นคนเขียน ไม่ใช่เรา แสดงเป็นข้อความล้วน
get_design_skillApp 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_piecesSearch the free SwiftPieces registry by keyword, optionally filtered by category or minimum iOS version.
search_blocksSearch 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_pieceReturn 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_pieceReturn 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_categoriesList free piece categories and pattern categories with counts, and links to the SwiftPieces Pro library (screens, patterns, flows and app templates).
get_liquid_glass_guideThe rules for correct Liquid Glass adoption with verified iOS 26 API names.
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 26 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ทีมเพิ่มจากหน้าของผู้ทำ ชื่อนี้ไม่ได้ยืนยันตัวตนผ่าน registry
- ✓ ผ่าน
ยังมีคนดูแล
มีการแก้โค้ดล่าสุด เมื่อวาน
- – ไม่เกี่ยว
มีสัญญาอนุญาต (license)
ไม่เกี่ยว: server บนคลาวด์ของเจ้าของ swiftpieces.com เอง คุณไม่ได้รันโค้ดจากรีโป
- ✓ ผ่าน
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ไม่ต้องล็อกอิน
- ✓ ผ่าน
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
อ่านคำอธิบายเครื่องมือ 7 ตัวแล้ว ไม่พบคำสั่งแอบแฝงถึง AI
ผู้ทำ: ขอให้ตรวจใหม่ หรือแจ้งข้อมูลผิด
สำหรับผู้ทำ: ติดป้ายใน README
ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้
[](https://mcp.popnx.com/th/servers/swiftpieces-mcp)พูดคุย
ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
รีวิวจากผู้ใช้
ยังไม่มีรีวิว
เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi
- ดาวมากกว่า 98% ของอีก 7984 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 99% ของอีก 7984 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
SwiftPieces MCP ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 4 จาก 4 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
ทีมเพิ่มจากหน้าของผู้ทำ ชื่อนี้ไม่ได้ยืนยันตัวตนผ่าน registry
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนคลาวด์ของผู้ทำ ต่อผ่านอินเทอร์เน็ตได้เลย ไม่ต้องลงโปรแกรม แต่ข้อมูลที่ส่งให้จะผ่านเซิร์ฟเวอร์ของผู้ทำ
ยังมีคนดูแลอยู่ไหม?
ทีมเพิ่มรายการนี้เมื่อ 25 พ.ย. 2569 · แก้โค้ดล่าสุด: เมื่อวาน
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT บนเว็บ (แบบเต็มในแผน Business ขึ้นไป · Pro แบบอ่านอย่างเดียว)
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
ตัวอื่นที่ทำงานคล้ายกัน
หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| ตัวนี้ SwiftPieces MCP | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| ทำงานที่ไหน | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | มีทั้งบนคลาวด์และแบบลงเครื่อง |
| ต้องใส่คีย์ | ไม่ | ไม่ | ไม่ | ไม่ | ไม่ | ไม่ |
| กด + ใน Claude ได้ | ไม่ | ไม่ | ไม่ | ใช่ | ไม่ | ไม่ |
| ผลตรวจเบื้องต้น | 4/4 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| สัญญาอนุญาต | NOASSERTION | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| ราคา | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน |
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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
.metalsibling ships alongside the.swiftfile 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.
| Path | Purpose |
|---|---|
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.
| Branch | What happens |
|---|---|
main | Builds and deploys to production (swiftpieces.com). |
| any other branch in this repo | Builds a preview version with its own URL. Production traffic is untouched. |
| a fork's branch, opened as a PR | Not 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):
| Setting | Value |
|---|---|
| Git repository | this repo, production branch main |
| Build command | npm run cf:build |
| Deploy command | npx opennextjs-cloudflare deploy |
| Non-production branch deploy command | npx opennextjs-cloudflare upload |
| Builds for non-production branches | on |
| Build variables | NODE_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