Vibecode Darwinbox
track this build5 steps, step by step0%This is not a tool you use alone, it is the system of record for every employee your company has. The parts that look buildable, a leave tracker and an org chart, are the cheap 10 percent. The expensive 90 percent is statutory payroll across multiple countries, tax filings, audit trails, role-based access that HR and legal will actually sign off on, and the fact that finance, IT and the auditors all already read from it. A personal replacement makes no sense because there is no personal version of a company's payroll compliance. If you are a founder with eight people, a spreadsheet plus your accountant beats both this and a DIY build.
You are building a lean indie version of Darwinbox. Create the following project files first, then implement the application by following them. Keep the files updated as decisions change. Do not collapse this into a single README or prompt. ===== README.md ===== # Darwinbox indie build ## Goal Build the smallest trustworthy replacement for the core Darwinbox workflow for one developer or a tiny team. ## Scope A self-hosted employee directory with leave balances, approval requests and a CSV export you hand to whoever actually runs payroll. ## Quick start 1. Install the documented dependencies. 2. Copy `.env.example` to `.env`. 3. Run the development command chosen during implementation. 4. Complete the acceptance checks in `BUILD_PLAN.md`. ## Honest limits This build deliberately does not replace: - Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product - Audit trails and access controls that survive an actual audit or an employment dispute - Integrations with finance systems, background check vendors, job boards and identity providers - Mobile apps that non-technical employees will use for attendance and expense claims - Someone to blame, and to call, when a pay run goes wrong on the 30th If those capabilities are essential, use Darwinbox instead of pretending the gap is solved. ===== AGENTS.md ===== # Agent instructions - Optimize for a working, understandable weekend build. - Prefer the fewest moving parts that satisfy the brief. - Do not invent cryptography, security guarantees, APIs, or compliance claims. - Keep secrets out of source control and logs. - Add focused tests for destructive, security-sensitive, and data-loss paths. - Run the project checks before declaring the build complete. - Record any deliberate shortcut in the README under "Tradeoffs". ===== BUILD_PLAN.md ===== # Build plan ## Original build brief Build a self-hosted internal HR record app for a small team. Not payroll, not compliance, just records and leave. Stack, no substitutions: - Next.js 15, App Router, TypeScript, Tailwind. - SQLite via better-sqlite3, file at ./data/hr.db, schema created on first run. - No auth provider, no cloud, no telemetry. Single shared password from HR_PASSWORD in .env, checked in middleware, plus an ADMIN_EMAILS list in .env that unlocks admin views. In scope: 1. Employees table: name, work email, job title, department, manager (self-referencing), start date, employment type, location, status (active, on leave, exited), notes. Full CRUD for admins, read-only directory for everyone. 2. Org chart rendered from the manager field as nested lists, no graph library. 3. Leave: policies table (name, days per year, carry-over cap), balances computed per employee per calendar year, requests with start date, end date, half-day flag, reason, status (pending, approved, rejected). 4. Approval flow: a request goes to the employee's manager, manager sees a queue, approve or reject with a comment. Every state change writes an append-only audit row with actor, timestamp and old/new values. 5. Working-day math that skips weekends and a holidays table admins can edit. Store all dates as ISO strings, no timezone conversion. 6. Reports: leave taken per employee per year, headcount by department, and a CSV export of employees plus approved leave for whoever actually runs payroll. 7. Seed script with 12 fake employees, 2 policies and a few requests so the app is not empty on first load. Out of scope, do not build: salary fields, payslips, tax logic, expenses, recruitment, performance reviews, mobile apps, email sending, any integration. Deliverables: working app on npm run dev, npm run seed, a .env.example, and a README that states plainly that this is a record keeper and that payroll and statutory filing are handled by a human accountant outside this system. ## Required capabilities - Node 20 and a machine to run it on - Someone external doing actual payroll and tax filing ## Delivery order 1. Scaffold the smallest runnable application and document its commands. 2. Implement the primary data model and core workflow. 3. Add validation, safe failure states, and persistence. 4. Cover the critical path with automated tests. 5. Exercise a clean install from the README and fix every missing step. ## Done when - A new user can go from clone to first successful workflow using only the README. - The core workflow works without paid infrastructure unless the brief requires it. - Tests cover the highest-risk behavior. - Known limitations are explicit rather than hidden. ===== .env.example ===== # Copy to .env and document every variable when it is introduced. # Never put real credentials in this file. APP_ENV=development # Add only values required by the selected implementation.
You are building a lean indie version of Darwinbox. Create the following project files first, then implement the application by following them. Keep the files updated as decisions change. Do not collapse this into a single README or prompt. ===== README.md ===== # Darwinbox indie build ## Goal Build the smallest trustworthy replacement for the core Darwinbox workflow for one developer or a tiny team. ## Scope A self-hosted employee directory with leave balances, approval requests and a CSV export you hand to whoever actually runs payroll. ## Quick start 1. Install the documented dependencies. 2. Copy `.env.example` to `.env`. 3. Run the development command chosen during implementation. 4. Complete the acceptance checks in `BUILD_PLAN.md`. ## Honest limits This build deliberately does not replace: - Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product - Audit trails and access controls that survive an actual audit or an employment dispute - Integrations with finance systems, background check vendors, job boards and identity providers - Mobile apps that non-technical employees will use for attendance and expense claims - Someone to blame, and to call, when a pay run goes wrong on the 30th If those capabilities are essential, use Darwinbox instead of pretending the gap is solved. ===== AGENTS.md ===== # Agent instructions - Optimize for a working, understandable weekend build. - Prefer the fewest moving parts that satisfy the brief. - Do not invent cryptography, security guarantees, APIs, or compliance claims. - Keep secrets out of source control and logs. - Add focused tests for destructive, security-sensitive, and data-loss paths. - Run the project checks before declaring the build complete. - Record any deliberate shortcut in the README under "Tradeoffs". ===== BUILD_PLAN.md ===== # Build plan ## Original build brief Build a self-hosted internal HR record app for a small team. Not payroll, not compliance, just records and leave. Stack, no substitutions: - Next.js 15, App Router, TypeScript, Tailwind. - SQLite via better-sqlite3, file at ./data/hr.db, schema created on first run. - No auth provider, no cloud, no telemetry. Single shared password from HR_PASSWORD in .env, checked in middleware, plus an ADMIN_EMAILS list in .env that unlocks admin views. In scope: 1. Employees table: name, work email, job title, department, manager (self-referencing), start date, employment type, location, status (active, on leave, exited), notes. Full CRUD for admins, read-only directory for everyone. 2. Org chart rendered from the manager field as nested lists, no graph library. 3. Leave: policies table (name, days per year, carry-over cap), balances computed per employee per calendar year, requests with start date, end date, half-day flag, reason, status (pending, approved, rejected). 4. Approval flow: a request goes to the employee's manager, manager sees a queue, approve or reject with a comment. Every state change writes an append-only audit row with actor, timestamp and old/new values. 5. Working-day math that skips weekends and a holidays table admins can edit. Store all dates as ISO strings, no timezone conversion. 6. Reports: leave taken per employee per year, headcount by department, and a CSV export of employees plus approved leave for whoever actually runs payroll. 7. Seed script with 12 fake employees, 2 policies and a few requests so the app is not empty on first load. Out of scope, do not build: salary fields, payslips, tax logic, expenses, recruitment, performance reviews, mobile apps, email sending, any integration. Deliverables: working app on npm run dev, npm run seed, a .env.example, and a README that states plainly that this is a record keeper and that payroll and statutory filing are handled by a human accountant outside this system. ## Required capabilities - Node 20 and a machine to run it on - Someone external doing actual payroll and tax filing ## Delivery order 1. Scaffold the smallest runnable application and document its commands. 2. Implement the primary data model and core workflow. 3. Add validation, safe failure states, and persistence. 4. Cover the critical path with automated tests. 5. Exercise a clean install from the README and fix every missing step. ## Done when - A new user can go from clone to first successful workflow using only the README. - The core workflow works without paid infrastructure unless the brief requires it. - Tests cover the highest-risk behavior. - Known limitations are explicit rather than hidden. ===== .env.example ===== # Copy to .env and document every variable when it is introduced. # Never put real credentials in this file. APP_ENV=development # Add only values required by the selected implementation.
You are building a production product version of Darwinbox. Create the following project files first, then implement the application by following them. Keep the files updated as decisions change. Do not collapse this into a single README or prompt. ===== PRODUCT.md ===== # Darwinbox product brief ## Problem This is not a tool you use alone, it is the system of record for every employee your company has. The parts that look buildable, a leave tracker and an org chart, are the cheap 10 percent. The expensive 90 percent is statutory payroll across multiple countries, tax filings, audit trails, role-based access that HR and legal will actually sign off on, and the fact that finance, IT and the auditors all already read from it. A personal replacement makes no sense because there is no personal version of a company's payroll compliance. If you are a founder with eight people, a spreadsheet plus your accountant beats both this and a DIY build. ## Product outcome A self-hosted employee directory with leave balances, approval requests and a CSV export you hand to whoever actually runs payroll. ## Target user A serious builder who needs a maintainable product foundation rather than a one-off demo. ## Required capabilities - Node 20 and a machine to run it on - Someone external doing actual payroll and tax filing ## Explicit non-goals for v1 - Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product - Audit trails and access controls that survive an actual audit or an employment dispute - Integrations with finance systems, background check vendors, job boards and identity providers - Mobile apps that non-technical employees will use for attendance and expense claims - Someone to blame, and to call, when a pay run goes wrong on the 30th ## Success criteria - The primary workflow is measurable end to end. - Setup is reproducible in a clean environment. - Failure, recovery, and support paths are documented. - Product claims match what the implementation actually guarantees. ===== ARCHITECTURE.md ===== # Architecture ## Starting brief Build a self-hosted internal HR record app for a small team. Not payroll, not compliance, just records and leave. Stack, no substitutions: - Next.js 15, App Router, TypeScript, Tailwind. - SQLite via better-sqlite3, file at ./data/hr.db, schema created on first run. - No auth provider, no cloud, no telemetry. Single shared password from HR_PASSWORD in .env, checked in middleware, plus an ADMIN_EMAILS list in .env that unlocks admin views. In scope: 1. Employees table: name, work email, job title, department, manager (self-referencing), start date, employment type, location, status (active, on leave, exited), notes. Full CRUD for admins, read-only directory for everyone. 2. Org chart rendered from the manager field as nested lists, no graph library. 3. Leave: policies table (name, days per year, carry-over cap), balances computed per employee per calendar year, requests with start date, end date, half-day flag, reason, status (pending, approved, rejected). 4. Approval flow: a request goes to the employee's manager, manager sees a queue, approve or reject with a comment. Every state change writes an append-only audit row with actor, timestamp and old/new values. 5. Working-day math that skips weekends and a holidays table admins can edit. Store all dates as ISO strings, no timezone conversion. 6. Reports: leave taken per employee per year, headcount by department, and a CSV export of employees plus approved leave for whoever actually runs payroll. 7. Seed script with 12 fake employees, 2 policies and a few requests so the app is not empty on first load. Out of scope, do not build: salary fields, payslips, tax logic, expenses, recruitment, performance reviews, mobile apps, email sending, any integration. Deliverables: working app on npm run dev, npm run seed, a .env.example, and a README that states plainly that this is a record keeper and that payroll and statutory filing are handled by a human accountant outside this system. ## Boundaries Separate the product into replaceable modules for interface, application logic, persistence, external integrations, and operational concerns. Keep domain logic independent from delivery frameworks and vendors. ## Production baseline - Configuration: validated at startup with safe local defaults where possible. - Security: least privilege, input validation, secret redaction, rate limits on abuse-prone paths, and no invented security primitives. - Data: explicit schema and migrations, transactional writes where integrity matters, backup and restore instructions. - Integrations: adapters around third-party providers, idempotent webhook or job processing, bounded retries, and timeouts. - Observability: structured logs with request or operation IDs, an error-tracking hook, and health/readiness checks where a server exists. - Quality: unit tests for domain rules, integration tests at module boundaries, and one end-to-end critical-path test. ## Decision records For each major dependency, document why it was chosen, its failure mode, and how it can be replaced. Do not introduce infrastructure until a requirement justifies it. ===== AGENTS.md ===== # Agent instructions - Read `PRODUCT.md` and `ARCHITECTURE.md` before changing code. - Implement milestone by milestone; keep each change reviewable and leave the application runnable. - Treat authentication, payments, encryption, imports, webhooks, and destructive actions as high-risk boundaries when present. - Never invent cryptography or silently weaken a requirement to make a test pass. - Use provider interfaces for external services and deterministic fakes in tests. - Add migrations and rollback or recovery notes for persistent data changes. - Log useful operational context without credentials, tokens, passwords, or personal data. - Update documentation and run all checks before completing a milestone. ===== MILESTONES.md ===== # Delivery milestones ## M0 — Decisions and scaffold - Confirm the runtime, persistence model, threat boundaries, and deployment target. - Create a reproducible local environment and continuous checks. ## M1 — Core workflow - Implement the smallest end-to-end product path with validation and tests. - Keep integrations behind interfaces. ## M2 — Trust layer - Add secure failure behavior, recovery paths, audit-relevant events, and data safeguards. - Test abuse cases and destructive operations. ## M3 — Operability - Add structured logs, error reporting hooks, health signals, backup/restore documentation, and deployment configuration. ## M4 — Release gate - Run a clean-install test, critical-path end-to-end test, dependency review, and documented rollback exercise. - Compare the shipped behavior with `PRODUCT.md` and publish remaining limitations. ===== OPERATIONS.md ===== # Operations ## Before release - Validate configuration and secrets at startup. - Define backup, restore, and rollback procedures and test them. - Document logs, error tracking, health signals, and alert ownership. - Set dependency update and vulnerability review expectations. ## Incident checklist 1. Contain the issue without destroying evidence or user data. 2. Record the timeline and affected scope. 3. Rotate exposed secrets and revoke compromised sessions or credentials. 4. Restore from a verified source when needed. 5. Document the root cause, remediation, and regression test. ## Launch constraint Do not market omitted Darwinbox capabilities as implemented. The v1 non-goals in `PRODUCT.md` remain user-visible limitations until they are deliberately delivered.
# Darwinbox indie build ## Goal Build the smallest trustworthy replacement for the core Darwinbox workflow for one developer or a tiny team. ## Scope A self-hosted employee directory with leave balances, approval requests and a CSV export you hand to whoever actually runs payroll. ## Quick start 1. Install the documented dependencies. 2. Copy `.env.example` to `.env`. 3. Run the development command chosen during implementation. 4. Complete the acceptance checks in `BUILD_PLAN.md`. ## Honest limits This build deliberately does not replace: - Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product - Audit trails and access controls that survive an actual audit or an employment dispute - Integrations with finance systems, background check vendors, job boards and identity providers - Mobile apps that non-technical employees will use for attendance and expense claims - Someone to blame, and to call, when a pay run goes wrong on the 30th If those capabilities are essential, use Darwinbox instead of pretending the gap is solved.
# Agent instructions - Optimize for a working, understandable weekend build. - Prefer the fewest moving parts that satisfy the brief. - Do not invent cryptography, security guarantees, APIs, or compliance claims. - Keep secrets out of source control and logs. - Add focused tests for destructive, security-sensitive, and data-loss paths. - Run the project checks before declaring the build complete. - Record any deliberate shortcut in the README under "Tradeoffs".
# Build plan ## Original build brief Build a self-hosted internal HR record app for a small team. Not payroll, not compliance, just records and leave. Stack, no substitutions: - Next.js 15, App Router, TypeScript, Tailwind. - SQLite via better-sqlite3, file at ./data/hr.db, schema created on first run. - No auth provider, no cloud, no telemetry. Single shared password from HR_PASSWORD in .env, checked in middleware, plus an ADMIN_EMAILS list in .env that unlocks admin views. In scope: 1. Employees table: name, work email, job title, department, manager (self-referencing), start date, employment type, location, status (active, on leave, exited), notes. Full CRUD for admins, read-only directory for everyone. 2. Org chart rendered from the manager field as nested lists, no graph library. 3. Leave: policies table (name, days per year, carry-over cap), balances computed per employee per calendar year, requests with start date, end date, half-day flag, reason, status (pending, approved, rejected). 4. Approval flow: a request goes to the employee's manager, manager sees a queue, approve or reject with a comment. Every state change writes an append-only audit row with actor, timestamp and old/new values. 5. Working-day math that skips weekends and a holidays table admins can edit. Store all dates as ISO strings, no timezone conversion. 6. Reports: leave taken per employee per year, headcount by department, and a CSV export of employees plus approved leave for whoever actually runs payroll. 7. Seed script with 12 fake employees, 2 policies and a few requests so the app is not empty on first load. Out of scope, do not build: salary fields, payslips, tax logic, expenses, recruitment, performance reviews, mobile apps, email sending, any integration. Deliverables: working app on npm run dev, npm run seed, a .env.example, and a README that states plainly that this is a record keeper and that payroll and statutory filing are handled by a human accountant outside this system. ## Required capabilities - Node 20 and a machine to run it on - Someone external doing actual payroll and tax filing ## Delivery order 1. Scaffold the smallest runnable application and document its commands. 2. Implement the primary data model and core workflow. 3. Add validation, safe failure states, and persistence. 4. Cover the critical path with automated tests. 5. Exercise a clean install from the README and fix every missing step. ## Done when - A new user can go from clone to first successful workflow using only the README. - The core workflow works without paid infrastructure unless the brief requires it. - Tests cover the highest-risk behavior. - Known limitations are explicit rather than hidden.
# Copy to .env and document every variable when it is introduced. # Never put real credentials in this file. APP_ENV=development # Add only values required by the selected implementation.
# Darwinbox product brief ## Problem This is not a tool you use alone, it is the system of record for every employee your company has. The parts that look buildable, a leave tracker and an org chart, are the cheap 10 percent. The expensive 90 percent is statutory payroll across multiple countries, tax filings, audit trails, role-based access that HR and legal will actually sign off on, and the fact that finance, IT and the auditors all already read from it. A personal replacement makes no sense because there is no personal version of a company's payroll compliance. If you are a founder with eight people, a spreadsheet plus your accountant beats both this and a DIY build. ## Product outcome A self-hosted employee directory with leave balances, approval requests and a CSV export you hand to whoever actually runs payroll. ## Target user A serious builder who needs a maintainable product foundation rather than a one-off demo. ## Required capabilities - Node 20 and a machine to run it on - Someone external doing actual payroll and tax filing ## Explicit non-goals for v1 - Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product - Audit trails and access controls that survive an actual audit or an employment dispute - Integrations with finance systems, background check vendors, job boards and identity providers - Mobile apps that non-technical employees will use for attendance and expense claims - Someone to blame, and to call, when a pay run goes wrong on the 30th ## Success criteria - The primary workflow is measurable end to end. - Setup is reproducible in a clean environment. - Failure, recovery, and support paths are documented. - Product claims match what the implementation actually guarantees.
# Architecture ## Starting brief Build a self-hosted internal HR record app for a small team. Not payroll, not compliance, just records and leave. Stack, no substitutions: - Next.js 15, App Router, TypeScript, Tailwind. - SQLite via better-sqlite3, file at ./data/hr.db, schema created on first run. - No auth provider, no cloud, no telemetry. Single shared password from HR_PASSWORD in .env, checked in middleware, plus an ADMIN_EMAILS list in .env that unlocks admin views. In scope: 1. Employees table: name, work email, job title, department, manager (self-referencing), start date, employment type, location, status (active, on leave, exited), notes. Full CRUD for admins, read-only directory for everyone. 2. Org chart rendered from the manager field as nested lists, no graph library. 3. Leave: policies table (name, days per year, carry-over cap), balances computed per employee per calendar year, requests with start date, end date, half-day flag, reason, status (pending, approved, rejected). 4. Approval flow: a request goes to the employee's manager, manager sees a queue, approve or reject with a comment. Every state change writes an append-only audit row with actor, timestamp and old/new values. 5. Working-day math that skips weekends and a holidays table admins can edit. Store all dates as ISO strings, no timezone conversion. 6. Reports: leave taken per employee per year, headcount by department, and a CSV export of employees plus approved leave for whoever actually runs payroll. 7. Seed script with 12 fake employees, 2 policies and a few requests so the app is not empty on first load. Out of scope, do not build: salary fields, payslips, tax logic, expenses, recruitment, performance reviews, mobile apps, email sending, any integration. Deliverables: working app on npm run dev, npm run seed, a .env.example, and a README that states plainly that this is a record keeper and that payroll and statutory filing are handled by a human accountant outside this system. ## Boundaries Separate the product into replaceable modules for interface, application logic, persistence, external integrations, and operational concerns. Keep domain logic independent from delivery frameworks and vendors. ## Production baseline - Configuration: validated at startup with safe local defaults where possible. - Security: least privilege, input validation, secret redaction, rate limits on abuse-prone paths, and no invented security primitives. - Data: explicit schema and migrations, transactional writes where integrity matters, backup and restore instructions. - Integrations: adapters around third-party providers, idempotent webhook or job processing, bounded retries, and timeouts. - Observability: structured logs with request or operation IDs, an error-tracking hook, and health/readiness checks where a server exists. - Quality: unit tests for domain rules, integration tests at module boundaries, and one end-to-end critical-path test. ## Decision records For each major dependency, document why it was chosen, its failure mode, and how it can be replaced. Do not introduce infrastructure until a requirement justifies it.
# Agent instructions - Read `PRODUCT.md` and `ARCHITECTURE.md` before changing code. - Implement milestone by milestone; keep each change reviewable and leave the application runnable. - Treat authentication, payments, encryption, imports, webhooks, and destructive actions as high-risk boundaries when present. - Never invent cryptography or silently weaken a requirement to make a test pass. - Use provider interfaces for external services and deterministic fakes in tests. - Add migrations and rollback or recovery notes for persistent data changes. - Log useful operational context without credentials, tokens, passwords, or personal data. - Update documentation and run all checks before completing a milestone.
# Delivery milestones ## M0 — Decisions and scaffold - Confirm the runtime, persistence model, threat boundaries, and deployment target. - Create a reproducible local environment and continuous checks. ## M1 — Core workflow - Implement the smallest end-to-end product path with validation and tests. - Keep integrations behind interfaces. ## M2 — Trust layer - Add secure failure behavior, recovery paths, audit-relevant events, and data safeguards. - Test abuse cases and destructive operations. ## M3 — Operability - Add structured logs, error reporting hooks, health signals, backup/restore documentation, and deployment configuration. ## M4 — Release gate - Run a clean-install test, critical-path end-to-end test, dependency review, and documented rollback exercise. - Compare the shipped behavior with `PRODUCT.md` and publish remaining limitations.
# Operations ## Before release - Validate configuration and secrets at startup. - Define backup, restore, and rollback procedures and test them. - Document logs, error tracking, health signals, and alert ownership. - Set dependency update and vulnerability review expectations. ## Incident checklist 1. Contain the issue without destroying evidence or user data. 2. Record the timeline and affected scope. 3. Rotate exposed secrets and revoke compromised sessions or credentials. 4. Restore from a verified source when needed. 5. Document the root cause, remediation, and regression test. ## Launch constraint Do not market omitted Darwinbox capabilities as implemented. The v1 non-goals in `PRODUCT.md` remain user-visible limitations until they are deliberately delivered.
$ choose a build depth, inspect the files, then open the complete pack in your agent · this prompt is generated from the build plan · improve it via PR
Because HR software is bought to reduce risk, not to save time. A wrong pay run or a missed statutory filing costs more than the annual contract, and nobody in the company wants to personally own that. Add the switching cost: once headcount data, leave history, appraisal cycles and payroll inputs all live in one system that finance and IT are wired into, migration is a project with a budget and a steering committee, not a weekend.
xStatutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product
xAudit trails and access controls that survive an actual audit or an employment dispute
xIntegrations with finance systems, background check vendors, job boards and identity providers
xMobile apps that non-technical employees will use for attendance and expense claims
xSomeone to blame, and to call, when a pay run goes wrong on the 30th
Nothing worth pointing at. That's why the prompt exists.
Vibecode Darwinbox
Not really. Darwinbox's value is not the code: The moat is payroll compliance in every jurisdiction you operate in, plus the fact that finance, IT and the auditors already read from this one database. See the honest breakdown above.
How much does Darwinbox cost?
Darwinbox's pricing is usage-based or varies by plan · No pricing page: www.darwinbox.com/pricing returns 404. Site is demo-request only..
What do I lose by replacing Darwinbox?
Honestly: Statutory payroll, tax and provident fund compliance across jurisdictions, which is the entire product; Audit trails and access controls that survive an actual audit or an employment dispute; Integrations with finance systems, background check vendors, job boards and identity providers; Mobile apps that non-technical employees will use for attendance and expense claims; Someone to blame, and to call, when a pay run goes wrong on the 30th. If any of those are load-bearing for you, keep paying.
Is there an open-source alternative to Darwinbox?
No mature open-source alternative worth pointing at, which is exactly why the one-shot prompt on this page exists.