- DevCraft Platform
- Overview
Start here
Overview
DevCraft Platform is an open-source, self-hosted, metadata-driven platform for enterprise workflow applications. Administrators define tables, fields, forms, lists, access and configuration as data, and the platform renders a working application from that data. This documentation explains how the platform is built, how to run it, and how to work on it.
What the platform is
Applications such as IT service management, HR cases or asset management are built on the platform; they are not the platform itself. The platform provides the common foundation every such application needs:
- A dictionary. Tables, typed fields, choices, references, forms and lists are records in the dictionary, not hand-written models. A new table gets a list, a form and a REST endpoint without table-specific code.
- One record engine. Every record read goes through
RecordQueryand every write throughRecordWriter, so validation, numbering, access checks, audit and configuration capture happen in one place. - Server-side access control. Access is deny by default and enforced by the API, including on filters and sorts, never only hidden in the user interface.
- A configuration lifecycle. Configuration changes are versioned, captured in update sets, packaged and promoted between instances with comparison and conflict resolution.
One installation serves one organisation. There is no tenant isolation inside a database; organisations that need isolation run separate instances.
Independence and trademarks
DevCraft Platform is an independent open-source enterprise platform. It is built from the ground up with its own architecture, technology stack, user interface, visual identity and implementation.
It addresses challenges common to enterprise platforms, including IT service management, configurable data models, access control, audit trails, workflow automation and application development. The goal is not to reproduce another vendor's product, but to build an independent platform that solves similar business problems through its own design and engineering.
DevCraft Platform does not use copied ServiceNow source code, proprietary assets or confidential materials; public documentation was used only to verify concepts. Its implementation is independently developed and released under the AGPL-3.0-only licence.
Similar purpose. Independent implementation. Open-source foundation.
What works today
The platform is in active development and has not reached a 1.0 release. The table below gives the state of each area; every page repeats the status of what it describes.
| Area | Status | Details |
|---|---|---|
| Metadata engine | Implemented | Dictionary, ten field types, inheritance with overrides, numbering, composite uniqueness, configuration versions. Records live in a generic JSONB store; physical tables per definition are planned. Metadata engine |
| List & Form | Implemented | Generic list and form for every table, filter builder with encoded queries, personalised columns, context and action menus. List & Form |
| Identity and access | Partial | Sessions and tokens, users, groups, roles through groups, table and field access. The full rule-based access engine is planned. Access control |
| Update sets and promotion | Implemented | Local update sets, packages, remote instances, remote update sets, conflict resolution and the application engine. Back-out and signatures are planned. Update sets, Promotion |
| Background Scripts | Implemented | Admin scripts executed in an isolated runner service through the platform API. Scripts and flows |
| Flow Designer | Editor only | The visual editor works; flows are not executed yet. Flow Designer |
| System logs and XML transfer | Implemented | Structured system log with retention, record export and import as XML with preview. Operations |
| REST API | Partial | Authentication, metadata, table, configuration and admin endpoints. OpenAPI, aggregates and idempotency keys are planned. REST API |
| Rules, notifications, workflow runtime | Planned | Rules engine on record events, notifications, scheduled jobs and flow execution. Roadmap |
How this documentation is organised
- Getting startedRun the stack locally with Docker Compose and the Vue SPA, sign in and take a first tour.
- ArchitectureStack, modules, request lifecycle, storage and the decisions that are expensive to change.
- Metadata engineTables, field types, inheritance, numbering and the single read and write paths.
- Access control and securityAuthentication, roles through groups, table and field access, security controls.
- List & FormThe generic screens, filters and encoded queries, actions, preferences and the portal.
- Update setsCapturing configuration changes and packaging them in a versioned format.
- Promotion between instancesRemote instances, comparison, conflict resolution and applying changes.
- Scripts and flowsBackground Scripts in the isolated runner and the Flow Designer.
- OperationsSystem logs, XML transfer, platform commands, configuration and health checks.
- REST APIConventions, error codes and every endpoint of
/api/v1. - Development guideThe rules every change follows, the quality gates and step-by-step recipes.
- Decisions and roadmapArchitecture decision records and the status of each milestone.
Suggested reading paths
- I want to try the platform
- Getting started, then List & Form.
- I administer an instance
- Metadata engine, Access control, Update sets, Promotion and Operations.
- I develop on the platform
- Architecture, Development guide, REST API and Decisions.
- I integrate another system
- REST API and XML record transfer.
Key terms
| Term | Meaning |
|---|---|
| Dictionary | The metadata that describes tables, fields, choices, forms and lists. Changed only through MetadataWriter. |
| Table | A definition in the dictionary, addressed by its name (for example incident). Tables can extend other tables. |
| Record | One row of a table, read through RecordQuery and written through RecordWriter. Records are not Eloquent models. |
| Effective schema | The fields a table really has: its own plus those inherited from its ancestors, with overrides applied. |
| Encoded query | The compact text form of a list filter, kept in the URL as q. |
| Update set | A named container that captures configuration changes so they can be moved to another instance. Stored in sys_change_set. |
| Remote instance | Another DevCraft installation this instance can read completed update sets from. |
| Runner | The separate service that executes Background Scripts; scripts never run in PHP or in the browser. |
Licence and source
DevCraft Platform is free software under the GNU Affero General Public License, version 3 only (AGPL-3.0-only). You may use, study, modify and redistribute it. If you run a modified version as a network service, you must offer its source to the users of that service.