# Open SafetyLog EHS Free, open-source accident and safety tracking for manufacturing: incident and near-miss reporting, investigations, corrective actions and (planned) OSHA record keeping. > **Status: early prototype.** The UI runs on in-memory demo data; nothing is saved yet. See [docs/ROADMAP.md](docs/ROADMAP.md) for the plan and [docs/TODO.md](docs/TODO.md) for open items. ## Getting started Requires Node.js 22.12 or later (see `.nvmrc`). ```sh npm install npm run dev ``` ## Scripts | Command | What it does | | --- | --- | | `npm run dev` | Start the dev server | | `npm run build` | Production build to `dist/` | | `npm run lint` | Lint with Oxlint (warnings fail) | | `npm run typecheck` | Type-check with TypeScript | | `npm test` | Unit and component tests (Vitest) | | `npm run test:e2e` | End-to-end tests (Playwright, desktop and mobile). Run `npx playwright install chromium` once first | | `npm run check` | Lint, typecheck, test and build in one go | CI runs the same checks on every push and pull request (`.gitea/workflows/ci.yml`). ## Project layout ``` src/ pages/ One component per route components/ Shared UI (layout, tables, form pieces) and shared class strings in styles.ts lib/ Types, domain logic, demo data; no React components index.css Tailwind import and design tokens (@theme) e2e/ Playwright tests docs/ Roadmap and design notes ``` Styling is Tailwind CSS v4. Colors, fonts and small text sizes are defined as theme tokens in `src/index.css`. Fonts are bundled through Fontsource, so the app makes no third-party requests and works on isolated plant networks. ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md). Everyone taking part follows our [Code of Conduct](CODE_OF_CONDUCT.md). ## License [GNU Affero General Public License v3.0](LICENSE). If you run a modified version as a network service, you must offer its source code to its users. The app's About page links to the source; set `VITE_SOURCE_URL` at build time to point it at your fork.