Getting Started

Installation

Install permly and choose your database

What it does

This page walks you through installing permly and picking the right database driver for your app.

Install permly

npm install permly

permly has no runtime dependencies, so that's all you need for the core.

Pick your database driver

permly works with four databases. Choose one based on what you're already using:

MySQL or MariaDB

npm install mysql2

Use this if you have a MySQL 8.4+ or MariaDB 11+ database.

PostgreSQL

npm install pg

Use this if you have Postgres 13+ (including Supabase, Neon, RDS).

MongoDB

npm install mongodb

If you already use mongoose, no extra install needed — permly works with both.

MongoDB 7+ is supported, standalone or replica set.

In-Memory (for testing)

No install needed. The memory adapter is built in and perfect for:

  • Trying permly out
  • Writing tests
  • Prototypes

TypeScript users

If you're using TypeScript, you already have what you need.

Node.js version

permly requires Node.js 18+. Version 22 or 24 is recommended (18 and 20 are end-of-life but still tested).

Platform

permly works on Linux, macOS, and Windows.

Next steps