Back to Digital Arts

Accounts and data

A SQLite database in the browser, with eight tables queried in plain SQL and persisted to IndexedDB.

The site loads a SQLite database with sql.js and queries it with plain SQL. The schema has eight tables, for employees, units, submissions, unit progress, assets, feedback, user settings and projects. The database is exported to IndexedDB after every write, so the data remains across reloads without a server.

The site has separate pages for login, the editor, the content browser, units and admin. A page guard in auth.js sends logged-out users to the login page.

Employees work through units and submit their work, and reviewers leave feedback on submissions.