This is a Vite template for a simple TinyBase app, using TypeScript and React, demonstrating the TinyBase ui-react-dom module UI components and PGlite persistence.
![image](https://private-user-images.githubusercontent.com/90942/361254452-758c728e-7775-41ab-8e66-f67adfce4104.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDI1NzAsIm5iZiI6MTczOTA0MjI3MCwicGF0aCI6Ii85MDk0Mi8zNjEyNTQ0NTItNzU4YzcyOGUtNzc3NS00MWFiLThlNjYtZjY3YWRmY2U0MTA0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE5MTc1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzOGI2MTQxNjAwMmJkM2EyMjUxMmI2ZWIzZDEzNTQ4MGQ3ZjY2OTM3NzhlZDI1YWMyNjBiYmVlNzAxZTgxZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.30zC5W0wptboPTk9mJTI1P35fgIz_-_fOvdHbA4Dd4w)
- Make a copy of this template into a new directory:
npx tiged tinyplex/vite-tinybase-ts-react-pglite my-tinybase-app
- Go into the directory:
cd my-tinybase-app
- Install the dependencies:
npm install
- Run the application:
npm run dev
- Go the URL shown and enjoy!
There are eleven templates for TinyBase, of which this is one:
Template | Language | React | Plus | |
---|---|---|---|---|
vite-tinybase | JavaScript | No | ||
vite-tinybase-ts | TypeScript | No | ||
vite-tinybase-react | JavaScript | Yes | ||
vite-tinybase-ts-react | TypeScript | Yes | ||
vite-tinybase-ts-react-sync | TypeScript | Yes | Synchronization | |
vite-tinybase-ts-react-sync-durable-object | TypeScript | Yes | Sync & Durable Objects | |
👉 | vite-tinybase-ts-react-pglite | TypeScript | Yes | PGlite |
vite-tinybase-ts-react-crsqlite | TypeScript | Yes | CR-SQLite | |
tinybase-ts-react-partykit | TypeScript | Yes | PartyKit | |
tinybase-ts-react-electricsql | TypeScript | Yes | ElectricSQL | |
expo/examples/with-tinybase | JavaScript | Yes | React Native & Expo |
This template has no license, and so you can use it however you want! TinyBase and Vite themselves are both MIT licensed.