Zaylen Digital HQ: one system for invoices, payroll and the website
How we replaced a pile of separate tools with a single platform for accounting, HR and website content, and what the architecture looks like.
- Internal tools & ERP
- Web apps & SaaS
- UI/UX & product design
- Websites
01Challenge
A studio produces the same paperwork as any other business: invoices, payments, salaries, leave, contracts. When that work is spread across separate tools, the same client and the same employee end up typed in several places, and the website becomes one more system to keep in step with the rest.
02Approach
We built one API with one data model, a console for the team and a public website that reads from the same source. Money always moves through a double-entry ledger, permissions are declared in one catalog, and every change to a business record is logged.
03Outcome
One platform now holds the studio's accounting, HR and website content. An invoice, the payment against it and the ledger entries behind it are one chain of records, and content published in the console appears on the website without a deployment.
Zaylen Digital HQ is the internal platform we built to run our own studio. This page describes what it does and how it is put together. It is also the most direct example we can give of how we build internal tools for clients.
The problem
Running a studio means raising invoices, collecting payments, paying salaries, tracking leave and keeping a website current. Each of those jobs has a good off-the-shelf tool. The trouble starts between the tools. A client exists in the invoicing tool and again in the project tracker. An employee exists in payroll and again in the attendance sheet. Nothing on the website knows about any of it.
We wanted one place where a client, an employee or a project is entered once and used everywhere.
What it does
Accounting
The accounting module has a chart of accounts, vouchers, vendor bills, expenses, fund transfers, wallets and loans. It produces the reports an accountant expects, including a trial balance, profit and loss, a balance sheet, ledgers and a day book.
Every movement of money posts one balanced voucher through a single ledger service, and no other code writes to the ledger. That one rule keeps the reports consistent with each other.
Invoicing and payments
Invoices are raised against clients and can be paid online by card through Stripe. When Stripe confirms a payment, the platform records it against the invoice and posts it to the ledger. The invoice, the payment and the books agree without anyone reconciling them by hand.
Service packages shown on the website can be ordered the same way. The order becomes a client, an invoice and a payment in the same chain.
HR and payroll
HR covers employees, departments, shifts, attendance, leave types and leave applications, allowance templates and payroll runs. Employees see their own payslips and leave through a self-service view.
Employee verification
Each employee record has a QR code. Scanning it opens a public page that confirms the person works at the studio and shows only the details that are safe to publish.
Website content
Projects, case studies, services, pricing, journal posts, FAQs and legal pages are written in a block editor inside the console. The editor stores each document as structured blocks, and a markdown version is derived on save for the website to render. Clients keep a separate public profile, and a client is named on the website only if that profile says so.
Access control
Every operation in the API is listed in a permission catalog. The same catalog guards the API and decides which buttons and menu items the console shows, so the two cannot drift apart. Changes to business records are written to an activity log with the before and after state.
How it is built
The three applications live in one repository and share small packages for domain types, the REST permission catalog, database access and the icon set.
One API, organised by domain
The API is divided into domains such as accounting, HR, CMS, identity and storage. Each domain declares its REST routes, public routes and seed data in one module, and the server assembles them at start-up. Adding a feature means adding a module and registering it in one list.
A contract between console and API
The console talks to the API through a typed REST client, and each page keeps its API calls beside the route that uses them. The public website reads a small set of unauthenticated REST endpoints that return published content only, with file references already resolved to URLs.
Decisions we would make again
- We made a ledger service the only way into the books. It adds a little ceremony to every feature that touches money, and it removes a whole class of bugs.
- We treat permissions as data. Both sides read one catalog, so there are no checks scattered through the code.
- The editor keeps structured blocks and the website gets markdown, so each side works with the format that suits it.
- Every input is checked and bounded where it enters the API, and public endpoints return only fields that are explicitly listed.
What it shows
This is the kind of system we build for clients under Internal tools & ERP. The modules are shaped around how a business works, they share one data model, and money is handled with bookkeeping discipline. We built it for ourselves first, and we are a demanding client.
Have a project like this one?
Tell us what you are trying to get done. We reply with questions, then send a written scope, a timeline and a fixed price before you commit to anything.