build-with-tinybase
Skill5.2k starsChanged 2 years agoMITView on GitHub
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.
Trending
Quiet since September.about the whole repository
Who's talking about tinyplex/tinybase
- @fubits.dev“🧡 Who’s gonna be the 5000th ⭐️ on GitHub? github.com/tinyplex/tin...”Bluesky · Apr 6, 2026 · 7 likes
- A Hacker News story“TinyBase: Reactive data store for local‑first apps”Hacker News · Jul 25, 2024 · 3 points
- jldec/agents-chat“Update tinybase example to use new sqlite persistence”GitHub · Jun 21, 2025 · 1 reactions
- @tokono.ma“@rosano.ca Some inspiration for our project: github.com/tinyplex/tin... See persisters in src. This looks …”Bluesky · Mar 26, 2024 · 1 likes
- A Hacker News story“TinyBase can now persist data to IndexedDB”Hacker News · Sep 7, 2023 · 1 points
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub, Hacker News and Bluesky (23 times).
On GitHub · 19
- Jun 21, 2025Update tinybase example to use new sqlite persistence — jldec/agents-chat1 reaction
- Sep 6, 2026chore(deps): Bump the production-minor-patch group with 8 updates — e-krebs/coche0 reactions
- Jul 12, 2026chore(deps): bump the npm-dependencies group across 1 directory with 21 updates — Lumysia/OpenBrowserAgent0 reactions · 1 comment
- Jun 28, 2026chore(deps): bump the npm-dependencies group across 1 directory with 20 updates — Lumysia/OpenBrowserAgent0 reactions · 1 comment
- Jun 21, 2026chore(deps): bump the npm-dependencies group across 1 directory with 18 updates — Lumysia/OpenBrowserAgent0 reactions · 1 comment
14 more on GitHub
- Jun 7, 2026chore(deps): bump the npm-dependencies group across 1 directory with 17 updates — Lumysia/OpenBrowserAgent0 reactions · 1 comment
- May 31, 2026chore(deps): bump the npm-dependencies group across 1 directory with 3 updates — Lumysia/OpenBrowserAgent0 reactions · 1 comment
- Feb 21, 2026chore(deps): bump tinybase from 7.3.4 to 7.3.5 — mikesprague/birdle0 reactions
- Feb 16, 2026chore(deps): bump tinybase from 7.3.3 to 7.3.4 — mikesprague/birdle0 reactions
- Feb 12, 2026chore(deps): bump tinybase from 7.3.2 to 7.3.3 — mikesprague/birdle0 reactions
- Jan 20, 2026chore(deps): bump tinybase from 7.3.1 to 7.3.2 — mikesprague/birdle0 reactions
- Jun 21, 2025bump deps, fixes tinybase issue — jldec/agents-chat0 reactions
- Jun 8, 2025phantom messages when using TinyBase chat from multiple tabs — jldec/agents-chat0 reactions · 1 comment
- May 5, 2025implement partial load from postgres — appear-sh/tinybase0 reactions
- Sep 23, 2024Need to wait a second before the first page.goto with Puppeteer 23.4 — argos-ci/jest-puppeteer0 reactions · 1 comment
- Mar 9, 2024Find in-memory DB implemented on JS — DeepinkApp/deepink0 reactions · 2 comments
- Mar 16, 2023Tinybase — arn4v/offline-first0 reactions
- Sep 25, 2022Update dependency tinybase to v2 - autoclosed — generates/crib0 reactions
- Feb 27, 2022Update dependency tinybase to ^1.3.6 — generates/crib0 reactions
On Hacker News · 2
- Jul 25, 2024TinyBase: Reactive data store for local‑first apps3 points · 2 comments
- Sep 7, 2023TinyBase can now persist data to IndexedDB1 point
On Bluesky · 2
- Apr 6, 2026🧡 Who’s gonna be the 5000th ⭐️ on GitHub? github.com/tinyplex/tin... — @fubits.dev7 likes and reposts
- Mar 26, 2024@rosano.ca Some inspiration for our project: github.com/tinyplex/tin... See persisters in src. This looks interesting, but it is a… — @tokono.ma1 likes and repost · 1 reply
In this repository3 other files it gives its agents.
- agents.mdAGENTS.md
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Prefer a current generated application over reconstructing TinyBase setup from memory.
- Very specific: line 14
Do not recall TinyBase API details from memory.
- Distinctive: line 26
Read references/architecture.md when choosing between Store and MergeableStore, persistence backends, synchronization, or UI bindings.
- Distinctive: line 32
Keep the active application dataset in a JavaScript runtime.
- Very specific: line 33
Use TinyBase for reactive tabular or key-value data, local-first behavior, persistence, synchronization, or framework bindings.
- Very specific: line 35
Do not present TinyBase as a hosted database service.
- Distinctive: line 68
Run the generator in the parent directory that should contain the new project.
- Distinctive: line 69
Do not overwrite an existing directory.
- Distinctive: line 71
Read the generated AGENTS.md and README.md.
- Distinctive: line 75
Run the generated client build.
- Distinctive: line 76
Run the server build when server code changed.
- Distinctive: line 85
Keep these boundaries clear:
- Distinctive: line 124
Run the project's build or type check after code changes.
- Distinctive: line 128
Test reconnection when synchronization behavior changes.
- Distinctive: line 132
Do not treat compilation alone as proof of persistence or synchronization.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-optionsTranslate 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 falseRun 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 with an
empty Store. Use
startAutoPersisting(). - Forgetting
await synchronizer.startSync()afterawait createWsSynchronizer(...), which resolves a Synchronizer that is not yet synchronizing. - Omitting
destroy(), which leaks sockets and duplicates synchronization under React strict mode. - Confusing the WebSocket path with a channel Id. The path selects the room; the
channel Id multiplexes several Stores over one socket, and is unsupported by
WsServerDurableObject. - Inventing Durable Object APIs. The server surface is
WsServerDurableObjectandgetWsServerDurableObjectFetch, and nothing else.
Verify The Outcome
Match verification to the requested behavior:
- Run the project's build or type check after code changes.
- For persistence, change data and perform a real reload or restart.
- For synchronization, connect two clients to the same channel or room and confirm changes propagate in both directions.
- Test reconnection when synchronization behavior changes.
- Confirm schema rejection and inferred types when changing schemas.
- Report any verification that could not be performed.
Do not treat compilation alone as proof of persistence or synchronization.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

