TinyBase logoTinyBase

Demos

This is a selection of demos that show how TinyBase can be used in real-world applications.

TinyHub

TinyHub is a blazingly fast local-first GitHub client, built in public, using TinyBase, React, and GitHub OAuth. You can try it out here.

TinyRooms

TinyRooms is a local-first app demo, using TinyBase, PartyKit, and optional GitHub OAuth. You can try it out here.

Even the search feature on this site is powered by TinyBase! The summaries of all the API documents and guides are loaded into a local Store, indexed in your browser, and bound to the UI with vanilla JavaScript. The code, if you're curious, is here.

create-tinybase

You can also use a tool called create-tinybase to build simple demo apps and then extend them to create a full apps of your own. Simply run the following command to get started:

npm create tinybase@latest

This tool provides the following templates to get started with:

  • Todos: a simple todo list app with support for adding, editing, and deleting tasks.
  • Chat: a real-time chat app with support for multiple rooms and message history.
  • Drawing: a collaborative drawing app with support for multiple users and real-time updates.
  • Tic-tac-toe: a turn-based tic-tac-toe game with computed game state and win detection.

You can also configure these templates with different options, such as using TypeScript or JavaScript, adding persistence with SQLite or PGlite, and enabling synchronization with a remote server or Durable Objects.

On-site Demos

For the main set of TinyBase demos on this site, we start with the obligatory 'Hello World' example, and then advance from there. Some demos have multiple versions which start simple and then gain additional functionality with subsequent iterations.

For a 'kitchen-sink' demo that shows TinyBase really being put through its paces, take a look at the Drawing demo.

This set of demos should grow over time, so keep checking back!

Hello World

These demos demonstrate the absolute basics of using TinyBase, with an obligatory 'Hello World' example. Read more.

Rolling Dice

These demos demonstrate metrics (such as average dice rolls) and indexes (such as grouping multiple dice rolls). Read more.

Countries

In this demo, we build a simple app that uses React and a simple Store object to load and display country data. Read more.

Todo App

These demos demonstrate how to build a classic 'Todo' app, with successive levels of complexity. Read more.

Drawing

In this demo, we build a more complex drawing app, using many of the features of TinyBase together. Read more.

City Database

In this demo, we build an app that loads over 140,000 records to push the size and performance limits of TinyBase. Read more.

Car Analysis

In this demo, we build an app that showcases the query capabilities of TinyBase v2.0, grouping and sorting dimensional data for lightweight analytical usage. Read more.

Movie Database

In this demo, we build an app that showcases the relational query capabilities of TinyBase v2.0, joining together information about movies, directors, and actors. Read more.

Word Frequencies

In this demo, we load the list of the 10,000 most common words in English, index them for a fast search experience, and showcase TinyBase v2.1's ability to register a Row in multiple Slice arrays of an Index. Read more.

UI Components

In this set of demos, we use a Store containing some sample data to showcase the UI components in the ui-react-dom module. Read more.