PolarKit unifies Firebase Auth, Polar.sh, and Extension features into one production-ready monorepo — so you can ship premium extensions without rebuilding the plumbing.
Trusted partners & technologies
Stand out in the developer ecosystem — PolarKit gives you high-quality, production-grade modules that ship fast and scale confidently.
PolarKit is structured as a Yarn workspace monorepo. Every integration is a self-contained NestJS module you can enable independently.
Choose the monetization stack that fits your business. Swap or combine providers with zero infrastructure changes.
Clone, configure, and launch. The monorepo handles everything else.
git clone github.com/dojoVader/polarkit
docker compose up --build --force-recreate --watch
cp .env.example .env
cd apps/backend && yarn run start:debug
cd apps/spa && yarn run start
@Post('webhook') @UseInterceptors(PolarWebhookLoggerInterceptor) async handleWebhook( @Req() req: Request, @Headers() headers: Record<string, string>, @Body() payload: Record<string, unknown>, ) { const secret = this.config.get<string>('POLAR_WEBHOOK_SECRET') ?? ''; const rawBody: Buffer = (req as Request & { rawBody?: Buffer }).rawBody ?? Buffer.from(JSON.stringify(payload)); try { await this.polarEventHandler.handleEvent(rawBody, headers, secret); } catch (err) { if (err instanceof WebhookVerificationError) { throw new BadRequestException('Invalid webhook signature'); } throw err; } const eventType = (payload.type as string) ?? 'unknown'; const environment = this.config.get('POLAR_ENVIRONMENT'); await this.polarService.createPaymentRecord( eventType, payload, environment ?? 'Test', ); return { received: true }; }
A visual tour of PolarKit's dashboard, webhooks, and developer experience.
PolarKit is MIT-licensed and completely free. Fork it, extend it, make it yours.
PolarKit is built to run seamlessly on Dokploy — the open-source deployment platform that gives you the power of Heroku without the bill. One-click deploys, zero server headaches.