Skip to content

About

Turn an existing PostgreSQL or SQL Server database into formancy forms that fit your application: discovery, policy-aware lookups and controlled record editing. Source-available; free to evaluate and develop, paid in production.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

276 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formancy Data

Your existing database, as forms in your own application, under your own rules.

Formancy Data turns an existing PostgreSQL or Microsoft SQL Server database into forms in your own React or Angular application. It reads the database as the account you connect it with, generates each form from what that account may do, and serves the form's records under rules the server asks on every request, with the identity your application already has. It is self-hosted, source-available and paid for production use, and built on the Apache-2.0 formancy engine.

  • Your database as it is. No schema of its own, and what the account cannot see is said, never taken as absent. A form updates and deletes only where a stale save can be told: by SQL Server's rowversion, or by a version column every writer increments, which a PostgreSQL table needs.
  • Your rules, on every request, with your application's own token, verified offline: no users, passwords or sessions of its own.
  • A schema change is checked against each published form, and the server refuses what it blocks rather than writing past it.
  • Proved on real servers. No mocked driver: every adapter behaviour is tested against real PostgreSQL and SQL Server in every CI run.

The host page's workspace: Forms listing Delivery and Order under Sales, and Delivery linked to Order; the Records grid of Order on the view “Online orders”, filtered by group Online, saying “Rows 1–6.” and listing orders 10418 to 10423 for “Café Entwurf GmbH”, “Beispiel Logistik KG”, “Muster AG” and “Vorlage & Partner GmbH”, draft, placed and shipped, with amounts from “157.3500” to “12800.0000”; below it order k1:10422 open on its Delivery tab, saying “Delivery rows 1–2.”: “Express”, shipped on 18 November, and “Freight”, not yet shipped.

The host page, an example of your application's own page, as clara, a clerk of tenant 1, sees it: the orders on “Online orders”, a list view an administrator named, and the open order's deliveries in a tab beside it, each row what the server answered her under the form's policy (0047). The orders, the deliveries and three of the customers are invented, inserted by the capture script; Muster AG is the test fixture's.

The screenshots in this README are taken by pnpm pictures from the built pages and the real data server, and the pictures job fails when one of them shows text the page no longer shows; the sketch in How it works is drawn by hand (how, and what nothing checks).

Try it

How it works

A sketch of how Formancy Data fits together. Your application's pages draw published forms with @formancy/react or @formancy/angular and ask the data server's runtime plane through @formancy/data-client, with the token the application already holds; the host page, apps/host, is this repository's example of one. The studio, apps/studio, is for administrators, built from this repository, and asks only the administrator plane. The data server, @formancy/data-server, is one image holding both planes, @formancy/data-core, which decides policy, generation, plans and drift, @formancy/data-identity, which verifies the application's token offline, and the configuration store, the published forms kept as files. Below it the adapters, @formancy/data-postgres and @formancy/data-sqlserver, read and write PostgreSQL and SQL Server as the account each connection names.

What each package holds, and may import, is in the building blocks.

  1. Connect. The studio discovers an allowlisted database as the account its connection names.

The studio's Connect step for pg: “PostgreSQL 17.11, schemas sales: 8 tables and 1 view.”, discovered as formancy_writer; a panel saying that no gap was reported; and the tables and views it found.

pg, discovered as the order form's own account. What an account cannot see is said as a gap, never taken as absent, and here there was none (0004).

  1. Generate. The generator makes a form of a root table and its lookups, and says what it chose.

The studio's Generate step: pg-order generated from sales.order, “9 fields.”, and what the generator chose: create, update and delete offered, “Blocked 0”, “Read-only 5”, “Excluded 0”, “Inferred 11”, among them the customer lookup drawn as a typeahead, and “Access 1”, row-level security on sales.customer.

sales.order as the root and its customer key as a lookup. The generator says what it made of each from what this account may do (0009).

  1. Govern and arrange. A policy says who may do what; labels, order and views are a patch over the form.

The Policy step's group Who may do what: clerk may read, create and update, nobody may delete, and a note that the form offers create, update and delete, and that a role granted an operation the form does not offer is refused.

