Your organization's documents, on your own network., versioned, every time., properly approved., on the record.
eDMS is a self-hosted document management system for the office LAN. Upload files, keep every version, move them through an approval workflow, and get an append-only audit trail of every action, with access scoped by role and department.
- Runs entirely on your LAN
- Web app
- Desktop app (Windows, macOS, Linux)
Features
Everything a records team needs, nothing it doesn't
Built for organizations that want control over their files: clear ownership, a paper trail you can trust, and access that follows your org chart.
Every version kept
Each upload becomes a new version with its original name, size and note. Editing only the metadata is logged, not versioned, so history stays meaningful.
Approval workflow
Documents move from Draft to Pending, Reviewed and Approved, or get Rejected, with an assignee responsible for each step.
Append-only audit log
Uploads, edits, status changes and deletes are recorded with field-level diffs. SQL triggers refuse any UPDATE or DELETE on the log.
Role-based permissions
Admin, editor and viewer roles map to view, upload, approve and delete through a matrix you configure. Admins always keep every permission.
Department scoping
People see their own department's documents plus anything they own or are assigned. Approvers and admins see across departments.
In-browser previews
DOCX files render as HTML right in the browser, and you can diff the text of any two versions to see exactly what changed.
Integrity by SHA-256
Every stored file version is hashed with SHA-256, and each document gets a readable reference code such as HR-2024-091.
Soft delete & restore
Deleted documents move to a recoverable state instead of disappearing, and can be restored with their full history intact.
Search inside documents
Full-text search over titles, references and the text of Word, PDF and plain-text files, best matches first, with the matching passage highlighted.
Comments & My tasks
Each document has a discussion thread. An in-app bell and a My tasks page show what is waiting for you to review, approve or fix.
Backups & retention
Automatic daily backups, one-click download and a restore script. Untouched documents can auto-archive, and old deletions are purged.
Your branding
Set your app name, logo and colours once. They apply to the web app, the desktop app and the sign-in page, with text kept readable.
Version history
See exactly which words changed, version by version
Every upload is kept. Pick any version and eDMS compares its text with the one before it, down to the individual word.
HR-2024-091 · 4 versions
leave-policy.docx v3 → v4
+2 −2
| 1 | −# Annual Leave Policy | |
| 1 | +# Annual Leave Policy 2025 | |
| 2 | 2 | Full-time employees receive 18 days of paid leave per year. |
| 3 | 3 | Part-time employees receive leave in proportion to their hours. |
| 4 | 4 | Leave requests must be submitted 14 days in advance. |
| 5 | 5 | Up to 5 unused days carry over to the next year. |
| 6 | −Approval is given by the department head. | |
| 6 | +Approval is given by the department head and recorded in eDMS. |
L. Chen · “Clarify approval route for 2025” · SHA-256 9f3c2ab…
Workflow
From draft to approved, with a record of every step
A board shows where each document stands. Each status change is checked against the person's permissions on the server and written to the audit log.
- draft 01
Editor
Upload a file and fill in title, description and department.
- pending 02
Editor
Submit for review and assign someone to take it forward.
- reviewed 03
Reviewer
Content is checked. Earlier versions can be compared line by line.
- approved 04
Approver
Someone with the approve permission signs it off for use.
At any review step a document can be rejected with a reason, which the owner sees, and sent back with a new version.
Audit log
activity_log · append-only
- 09:14 S. Rahman uploaded v3 of OPS-2024-038
- 09:20 S. Rahman changed status draft → pending on OPS-2024-038
- 11:02 M. Okafor changed status pending → reviewed on OPS-2024-038
- 14:45 L. Chen changed status reviewed → approved on OPS-2024-038
Architecture
Two apps, one central server
The browser and the desktop app use the same JSON API. There is one server process, one database file and one folder of documents to back up.
Browser
httpOnly session cookie
Desktop app
Bearer token, Electron
SvelteKit Node server
UI + JSON API on your LAN
- • Authenticates every request in
hooks.server.ts - • Checks one shared
can(user, permission) - • Runs database migrations on start
SQLite
data/edms.db
Files on disk
data/files
- Framework
- SvelteKit 2 · Svelte 5 · TypeScript
- Server
- adapter-node (UI + /api in one process)
- Database
- SQLite via Drizzle ORM
- File storage
- Local disk, SHA-256 per version
- UI
- TailwindCSS 4 · bits-ui · Lucide · Chart.js
- Previews
- mammoth (DOCX → HTML) · diff
- Desktop
- Electron (sandboxed, no Node in the page)
- Tests
- Vitest · Playwright · GitHub Actions CI
Security & access
Access that follows your roles and departments
Roles map to permissions through a matrix in Settings. Department scoping decides which documents each person can see.
Role matrix
Example configuration, editable in Settings
| Role | view | upload | approve | delete |
|---|---|---|---|---|
| admin (always all) | ||||
| editor | ||||
| viewer |
-
The server has the final say
The UI only uses permissions to decide what to show. Every API request is checked again on the server.
-
Hashed session tokens
Session IDs are stored as SHA-256 hashes, never raw. Web sessions use httpOnly cookies; the desktop app uses bearer tokens.
-
Throttled sign-in
Login attempts are rate limited per client, including behind a reverse proxy.
-
Admin-only administration
Users, departments and settings can only be managed by admins, who can never be locked out by a bad matrix edit.
Get started
Running on your network in a few minutes
One machine on the LAN runs the server. Everyone else just opens its address in a browser.
- 1
Install and configure
Copy .env.example and adjust the database path, storage folder and admin username.
- 2
Seed the database
Creates the database, default departments and the admin account. If no password is set, one is generated and printed. Safe to run again.
- 3
Build and run on the LAN
Set ORIGIN to the server’s LAN URL and PORT in .env, then start it. Check it is up at /api/health.
Key settings in
.env- DATABASE_URL
- data/edms.db
- STORAGE_DIR
- data/files
- ORIGIN
- http://edms.office.lan
- PORT
- 3000
- BODY_SIZE_LIMIT
- above your max upload size
Development
bun install cp .env.example .env bun run db:seed bun run dev
Production (LAN server)
bun run build bun run start curl http://edms.office.lan/api/health
Prefer npm? It works too. Swap bun for npm.
Roadmap
Where eDMS is today, and what comes next
Every page runs on the real server and database, in the browser and the desktop app, with tests running in CI. Next up is polishing the desktop app.
Done
- 1.Server foundation: adapter-node, SQLite, Drizzle, migrations
- 2.Auth, sessions, and one shared can() permission check
- 3.Documents, audit log, dashboard, users, departments, settings and workflow on the real API
- 4.Backups, restore script, retention and archiving
- 5.Desktop app on Electron, with a server-address setting
- 6.Branding, full-text search, comments, notifications and My tasks
- 7.Unit, API and end-to-end tests, with CI on GitHub Actions
Next
- 8.Code-signed desktop installers
- 9.Desktop auto-update
- 10.Open and edit: open a document in Word and save it back as a new version
Later ideas
- Email notifications
- Two-factor sign-in
- OCR for scanned PDFs
- Version rollback UI
- Postgres option
Updates
What's new
New features and improvements in eDMS as they ship, newest first.
-
- Improved
The desktop app now runs on Electron. It is sandboxed, opens outside links in your browser, and no longer needs Rust to build.
- New
Automated tests for sign-in, sessions and security checks, plus end-to-end tests covering sign-in, upload, search, rejection and approval.
- New
CI on GitHub Actions runs lint, type checks, tests and both builds on every change, and produces a downloadable Windows installer.
- Improved
Rejecting a document now requires a reason. It is added as a comment and the owner is notified.
- Site
Desktop app details updated for Electron, and the Roadmap now points to code signing, auto-update and open-and-edit.
- Improved
-
- New
Branding: set your app name, logo and colour scheme in Settings. It applies to the web app, the desktop app and the sign-in page, and text colours adjust for contrast.
- New
Search inside documents: full-text search over titles, references and the text of Word, PDF and plain-text files, with the matching passage highlighted. Accents are ignored.
- New
Comments on every document, an in-app notification bell, and a My tasks page listing what is waiting for you.
- New
Automatic daily backups on the server, with a warning on the dashboard when there has been no backup for a week.
- Site
New features listed on this page, the Roadmap brought up to date, and this Updates section.
- New
-
- New
Desktop app for Windows, macOS and Linux. It asks for the server address on first launch and offers Try again if the server stops answering.
- New
Backup download (database plus files) and a restore script that keeps your previous data. Retention can auto-archive untouched documents and purge old deletions.
- Improved
The workflow board, dashboard, users, departments and settings now run on the real server instead of sample data.
- Improved
Drag a card on the workflow board to change its status. Columns you are not allowed to move into are locked.
- New
-
- New
Audit log on the server, with search and filters. It can no longer be cleared.
- Improved
Documents page on the real API: server-side search, filters and paging, new versions with notes, soft delete and restore.
- Improved
Readable dates such as "5 minutes ago", and notifications when something is saved or fails.
- Site
Landing page launched, with feature cards that invert on hover and a Security table that fits on phones.
- New
-
- New
Real sign-in with sessions, and one permission check shared by the server and the UI.
- New
Documents stored on disk with every version kept, a SHA-256 hash per file, and department scoping.
- New
-
- New
Server foundation: SQLite database with automatic migrations.
- New