service-studio·design doc

Service Studio

Business services described as data, not rebuilt as code.

spec.yaml
type:
Schema-driven workflow builder
context:
Professional work
area:
Workflow · Data modelling
stack:
6 technologies
Node.jsExpressTypeScriptKnexSQLAWS S3

01Problem

Every new business service — a multi-step process of forms, fields and validation — was a custom build, so each one cost the same effort as the last.

02Approach

A builder in which a service is data: services contain steps, steps contain sections, sections contain forms, forms group fields into panels, and fields carry their own validation rules.

03Architecture← the interesting bit

  1. Relational model: services → steps → sections → forms → panel groups → fields → validation rules
  2. Node/Express API with Knex migrations and strict seeding order to keep references valid
  3. Object storage for uploaded documents (S3)
  4. Security hooks so generated services still pass through platform access control

04Trade-offs & hard parts

risk.01A deep hierarchy has to stay consistent: ordering, references and validation all live in the data.
risk.02Configurability without turning the builder into a programming language.

05Ownership

owner: Worked on the builder: the relational model of services, steps, sections, forms and fields, and the API behind it.

— Hankish

next: /services/orchestratorTenant Orchestrator