Back to Home
axite-ai icon

apps-sdk-template

Verified Safe

by axite-ai

Overview

A lightweight, type-safe starter for building ChatGPT MCP apps with Next.js and Skybridge, featuring OAuth 2.1 authentication, optional Stripe subscription support, and Drizzle ORM with PostgreSQL.

Installation

Run Command
pnpm dev

Environment Variables

  • DATABASE_URL
  • REDIS_URL
  • BETTER_AUTH_SECRET
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • ENABLE_SUBSCRIPTIONS
  • STRIPE_SECRET_KEY
  • STRIPE_WEBHOOK_SECRET
  • STRIPE_BASIC_PRICE_ID
  • STRIPE_PRO_PRICE_ID
  • STRIPE_ENTERPRISE_PRICE_ID
  • ENABLE_PASSKEYS
  • BETTER_AUTH_URL
  • BETTER_AUTH_BASE_PATH
  • MCP_RESOURCE_URL
  • NODE_ENV
  • POSTGRES_SSL
  • BASE_URL

Security Notes

The `NextChatSDKBootstrap.tsx` file includes an inline script used for SDK bootstrapping within iframes. This script manipulates `window.history` and `window.fetch` to ensure proper widget behavior (e.g., external links, API calls). While inline scripts generally require careful review, this implementation appears designed to enable core functionality rather than malicious intent. The project effectively uses environment variables for sensitive configurations (`BETTER_AUTH_SECRET`, `STRIPE_SECRET_KEY`, `GOOGLE_CLIENT_SECRET`), with `lib/utils/env-validation.ts` providing startup validation to ensure critical variables are set, mitigating hardcoded secret risks. Drizzle ORM helps prevent SQL injection. Rate limiting is implemented via Redis. Overall, good security practices are in place, but the nature of embedded dynamic scripts warrants ongoing vigilance.

Similar Servers

Stats

Interest Score19
Security Score8
Cost ClassMedium
Avg Tokens500
Stars3
Forks0
Last Update2025-12-25

Tags

ChatGPTMCPNext.jsSkybridgeOAuth 2.1StripeDrizzle ORMPostgreSQL