Triplex

Open Source Library

Contributor

Tech stack

Elixir Elixir PostgreSQL PostgreSQL

URL

hexdocs.pm/triplex/readme.html github.com/FilipPauco/triplex

Triplex

📜 Description

An open-source Elixir library for building multitenant applications with Ecto, Elixir’s database toolkit. Triplex isolates each tenant’s data using database techniques such as PostgreSQL schemas, while allowing developers to continue using familiar Ecto queries and functions.

⚙️ Features

  • Multitenancy – Isolate tenant data using PostgreSQL schemas or MySQL databases
  • Ecto Integration – Seamlessly use Ecto queries with tenant prefixes
  • Tenant Migrations – Run and manage migrations across all tenant schemas
  • Plug Support – Load current tenant from subdomain, session, or path via configurable plugs
  • Tenant Lifecycle – Create, rename, and drop tenants with simple API calls
  • Seed Options & Commands – Seed options and mix commands for tenant-aware database seeding