Doorlink — Open-source gym management and door-terminal SDK
Self-hosted gym management software with a standalone TypeScript / Node.js
SDK for WebSocket JSON biometric access-control terminals. Manage memberships,
payments and invoices with a React PWA, Supabase backend and local door hub.
Documentation ·
SDK guide ·
Download the experimental SDK ·
Contribute hardware evidence

Use just the SDK in your own attendance or access-control application, or run
the whole gym system. The SDK does not require Supabase or the dashboard.
Alpha, not hardware-certified. Selected wire operations were observed on
one Bioroles BS-121 (tfs30, TH900 firmware), but this extracted SDK and hub have
not yet been run on a real terminal. Other models and remote enrollment are
unverified. Do not deploy at a live door without the hardware checklist.
Which machines? Fingerprint, face and RFID time-attendance and
access-control terminals that dial out to ws://server:7788/pub/chat, using the
vendor’s “cloud solution WEBSOCKET+JSON protocol”. Examples: Bioroles BS-121
(tfs30), plus AiFace, TimyTeco, TRG-AIFACE11F, TRG-AI01, Evo Facial and AI26
terminals that other open-source projects report on this protocol. Only the
BS-121 has been observed directly. See the
compatibility list.
ZKTeco and eSSL machines use a different protocol and are not supported.
What is here
| Part |
Purpose |
| SDK |
Independent WebSocket transport, serialized commands, protocol helpers, fake-machine tests |
| Hub |
Restricted database login, durable scan queue, door-command execution |
| Backend |
Supabase migrations, checked functions, row-level security, immutable money and audit records |
| Dashboard |
React PWA with members, plans, payments, invoices, insights, enquiries and reminders |
| Documentation |
Setup, architecture, compatibility, limitations and contributor guidance |
| Agent kit |
Original project guidance and setup, validation and release skills |
This release is single-gym and India-oriented: integer paise, India calendar
dates, April-March financial years and no GST workflow. It is not a multi-tenant
service or a generic international accounting system. Freeze/cancel/refund
screens, member import, health forms, privacy-erasure UI and owner MFA remain
unfinished. Never imply the demo is production data.
Try it without hardware or cloud accounts
Install Node.js 26 and npm:
npm ci
npm run build --workspace sdk
npm run dev:demo
Open the printed local address (normally port 5183). Demo mode runs the real
migrations in an in-browser database using invented users, members and prices.
npm test
npm run typecheck
npm run build
npx playwright install chromium
npm run test:e2e
npm run docs:build
Run tests only on the in-memory database. Do not give tests live credentials.
See setup to create a new Supabase deployment. The dashboard
must be hosted at a domain root; the GitHub Pages site hosts docs, not the app.
Using only the SDK
Download the .tgz asset from the experimental release
and install it in your own Node.js project:
npm install ./danishjsheikh-doorlink-sdk-0.1.0.tgz
See the connection example and API. The terminal connects to your
private WebSocket server; requests are serialized, scans can be stored durably,
and destructive commands require explicit opt-in. This is not a ZKTeco
port-4370 SDK, an ADMS server, or a universal biometric-device driver.
Who this helps
- Gym owners who want to self-host member, plan, payment and invoice management.
- Developers building an attendance logger or local door integration using the
documented WebSocket JSON protocol.
- Terminal owners who can contribute safe, sanitized compatibility evidence.
The observed device is a Bioroles BS-121, reporting tfs30 and TH900-family
firmware. Bioroles is the brand on the device; the factory that makes it is
unknown. That is evidence about one unit, not certification of a product range.
See the compatibility matrix before selecting hardware.
Repository structure
One npm workspace install and one root lockfile cover the project:
sdk/ Independent wire protocol, transport and command helpers
hub/ Application queue, scan storage and database integration
supabase/ Checked database functions, migrations and rule tests
web/ React dashboard and in-browser demo
docs/ Public setup, API, compatibility and contributor guides
scripts/ Documentation build and validation
The hub imports the SDK directly. Terminal transport belongs in the SDK; gym
rules belong in Postgres; UI behaviour belongs in the dashboard. See
architecture and contributing.
Privacy and licensing
The public tree starts with fresh history. Private gym branding, customer data,
credentials, vendor software and copied third-party agent skills are excluded.
All example people are synthetic. The included geometric placeholder icon is
original and can be replaced with your own licensed assets.
Code and original documentation are MIT-licensed; fonts retain their OFL
licences in licenses/. See third-party notices.
No npm registry release is implied: the SDK can be used from this monorepo or a
local npm pack tarball. Hardware support must be reported per capability and
firmware, not assumed from a similar model name.
评论