Envault
Guides

Initial Setup

Configuring your Envault instance

After installing the dependencies, you need to configure the core services.

Database Setup (Supabase)

Envault relies on Supabase for authentication and database storage.

  1. Create a new project in the Supabase Dashboard.
  2. Go to Project Settings > API and copy your:
    • Project URL
    • anon public key
    • service_role secret key (keep this safe!)

Update your .env.local file:

NEXT_PUBLIC_SUPABASE_URL=your_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_key

Encryption Keys

Envault uses a master key to encrypt the database keys. This is critical for security.

Critical Security Warning

You must generate a strong random string for your ENCRYPTION_KEY. If you lose this key, all data encrypted with it will be irretrievable.

Generate a secure key (e.g., using openssl):

openssl rand -hex 32

Add this to your .env.local:

ENCRYPTION_KEY=your_generated_hex_key

Running the Development Server

Now you are ready to start the application.

npm run dev

Open http://localhost:3000 with your browser to see the result.

On this page