Expo Book Demo
The fastest way to understand how Hypertill DB works in a real mobile app is the TypeScript Expo example:
What the demo covers
Booksscreen with create, edit, delete, and navigation actionsChaptersscreen scoped to one bookNotesscreen for both book notes and chapter notes- separate
src/dbfiles for schema, models, database bootstrap, queries, and actions - real
SQLiteAdapterusage withjsi: true
Why this repo matters
The demo is not a toy mock. It is the current reference app for the package story around 0.0.1:
- Expo app
- TypeScript only
- Android and iOS native builds
- published package consumption
What to read first
If you open the example repo, start with these files:
App.tsxforDatabaseProvidersrc/db/schema.tsfor the table layoutsrc/db/models.tsfor relations and decoratorssrc/db/database.tsfor the adapter andDatabasebootstrapsrc/screens/*.tsxfor the current React usage pattern
What the React style looks like today
The example reflects the same guidance as this docs site:
- reactive reads use
withObservables-friendly query patterns - screen actions use
useDatabaseand explicit writer functions - the database layer is kept in its own folder instead of leaking collection logic across UI files
Use it as a comparison target
When you integrate Hypertill DB into your own app, compare your structure against the demo:
- do you have a dedicated
db/folder? - are your models and schema isolated from your screens?
- is the app wrapped once with
DatabaseProvider? - are writes happening inside explicit
database.write()blocks?
If the answer is yes, you are aligned with the current package direction.