By the roles your application's tokens already carry: clerk reads, creates and updates, and nobody deletes (0011): “A role granted an operation the form does not offer is refused.”

  1. Publish. Every version is kept, nobody overwrites anybody, and a second person's approval can be required.

The studio's Publish step: one bundle of form, bindings, policy and snapshot, version 1 of pg-order published, a button Publish version 2, and the status “Published version 1 of pg-order.” with Check its drift.

One bundle, which the server checks again before it writes: “Published version 1 of pg-order.” This server has no publisher roles; with them, a second person approves each draft (0065).

  1. Run. Your pages ask the runtime plane through @formancy/data-client and draw each form with @formancy/react or @formancy/angular.

The open order k1:10422, on its own tab before a tab “Delivery”: the React form on white paper with Customer Muster AG, Order date, Amount 1240.5000 and Created by disabled, Status placed, Notes Goods entrance, Group Online, an empty Approved by, Id 10422, and Save.

The order from the top of this page, drawn by React for its update: the fields written on create only are disabled, and its deliveries are the tab beside it (0122).

What you get

What main does, in short; What it does says each with the record that holds it, and the studio's and host page's pages picture them.

  • Lists, searched, sorted and filtered inside the read policy, with views an administrator names and views a person keeps, and the open record edited in its row, saved as its form saves it.
  • Lookups offering only the rows a person may choose, checked again on save.
  • Child records in tabs beside their parent, as a tree, or a level at a time.
  • Saves that overwrite nobody: exact values digit for digit, a record and its rows in one transaction, and a lost answer said, never sent again.
  • Actions: a routine your database keeps, run over the open record or the records a person chose, in one transaction.
  • Deletes, copies and CSV files -- the records a person chose changed or deleted together, each named that was not -- and rules a record keeps: status moves by role, versions from a date, and your triggers' own refusals.
  • The studio, for every step from connecting to drift, with review by a second person where you want it.
  • Operations: one signed image, the whole stack from one command, an audit event per request, and keys rotated without a restart.

What it does not do yet

  • No undo, and no file or copy of a record with its children.
  • An action, or a change or a deletion of chosen records, covers at most one page of them at a time.
  • A SQL Server older than 2019 cannot be discovered; no test runs on Azure SQL or logs in as an Entra principal.
  • No host page on another origin has run in a browser, and nothing through a real Cloudflare Tunnel.
  • The performance figures are 0.1.0's, and there are none for a page of records, a file of them, the menu of forms, a delete, a save or an action.
  • No lawyer has reviewed the licence.

The host page's guide says what else its page does not do, and the status page what is not yet measured.

Get started

On your machine, with Docker and git: docker compose --profile stack up runs both databases with sample data, the server, the studio and the host page, and the getting-started guide, which CI runs as written, goes on to a published form. Starting it accepts the EULA of SQL Server's Developer edition, which is not licensed for production.

In your application: run the server, the signed image ghcr.io/sharkysan/formancy-data-server or @formancy/data-server from npm, as its README says; draw its forms with @formancy/data-client and @formancy/react or @formancy/angular (Packages); and build the studio from this repository, which does not publish it (Studio).

Status

0.5.0, released on 2026-11-22, is the latest release. This page describes main, which the examples page and the live demo are deployed from; the status page says what 0.5.0 added and what is not yet measured, and CHANGELOG.md's Unreleased what main has added since.

Licence, in one table

Source-available, not open source. The formancy engine, renderers, builder and backend this module builds on stay Apache-2.0; this module does not.

Use Terms
Read the source and fork the repository Free
Evaluate, develop and test — including in companies Free
Run in production, internally or customer-facing Paid licence
Redistribute inside another software product Separate commercial agreement
Customer data and generated form definitions Remain the customer's

LICENSE.md has the terms. It is Version 1.1, in force from 11 October 2026, and says at the top that no lawyer has reviewed it. A production licence is requested from info@formancy.ai, as its section 9 says.

Why a paid module sits beside an Apache-2.0 project is 0001; Packages says how the licence came into force and what the built apps carry.

Learn more

About

Turn an existing PostgreSQL or SQL Server database into formancy forms that fit your application: discovery, policy-aware lookups and controlled record editing. Source-available; free to evaluate and develop, paid in production.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages