Appearance
What TypeRule is not
Saying what a tool will not do is as useful as saying what it does. It tells you, before you start, whether TypeRule fits your problem, and it tells everyone who asks for a feature where the answer is already written. This page lists one hundred of those answers.
TypeRule is a language for writing the model of a business (its data, money, rules, processes, permissions and certified numbers) so that the books always balance and every number can explain where it comes from. The database, the API, the interface and the hosting are derived from that model. What does not serve that sentence does not go in.
Every item says which kind of answer it is:
| Mark | Meaning |
|---|---|
| already so | TypeRule already works this way today. The item makes it a promise. |
| consequence | It follows from a choice already made (determinism, the hashed history, one writer per database, no I/O in formulas). Saying yes would break that choice. |
| proposal | A position we intend to hold, still open to discussion. |
Five questions before any feature
When a request comes in, ask these in order. One "no" is enough to stop.
- Does it help people who write business software? Orders, invoices, stock, production, accounting, approvals. A website, a game or a scientific model: no.
- Does the engine stay deterministic? Same data, same code, same result, also when a year of history is replayed. A formula that reads the clock, the network, a file or an AI model: no.
- Can the compiler still see the whole model? TypeRule's checks (cycles, unreachable states, cascades, currencies) exist because the model is declared. An escape hatch the compiler cannot read switches them off for everyone.
- Can it be done with what already exists? An entity, a
trait, anextend, a reaction, a library module, the API. If so, the answer is an example, not a feature. - Does it work the same outside TypeRule Cloud? The language does not depend on the cloud. A language feature that exists only in the cloud is a no.
Every yes is paid for forever: in the grammar, the type checker, the engine, the formatter, the language server, the studio, the documentation and the tests, on SQLite and on PostgreSQL. The default answer is no.
Identity
- Not a general-purpose language. already so TypeRule does not compete with Rust, Go or Python. A program that is not about records, money, states and permissions is written elsewhere and talks to TypeRule through the HTTP API.
- Not a drag-and-drop builder that hides the model. already so Screens can be made in the app and an AI assistant can write the rules, but the model is always text: checked by a compiler, reviewed and versioned in git, tested.
- Not a ready-made ERP. already so TypeRule is the language you write an ERP in. The extended example is an example, not a product to configure. National accounting, e-invoicing formats, lot tracking are modules written in TypeRule, not features of the engine.
- Not an ORM. already so TypeRule does not map classes onto existing tables: the model is the source, and the tables are projections of the history (Storage). An existing database is reached with an import or an integration.
- Not a web framework. already so No routes, controllers, middleware or templates written by hand. The API and the studio come from the model; a website uses a web framework and calls the API.
- Not a database. already so TypeRule stores its data in SQLite or PostgreSQL. It is not sold as a storage engine and does not replace a database for workloads that are not business records.
- Not a spreadsheet engine. already so Apps have cells and formulas, but the formulas are typed TypeRule expressions and every write goes through the rules (Apps and dashboards). No free cells that save data unchecked, no macros.
- Not a BPMN or generic workflow engine. already so Processes are
flow,action, reactions and events on real records (Flows and actions). No executable diagrams kept apart from the data. - Not an integration platform. consequence TypeRule talks to the outside with
emitandoutbound, and receives recorded messages (Variables and connections). Ready-made connectors are a few library modules, not a catalogue of hundreds of apps. - Not a BI tool or a data warehouse. consequence Certified metrics, views, pivots and KPIs are there, because they are needed to work. Analysis over years of data, cubes and joins with outside sources belong to the tools made for them, which read TypeRule's SQL tables or its API.
- Not a CMS, a shop or a website builder. already so Apps show no HTML written by their users and sit behind a sign-in. Storefronts, blogs and public pages stay outside.
- Not a tool for every trade. proposal The audience is the people who write business software and the people who must trust its numbers. Orders, invoices and stock set the priorities, not generic CRUD apps.
Syntax
- No two ways to write the same thing. proposal A new form must remove something, or cover a case that cannot be written today. No sugar for comfort.
- No braces or
endfor blocks. already so Indentation delimits blocks, spaces only; a tab is an error (Syntax). There will be no alternative brace syntax. - No formatter options. proposal
typerule fmthas one output. No line width, quote style or alignment settings: one style, nothing to argue about in reviews. - No macros and no metaprogramming. consequence No code that writes code, no
derive, no reflection at run time. The compiler, and the person reviewing, read the model as it is written. - No user-defined operators and no overloading. proposal
+onMoney<EUR>does what Types says, always. Nobody redefines+on an entity. - No modulo, exponents, hexadecimal or bit operators. already so
%is a percentage. Business software does not need them, and each would take a symbol. - No
whileorloop. already soforiterates over finite collections. It is a termination guarantee worth keeping; the rest is covered by the engine's time and depth limits. - No
try/catch. already so A failure (fail,require, a broken rule) undoes the whole transaction. An alternative is written before, with??orif. Half-done transactions do not exist. - No
async/await, threads or coroutines. consequence Concurrency belongs to the engine (parallel reads, optimistic concurrency), never to the user's code. - No keywords in other languages. proposal Keywords are English and stay so. Names, messages and labels can be in any language, and identifiers accept non-ASCII letters.
- No reserving of common words. already so Reserved keywords are few; the others are contextual, so
key,toandparentstay usable as field names. A new reserved word costs every existing model, so it comes only with a new edition. - No import aliases, whole-module imports or import cycles. already so Every name is imported explicitly and modules are layered (Projects and modules). A cycle is solved with layers or with
extend. - No implicit scope. already so Inside a lambda you use its parameter: no
it, nowith, no names that change meaning with the context. - No
null. already so There isnone, only in optional typesT?, and the compiler makes you handle it (?.,??,if let,required when). - No anonymous unions. already so
Int | Textis refused: use anenumor atrait. Every set of cases has a name, and amatchmust cover them all. - No SQL inside the language. consequence No query strings, no raw SQL. Queries are
where,group_byandsum, translated by the engine. A SQL escape hatch would bypass permissions, history and the dependency analysis. - No free-form annotations that change behaviour. proposal No
@cache,@asyncor@index. What changes meaning is documented, checked syntax; the rest lives intyperule.tomlor does not exist. - No constructs for a single customer. proposal Syntax that one company needs is a module of that company.
- No
sagaconstruct. consequence A saga is a record with aPendingstate, anemit, reactions to the outcomes and a deadline on the clock. The parts are enough. - No construct per protocol. already so Protocols, authentication and signatures are kinds of connection in
typerule.toml, not new syntax. - No words added for style. proposal
implies,becomesandfrozenexist because they state a business concept that would otherwise be written badly. A new word must pass the same test. - No silent changes of meaning. already so The project's
editionintyperule.tomlfixes how the code is read. A breaking change comes with a new edition, never with an option or a flag.
Types and semantics
- No floating point. already so Only exact decimals. There will be no
Floatfor scientific calculations: that is not TypeRule's job. - No automatic currency conversion. already so
EUR + USDdoes not compile. A conversion is written withconvert, with a rate or a date, and the result isExactuntil it is rounded (Types). - No hidden rounding. already so An unrounded amount cannot be stored. "Round it automatically at the end" means hiding where the cents come from.
- No mixing of incompatible units. already so
kg + pcsdoes not compile, and there is no lenient mode. - No research-grade type system. proposal No user-written generics, general dependent types or higher-kinded types. Type parameters exist where the domain needs them (
Money<C>,Qty<U>,Price<C, U>) and stay there. - No inheritance between entities. already so There are traits (shared fields, and a type for references) and
extend. No class hierarchies, nosuper, no overrides. - No format validation by type name. already so
Email,VatNumberandCodeare text with an intent; the format is checked withwhere. The VAT number rules of every country belong in modules, not in the engine. - No dates with a hidden time zone. already so A
Dateis a day, aDateTimean instant in UTC, the project's zone is used only in conversions and any other zone is written out (Types). - No clock in formulas. already so
now()in a formula is an error. What depends on time is adefault, an action, a reaction or a rule re-evaluated by the sweeps. - No side effects in expressions. already so Formulas, checks, functions and permission rules are pure. Effects belong to actions, reactions and tests.
- No I/O from the code. already so No formula or action calls the network or reads a file. The outside world comes in as a recorded message and goes out as a recorded event.
- No reading of secrets. already so A secret is only handed to a connection: the code knows its name, never its value (Variables and connections).
- No arbitrary URLs or hosts. already so The destination is a declared connection; the code chooses only the path. No SSRF, no exfiltration.
- No AI models inside formulas or rules. consequence An AI is not deterministic, and a certified number cannot depend on one. An AI can write TypeRule code, read the data through the API and propose changes like anyone else; a result that enters the data enters as a recorded message.
- No randomness in the engine. proposal No
random()in formulas and rules. When a case truly needs it (a discount code), the value is made outside or in an action, and ends up in the history. - No history as a value in expressions. already so
rec.historyandrec.as_of(…)are compile errors: the history is read withwhy()and the API. A formula that reads the past could not be kept up to date. - No endless cascades. already so A reaction that can trigger itself is refused until it is declared
converges, and at run time 20 rounds stop the transaction. The limit will not be raised for one case: the model is rewritten. - No states written by hand. already so A state changes only through the actions of its flow. There is no "allow direct assignment for admins".
Data, history and storage
- No deleting or rewriting of history. already so Every value written is kept, and the hash chain proves it. Erasing personal data will work by destroying their encryption keys, not by removing rows.
- No
UPDATEby hand on the tables. already so The tables are projections, andtyperule db verifyfinds who touched them. Bulk corrections arechangeblocks: reason, preview, approval, revert. - Not a database other programs write to. consequence Other tools read the SQL tables; they write only through the API, which applies rules and permissions.
- No triggers, stored procedures or user views in the database. consequence All the logic lives in the model, so it holds from every entry point and can be tested.
- No schema changes at run time by end users. proposal No custom fields added from the studio in production, no entity-attribute-value tables. A new field is code:
extend, review, migration, deploy. That is the price of types, and it is worth paying. - No soft delete by convention. proposal The life of a record is its
flow(Cancelled,Archived), and the history keeps everything. No implicitdeletedcolumn. - No transactions across databases. consequence A project's environment is one database with one writer. Two of them talk through events and messages, never through a distributed commit.
- Not multi-master, not offline-first. consequence No CRDTs, no writable replicas syncing from a phone. There is one writer, and that is why the books balance.
- No pessimistic locks in the code. already so Concurrency is optimistic: a commit on data that others changed is refused with who, what and when (Storage). No
select for updatein the language. - Not a file store. proposal Attachments, within what business software needs. Videos, backups and gigabyte datasets go to an object store, and the record keeps a reference.
- Not a time-series or telemetry database. proposal Sensor readings every second, application logs and clickstreams: no. Business software receives the summaries (consumption per shift, a machine stop), not the raw stream.
- Not a search engine. already so Word search on text fields, yes (Full-text search). Semantic search, ranking, synonyms and vectors: no.
- No storage engines beyond SQLite and PostgreSQL. proposal No MySQL, SQL Server or Oracle as TypeRule's own storage. Reading from and writing to them as outside systems, yes, through integrations.
- No schema patched by hand per installation. already so The schema comes from the code. Every installation of the same code has the same tables.
- No migrations that hope. already so A migration checks the new rules on the real data, with a dry run, provisional values and verification.
- No "trust me" numbers. already so A certified metric cannot change meaning quietly: a changed definition fails
typerule checkuntil someone approves it again.
Logic, permissions and integrations
- No permissions in endpoints. already so Permissions are
rolerules on rows and fields, valid everywhere. No "only admins see this endpoint" outside the model. - No per-record sharing by hand. proposal No file-sharing style access lists. To share a record with a person, model it: an entity of shares and a
readrule. - No data given away by sharing an app or a view. already so Sharing an app shares its layout and formulas; everyone sees what they may see.
- Not an identity provider. proposal TypeRule manages the users and roles of its apps, sign-in with emailed codes and API tokens. It does not become the identity provider of other systems.
- No rules edited by business users at run time. proposal Rules are code, with tests and review. What must change often (a price list, a threshold) is data, and a rule reads it.
- Not a message broker. consequence The outbox guarantees the delivery of a project's events. Topics, consumer groups and retention policies between other systems belong to a queue or a broker.
- Not an ETL tool. proposal Bulk import, incoming files and typed external formats, yes. Transformation pipelines between systems that do not touch the model: no.
- No code in other languages. consequence No JavaScript, Python or Lua inside actions, no user WebAssembly in the engine. The way out is an outside program that uses the API and reads the events.
- No engine plugins. proposal The engine loads no native extensions. The command line runs outside commands named
typerule-<name>, as git does, and they stay outside the engine (CLI). - No synchronous calls inside a transaction. consequence An action never waits for an HTTP reply. It emits an event, the event is delivered after the commit, and the outcome comes back as a new transaction.
- No "exactly once" promise to the outside. consequence No committed event is ever lost, and duplicates carry the same idempotency key. The rest is up to the receiver, and we say so.
- Not an email marketing tool. proposal Transactional email (an order, an invoice, a reminder), yes. Campaigns, lists, A/B tests and open tracking: no.
- No documents rendered by a browser. consequence Printed documents must come out identical byte for byte when regenerated, so they are produced by an embedded typesetting engine, never by a headless browser turning HTML into PDF.
- No WYSIWYG print designer as the source. proposal Documents are files of the project, checked by the compiler. A visual editor may come on top, but the format stays text.
The studio
- Not a free-form interface builder. already so The studio shows the model: grids, boards, records, views and apps made of known components. No pages drawn pixel by pixel.
- No user HTML, CSS or JavaScript. already so Not in apps, not in fields, not in themes. A custom interface is built outside, on the API.
- No second kind of app. already so An app made in the studio and an interface file are the same thing, checked with the code.
- No business logic in the interface. consequence A button runs an action, a form creates a record: the rules are in the model. No validation that exists only in a form.
- No native mobile apps from TypeRule. proposal The studio is a web app and must work well on small screens. A native app is built on the API, with its own release cycle.
- No offline mode. consequence See item 60. A warehouse without coverage uses a device that queues its work and sends it to the API when the network is back; the engine does not change.
- Not a full IDE. proposal The studio's editor is for quick fixes and trials. Serious work happens in your editor with the extension and language server. No visual debugger, extension manager or terminal in the studio.
- No studio per industry. proposal No construction studio, no healthcare studio. The industry is in the model; the studio is one.
TypeRule Cloud
- Not a generic hosting platform. already so TypeRule Cloud runs TypeRule projects only: no container images, no services in other languages, no separate databases.
- No language features that exist only in the cloud. already so The language does not depend on the cloud and runs the same when you host it yourself. The cloud adds hosting, limits, metering and delivery, not meaning.
- No container per customer. already so Shared processes run the projects, and idle ones sleep in object storage at no cost.
- No lock-in to a provider. already so The platform runs on plain machines with docker compose, and a project's data is a database file and its log, which can move to any machine, or to your own servers.
- No access to the database file or the machine. already so No shell on the servers, no download of a live database by your code. Exports and the console go through the API, with the permissions of whoever asks.
- No cron jobs with arbitrary code. already so What depends on time is rules and reactions that the engine re-evaluates when they fall due. No "script that runs every night".
- No unlimited resources. already so Every plan has limits per request, per job and per size. They are not raised for a slow model: the query is rewritten.
- No management of the customer's infrastructure. proposal An on-premise agent will reach systems behind a firewall. It will not install, update or monitor the customer's servers.
- No custom builds for one customer. proposal Every project runs the same released engine. A fix or a feature one customer needs goes into a release for everyone, or into that customer's own code.
- Not a consulting service. proposal TypeRule Cloud hosts projects; it does not write them. Building your system is the work of your team, of a software house, or of a partner.
Not "no", but "not yet"
These are in scope, on the roadmap, even if they are not there today:
- a PostgreSQL class for very large projects in the cloud;
- custom domains for apps in the cloud;
- files over SFTP, databases of other management systems, incoming email, and an on-premise agent;
- printed documents, labels and signed PDF and XML;
- signed commits and erasure of personal data;
- an interactive console to explore the data.
And for whoever asks for something on the list above, these roads stay open: the HTTP API, the live stream, the events, the SQL tables for reading, typerule-<name> commands, and TypeRule modules published by others. A "no" to a feature is almost never "it can't be done": it is "it is done outside the engine".
How this page changes
- Removing an item means saying which guarantee of TypeRule gets weaker, and why it is worth it. A customer's request alone is not enough.
- Adding one is easy: a case where we said no twice.
- Items marked proposal are confirmed or removed one by one; until then, they are a direction, not a rule.