Open source · Self-hosted · .NET 10

Stop rebuilding the backend.
Ship the product.

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.

Every new project starts with the same three months of plumbing.

  • Schema & CRUDMigrations, endpoints, validation, paging, filters – for every single table.
  • FilesUploads, storage backends, thumbnails, versioning, checksums.
  • Access controlTokens, roles and fine-grained permissions for every app and service – and getting them right.

The solution

Three building blocks. One layer. Zero boilerplate.

01 / Collections

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.

02 / Assets

Files, versioned & transformed

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.

03 / Access

Permissions that scale

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

Write a C# class. Get a backend.

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.

  • ✓LINQ queries translated to server-side filters
  • ✓Client-side field encryption with AES-256-GCM – the server only sees ciphertext
  • ✓Schema versioning & migrations built into the client
  • ✓OpenAPI docs and GraphQL explorer out of the box
// 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

Built for the day it really matters.

High availability

Cluster mode with Raft leader election. Writes replicate to every node, reads stay local, failover is automatic.

Secure by default

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.

Audit trail

Every schema change is recorded in a system history – exportable, importable, traceable.

Fast

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

Your infrastructure. Your data. Your rules.

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.

APIs
REST + GraphQL
Hosting
Self-hosted
License
Open source
Setup
docker compose

Perfect for

Internal tools & admin portalsBlazor & .NET applicationsHeadless CMS & content platformsMVPs & prototypes that go to productionGDPR-sensitive dataMulti-app backends

Plans

Every feature is free. You pay for guarantees.

No paywalls, no locked modules, no "enterprise edition". Cluster mode, encryption and GraphQL are all in the open-source release.

Community

Free

Open source · AGPLv3 / MIT

  • ✓The complete product, self-hosted
  • ✓Commercial use included
  • ✓MIT-licensed .NET client for your apps
  • ✓Community help via issues
Get the source →
For production

Premium Support

On request

Directly from the maintainers

  • ✓Guaranteed response times
  • ✓Help with setup, cluster mode and upgrades
  • ✓Priority bug fixes
  • ✓Early security advisories
Talk to us →

unilayer Cloud

Coming later

Fully managed by us

  • ○unilayer without running servers
  • ○Updates and backups handled for you
  • ○The same open-source core, no lock-in
Join the waitlist →