Open-source access control gateway by Elysium Arc. Manages Hikvision terminals, captures clock events via webhooks, and forwards them to your integrations in real-time.
# Clone & install
git clone https://github.com/Elysium-Arc/elyaccess.git
cd elyaccess
pnpm install
# Configure
cp .env.example .env
# Edit .env with your settings
# Setup database
npx prisma migrate deploy
# Run
pnpm devCopy .env.example to .env and configure:
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
✅ | MySQL connection string |
SESSION_SECRET |
✅ | Secret for session encryption |
NODE_ENV |
development or production |
|
PORT |
Server port (default: 3001) | |
SERVER_IP |
Server IP address | |
SSL |
Enable HTTPS (true/false) |
- Username:
admin - Password:
admin
Change password on first login.
pnpm dev # Development server with hot reload
pnpm build # Production build
pnpm start # Start production server
pnpm test # Run tests
pnpm repl # Interactive database REPLAccess the interactive database console:
pnpm replAvailable commands:
await getDevices()- List all devicesawait getEvents()- List eventsawait showTableStats()- Database statisticsawait resetAdminPassword()- Reset admin passwordprisma- Direct Prisma client access
docker-compose up -d- Node.js + TypeScript + Express
- Prisma + MySQL
- HTMX + Tailwind CSS
- EJS templates
MIT © Elysium Arc