Maniac LogoManiac

Installation

Install and set up Maniac in your project

Prerequisites

Before installing Maniac, make sure you have:

  • A package manager (typically npm or pip, depending on your language)

Authentication

API keys are scoped per-project per-user. If you create a new project, you will need to create a new key.

Installation

Install Maniac

npm install maniac-js

Configure your environment

Add your API key to .env.local:

.env.local
MANIAC_API_KEY=***********

Use your API key in the client

By default, the client reads from process.env.MANIAC_API_KEY

main.py
const client = new Maniac({apiKey: <YOUR_API_KEY>})

Install Maniac

npm install maniac

Configure your environment

Add your API key to .env:

.env
export MANIAC_API_KEY="***********"

Use your API key in the client

By default, the client reads from os.getenv("MANIAC_API_KEY")

main.py
client = Maniac(apiKey=<YOUR_API_KEY>)

Make sure to keep your MANIAC_API_KEY environment variable secure and never commit it to version control.

Next Steps