Platform philosophy
TypeSer Philosophy
A warehouse team can change its screens often. A receipt posted last month must still explain today’s stock. TypeSer keeps those accounting rules in PostgreSQL and the application model in TypeScript, where both can be reviewed.
Why a transactional ledger core?
ChatGPT Sites, Lovable and Bolt can take a dashboard or lightweight application from a prompt to a hosted preview. When the same application starts accepting concurrent stock movements, its developers also need a durable record of what changed, who could change it and how corrections affect earlier transactions.
In the Warehouse demo, correcting a posted receipt replaces its movements. PostgreSQL commits the new movements and register totals together. A dated service target can change in February while a January report still reads the value in force at the time. The back office and warehouse portal read the same records. Registers and queries
How the model changes on live data
Catalogs, documents and fields have stable numeric codes. Rename a table or column in the model, keep its code and update the application code that refers to its old name. Save to PG matches the existing storage by code and renames it in place. A structural change copies rows into a shadow table, converts supported values and checks constraints before switching over. A conversion failure or key collision rolls back the transaction. Source and publication workflow
For changes made in the Configurator, Save to TS writes the metadata and forms back to source for Git review. Save Sites generates a TypeScript projection for each site. A portal importing an ERP-only type from its projection gets a compiler error. Each site builds its own browser bundle. Application SQL stays on the server.
Why rules and permissions live in PostgreSQL
The dollar sign marks TypeScript properties eligible for production minification. In source, destination$ has the same name in the form, the model and the PostgreSQL column. Its type is a reference to a warehouse. A SQL client can inspect the corresponding UUID domain on the stored column. Model and types
The database checks access for the current user and validates a document when it is written. A form, an HTTP endpoint and an MCP tool use the same row-level policies. The Java host serves the sites, authenticates sessions and transports calls. An application can add a JVM module when it needs one. Triggers and row-level security
How developers and coding agents verify a change
A coding agent can draft a form quickly. A reviewer still needs to know whether reposting it twice counts stock twice, or whether the warehouse portal can open another warehouse’s documents. Metadata, TSX forms and SQL handlers live in Git. A developer can inspect that same model in the Configurator.
The TypeScript compiler checks references, Save to PG checks the live schema, and database tests exercise posting and access under a selected role. These checks work for a change written by a developer or an agent. Getting started
Code and data ownership
The TypeSer core uses the Apache 2.0 license. Your team owns its application sources and can operate the PostgreSQL database on its own infrastructure. A permitted SQL or BI client can query the tables, indexes and views directly, including after the front end has been retired. License · Frequently asked questions