ข้ามไปที่เนื้อหา

นับการเปิดหน้าและการคลิกโปรเจกต์ด้วย PostHog (เซิร์ฟเวอร์ EU) ไหม โหลดเมื่อคุณกดอนุญาตเท่านั้น ความเป็นส่วนตัว

Snippets live preview
โปรเจกต์ทั้งหมด

Snippets

Find and copy a reusable code pattern in seconds from one small catalog.

Frequently reused code — Docker configs, CI templates, CSS utilities — was scattered across repos and gists with no fast way to find it again.

Tech Domain · Book Dev|เผยแพร่แล้ว|หลักฐาน: ต้นแบบ|Next.js, TypeScript

มีต้นแบบสาธารณะเพื่อแสดง interaction โดยจำกัดขอบเขตและข้อมูลไว้อย่างชัดเจน

กรณีศึกษา

ก่อนใช้งาน

Frequently used code patterns (Docker configs, CI/CD templates, CSS utilities) were scattered across repos, gists, and local files. Finding the right snippet when needed wasted development time.

หลังใช้งาน

The page lets you search, filter, and copy the sample snippets, and MCP clients can list, fetch, or search the same catalog.

วิธีแก้ปัญหา

Built a snippet page, now at /snippets in the Devtools Workbench suite: a hardcoded catalog you can search by title, language, or tag, filter by group, read with line numbers, and copy in one click. The same catalog is served read-only through a JSON-RPC MCP endpoint (POST /api/snippets/mcp).

สิ่งที่ยังไม่แก้

The catalog is three authored sample snippets with no syntax highlighting. You cannot add, save, or share your own, and search does not look inside the code.

บทความที่เกี่ยวข้อง

อ่านเพิ่มเติมในหัวข้อที่เกี่ยวข้องจากบล็อก

โปรเจกต์ที่เกี่ยวข้อง

เพิ่มเติมใน Tech Domain · Book Dev