Pynspel

Discord bot platform: bot runtime, REST API, admin dashboard and Stripe billing in one monorepo.

Pynspel is an open-source full-stack monorepo platform for building production-grade Discord bot applications. originally built as a commercial SaaS, it includes a feature-rich bot runtime (Discord.js), a performant REST API (Express.js), and a modern, admin dashboard (Next.js). OAuth-based authentication, and Stripe-powered billing, the system emphasizes modularity, type safety, and developer experience. shared Zod schemas, Redis caching, PostgreSQL persistence, and WebSockets ensure scalable and dynamic server management.

features

  • modular system architecture

    each bot feature is a self-contained module with its own lifecycle, isolated state, and independent configuration.

  • full-stack type safety

    TypeScript and Zod schemas are shared across frontend, backend, and runtime for end-to-end consistency and better DX.

  • OAuth2 authentication & RBAC

    users authenticate via Auth0 with Discord OAuth, and are assigned roles with fine-grained dashboard permissions.

  • Stripe billing integration

    seamless Stripe integration for subscription-based monetization, webhook-driven feature toggling, and usage tracking.

  • caching & performance optimization

    Redis is used to cache frequently accessed guild settings, reducing database reads and improving response times.

  • robust observability & error handling

    includes structured logging, alerting hooks, and unified error boundaries across services to ensure uptime and traceability.

  • developer-first tooling

    monorepo structure using Turborepo and PNPM, with isolated packages, clean DX, and CI-ready workflows.

stack

TypeScript, Next.js, React, Express.js, PostgreSQL, Redis, Discord.js, Zod, Stripe, OAuth (Auth0), WebSocket, Turborepo, PNPM, Vitest, Tsup, React Query, Recoil, PandaCSS