open-index/open-npm huggingface dataset:
npm package: 4good-iam
Description: ## [📘 Docs](https://docs.authentication.4gd.ai) | [☁️ Hosted Version](https://authentication.4gd.ai/) | [✨ Demo](https://demo.authentication.4gd.ai/) | [🎮 Discord](https://discord.authentication.4gd.ai) | [GitHub](https://github.com/4good-iam/4good-iam)
Latest version: 2.8.20

# 4good IAM: Open-source Clerk/Auth0 alternative

## [📘 Docs](https://docs.authentication.4gd.ai) | [☁️ Hosted Version](https://authentication.4gd.ai/) | [✨ Demo](https://demo.authentication.4gd.ai/) | [🎮 Discord](https://discord.authentication.4gd.ai) | [GitHub](https://github.com/4good-iam/4good-iam)

4good IAM is a managed user authentication solution. It is developer-friendly and fully open-source (licensed under MIT and AGPL).

4good IAM gets you started in just five minutes, after which you'll be ready to use all of its features as you grow your project. Our managed service is completely optional and you can export your user data and self-host, for free, at any time.

We support Next.js frontends, along with any backend that can use our [REST API](https://docs.authentication.4gd.ai/rest-api/overview). Check out our [setup guide](https://docs.authentication.4gd.ai/getting-started/setup) to get started.

## 📦 Installation & Setup

1. Run 4good IAM's installation wizard with the following command:
    ```bash
    npx @4good/init-iam@latest
    ```
2. Then, create an account on the [4good IAM dashboard](https://app.authentication.4gd.ai/projects), create a new project with an API key, and copy its environment variables into the .env.local file of your Next.js project:
    ```
    NEXT_PUBLIC_IAM_PROJECT_ID=<your-project-id>
    NEXT_PUBLIC_IAM_PUBLISHABLE_CLIENT_KEY=<your-publishable-client-key>
    IAM_SECRET_SERVER_KEY=<your-secret-server-key>
    ```
3. That's it! You can run your app with `npm run dev` and go to [http://localhost:3000/handler/signup](http://localhost:3000/handler/signup) to see the sign-up page. You can also check out the account settings page at [http://localhost:3000/handler/account-settings](http://localhost:3000/handler/account-settings).


Check out the [documentation](https://docs.authentication.4gd.ai/getting-started/setup) for a more detailed guide.