본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)5.2k · #15030

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tinyplex/tinybase/blob/main/docs/skills/build-with-tinybase/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. Read the generated AGENTS.md and README.md.
  2. Inspect the primary Store file before modifying application code.
  3. Install dependencies only when authorized and required.
  4. Make application-specific changes within the generated architecture.
  5. Run the generated client build.
  6. 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 tinybase instead of its own tinybase/persisters/..., tinybase/synchronizers/..., or tinybase/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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