A web-based application for managing mouse brain slices and experiments in the lab.
Current Version: 3.0
- 🐭 Mouse Database - Track mice with ID, sex, genotype, birth date, sacrifice date
- 🧠 Slice Tracking - Record brain slices with region, thickness, cryosection date, embedding matrix
- 🧪 Multi-Slice Experiments - Link multiple slices to a single experiment with per-slice treatments
- 🏷️ Label Printing - Generate and print labels with experiment ID, mouse info, and treatment
- ☁️ Cloud Sync - Automatic synchronization via Supabase (optional)
- 📱 Works Everywhere - Use on any device with a web browser
- 💾 Backup/Restore - Export and import data as JSON files
- 🔒 Magic Link Auth - No passwords to remember
Major Architecture Change: Experiments now support multiple slices from different mice!
- Create experiments first, then add slices to them
- Or start from a slice and create/join an experiment
- Each slice in an experiment has its own treatment/protocol field
- Compare slices from different mice in the same experiment
- Print labels showing experiment + slice + treatment info
- Download
index.html - Open in any web browser
- Click "Continue Offline"
- Start using!
See the Deployment Manual for complete setup instructions.
| File | Description |
|---|---|
index.html |
The main application |
DEPLOYMENT_MANUAL.md |
Complete setup and usage guide |
ARCHITECTURE.md |
Technical documentation |
CHANGELOG.md |
Version history and changes |
fresh_schema_v3.sql |
Database schema for new installations |
Version 3.0 requires a fresh database schema. The old experiment structure (one experiment per slice) is incompatible with the new many-to-many architecture.
Before upgrading:
- Export your data from v2.x (Database icon → Export)
- Save the backup file safely
- Note: Old experiments will need to be re-created manually
To upgrade:
- Run
fresh_schema_v3.sqlin Supabase SQL Editor (this drops old tables!) - Replace
index.htmlwith the new version - Re-enter data or selectively import mice/slices from backup
┌──────────┐ ┌──────────┐ ┌───────────────────┐ ┌─────────────┐
│ MICE │──┐ │ SLICES │──┐ │ EXPERIMENT_SLICES │ ┌──│ EXPERIMENTS │
│ │ └──▶│ │ └──▶│ (junction) │◀──┘ │ │
│ M-XXXX │ │ S-XXXX │ │ treatment field │ │ E-XXXX │
└──────────┘ └──────────┘ └───────────────────┘ └─────────────┘
One Many Many-to-Many Independent
- Frontend: React 18 (via CDN)
- Styling: Tailwind CSS
- Backend: Supabase (PostgreSQL + Auth)
- Hosting: GitHub Pages (or any static host)
For lab use. Feel free to modify for your needs.