Open source · Self-hosted · .NET 10

Stop rebuilding the backend.
Ship the product.

unilayer puts your data, files and users behind one secure API. Create database tables at runtime, store and transform assets, manage permissions – 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 controlUsers, tokens, roles, fine-grained permissions – 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

Upload once, store locally or on S3/MinIO. SHA-256 checksums, versioning, soft-delete – plus on-the-fly image resizing and WebP conversion via URL parameters.

03 / Users

Permissions that scale

Users, roles and policies managed through the API. 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

Mandatory TLS and node-to-node mutual TLS, hashed tokens, rate limiting and a least-privilege permission model.

Audit trail

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

Fast

Valkey caching with automatic invalidation on writes. Health checks for database, cache and storage.

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, in a single container. 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
One container

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 →