मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)5.2k · #15030

build-with-tinybase

यह क्या करती है

यह समझाती है कि TinyBase को इस तरह कैसे सेट करें कि डेटा डिवाइस पर रहे, और चाहें तो डिवाइसों के बीच सिंक भी हो। यह JavaScript या TypeScript में TinyBase ऐप बनाने वाले डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप JavaScript या TypeScript ऐप बनाना चाहते हैं जो डेटा ब्राउज़र या डिवाइस पर रखे।
  • ✓जब आप TinyBase स्टोर के लिए सेविंग या सिंक सेट करना चाहते हैं।
  • ✓जब आप जेनरेट किए गए स्टार्टर से नया TinyBase ऐप बनवाना चाहते हैं।

Skill का लिंक

https://github.com/tinyplex/tinybase/blob/main/docs/skills/build-with-tinybase/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/tinyplex/tinybase/blob/main/docs/skills/build-with-tinybase/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“TinyBase से एक छोटा टू-डू ऐप बनाइए जो ब्राउज़र में डेटा सहेजे और मेरे दो डिवाइसों के बीच सिंक हो।”

हर हफ़्ते 5 नई skills, 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 के विवरण के लिए अपनी याददाश्त पर भरोसा करता है?

नहीं। स्किल कहती है कि कोड लिखने से पहले संदर्भ गाइड पढ़े जाएँ।

क्या डेटा डिवाइसों के बीच सिंक हो सकता है?

हाँ। स्किल WebSockets या 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
अपडेट की गई
22/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

मिलती-जुलती skills