build-with-tinybase
하는 일
데이터를 기기에 보관하도록 TinyBase를 설정하는 방법을 설명하며, 선택적으로 기기 간 동기화도 다룹니다. TinyBase로 JavaScript나 TypeScript 앱을 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓데이터를 브라우저나 기기에 보관하는 JavaScript나 TypeScript 앱을 만들고 싶을 때.
- ✓TinyBase 저장소의 저장이나 동기화를 설정하고 싶을 때.
- ✓생성된 시작 템플릿으로 새 TinyBase 앱을 만들고 싶을 때.
스킬 링크
https://github.com/tinyplex/tinybase/blob/main/docs/skills/build-with-tinybase/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“TinyBase로 작은 할 일 앱을 만들어 주세요. 브라우저에 데이터를 저장하고 제 기기 두 대 사이에서 동기화되게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 코드를 쓰기 전에 TinyBase 참고 가이드를 읽고, 저장소, 저장 계층, 동기화 계층을 올바른 순서로 설정합니다. 그다음 동작이 제대로 되는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Build With TinyBase
Prefer a current generated application over reconstructing TinyBase setup from memory. Preserve persistence and synchronization lifecycle ordering, and verify the behavior the user actually needs.
Read The References
Do not recall TinyBase API details from memory. Read the reference covering the task before writing code:
| Reference | Read it when |
|---|---|
| references/architecture.md | Choosing between Store and MergeableStore, a persistence backend, a synchronization approach, or UI bindings |
| references/import-paths.md | Importing anything outside the tinybase root, or checking which Persisters accept a MergeableStore |
| references/lifecycle.md | Creating, starting, reconnecting, or destroying a Persister or Synchronizer, or setting WebSocket paths and channel Ids |
| references/durable-objects.md | Building or debugging a Cloudflare Durable Object sync server |
Select The Architecture
Read references/architecture.md when choosing between Store and MergeableStore, persistence backends, synchronization, or UI bindings.
Confirm that TinyBase fits the task:
- Keep the active application dataset in a JavaScript runtime.
- Use TinyBase for reactive tabular or key-value data, local-first behavior, persistence, synchronization, or framework bindings.
- Do not present TinyBase as a hosted database service.
- Pair it with another database or service when the authoritative dataset is unbounded, primarily queried on a server, or requires managed backend facilities.
Scaffold A New Application
Inspect the installed generator contract first:
npm create tinybase@latest -- --list-options
Translate the user's requirements into explicit values. Generate unattended projects with every applicable option and always disable automatic installation and server startup:
npm create tinybase@latest -- \
--non-interactive \
--projectName my-tinybase-app \
--appType todos \
--language typescript \
--framework react \
--tinyWidgets false \
--schemas true \
--syncType none \
--persistenceType local-storage \
--prettier true \
--eslint true \
--installAndRun false
Run the generator in the parent directory that should contain the new project. Do not overwrite an existing directory. After generation:
- Read the generated
AGENTS.mdandREADME.md. - Inspect the primary Store file before modifying application code.
- Install dependencies only when authorized and required.
- Make application-specific changes within the generated architecture.
- Run the generated client build.
- Run the server build when server code changed.
Extend An Existing Application
Inspect package.json, TinyBase imports, Store creation, Persister setup, and
Synchronizer setup before editing. Use documentation matching the installed
TinyBase version. Start at https://tinybase.org/llms.txt or retrieve current
TinyBase documentation through Context7 when available.
Keep these boundaries clear:
- Store creation and schemas
- persistence startup and teardown
- synchronization startup and teardown
- framework Provider or context wiring
- application-specific data and UI
Reuse existing imports and patterns when they are current. Import integrations
from their specific tinybase/... subpaths. Avoid adding a second source of
truth in component state for data already owned by TinyBase.
Avoid These Errors
These account for most incorrect TinyBase code. Each is covered in detail by a reference above.
- Passing a Store where a MergeableStore is required. Every Synchronizer, and
every Durable Object Persister, requires
createMergeableStore(). - Importing an integration from
tinybaseinstead of its owntinybase/persisters/...,tinybase/synchronizers/..., ortinybase/schematizers/...subpath. - Starting auto-saving before loading, which overwrites stored data wi
자주 묻는 질문
에이전트가 TinyBase 세부 내용을 기억에만 의존하나요?
아니요. 코드를 쓰기 전에 참고 가이드를 읽으라고 스킬이 말합니다.
데이터가 기기 사이에서 동기화되나요?
네. 스킬은 WebSocket이나 Cloudflare Durable Objects를 통해 저장소를 동기화하는 방법을 다룹니다.
데이터베이스에 저장하는 것도 다루나요?
네. 브라우저나 데이터베이스 영속성 설정을 다룹니다.
상세 정보
작성자의 원본 설명
Scaffold, extend, and verify reactive local-first JavaScript or TypeScript applications with TinyBase. Use when choosing TinyBase for in-memory tabular or key-value state, generating an app with create-tinybase, adding schemas or UI bindings, resolving TinyBase import paths, configuring browser or database persistence, configuring MergeableStore synchronization over WebSockets or Cloudflare Durable Objects, or diagnosing an existing TinyBase application.
repo: tinyplex/tinybase
인기도
- GitHub 스타
- 5.2k
- 순위
- #15030
- 라이선스
- MIT
- 업데이트
- 2026. 10. 22.
댓글
- …
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.