Register Your Project

To start using , you need to register your project. Visit the Dashboard and create a new project. This will provide you with a project_id that you will use in your extension. Optionally, add plans and credits to your project.

Install

npm install @crxbase/client

Initialize the Client

import { Client } from "@crxbase/client";

const client = new Client("your_project_id");

Fetch User Info

const user = await client.getUser();

if (user?.paid) {
	// Enable premium features
}
Open the subscription page for new users with client.openSubscriptionPage() or the login page using client.openLoginPage() for existing subscribers. Checkout the Library Methods page for more details on available methods.