Database tables on demand
Define a collection via API and unilayer creates the real PostgreSQL table at runtime. Filtering, sorting, paging, field selection, unique indices and relations included.
Open source · Self-hosted · .NET 10
unilayer puts your data and files behind one secure API, with access of its own for every app. Create database tables at runtime, store and transform assets, give each app a token and only the permissions it needs – over REST or GraphQL, on your own infrastructure.
The solution
Define a collection via API and unilayer creates the real PostgreSQL table at runtime. Filtering, sorting, paging, field selection, unique indices and relations included.
Uploads and downloads go through the storage service or straight to S3 – resumable, in parts, with range requests and quotas per scope. SHA-256 checksums, versioning, soft-delete and purge, plus on-the-fly resizing, WebP conversion and lossless optimization of images.
An API user per app or service, each with one role and its own token – one that writes for your admin UI, one that only reads for your website. Permissions down to a single collection, e.g. collections:shop:orders:read.
Developer experience
The typed .NET client maps your models to collections, syncs the schema and speaks LINQ. Not on .NET? Every collection is instantly available over REST and an auto-generated GraphQL schema.
// 1. Describe your data
[UniCollection("customers")]
public class Customer
{
[UniField("email", IsUnique = true)]
public string Email { get; set; }
[UniField("iban", IsEncrypted = true)]
public string Iban { get; set; }
[UniField("revenue")]
public decimal Revenue { get; set; }
}
// 2. Use it
await client.SyncCollectionSchemaAsync<Customer>();
var vips = await client.Query<Customer>()
.Where(c => c.Revenue > 10000)
.OrderBy(c => c.Email)
.ToListAsync();Production-ready
Cluster mode with Raft leader election. Writes replicate to every node, reads stay local, failover is automatic.
TLS with hot-reloaded certificates (mandatory in cluster mode), node-to-node mutual TLS, hashed tokens, rate limiting and a permission model in which nobody can grant more than they hold.
Every schema change is recorded in a system history – exportable, importable, traceable.
Valkey caching with automatic invalidation on writes, Brotli/gzip responses, bulk writes of up to 1,000 items. Health checks and Prometheus metrics.
Why unilayer
SaaS backends are fast to start and hard to leave. unilayer gives you the same speed, but it is open source and runs wherever you want – on-prem, in your cloud, with one docker compose up. No vendor lock-in, no data leaving your network, no per-request pricing surprises. And if we ever disappear, your backend keeps running.
Plans
No paywalls, no locked modules, no "enterprise edition". Cluster mode, encryption and GraphQL are all in the open-source release.
Free
Open source · AGPLv3 / MIT
On request
Directly from the maintainers
Coming later
Fully managed by us