BeanCounter

App LogoAPP_NAME

v1.0.0

No Logo

BeanCounter Documentation

Complete API reference, webhook documentation, and integration guides for developers building with BeanCounter.

API Reference

Complete API documentation with method signatures, request/response examples, and error handling.

Download

Download documentation in various formats for offline viewing or integration.

Overview

BeanCounter is a modular Next.js 15 monorepo framework that provides a comprehensive set of APIs, webhooks, and services for building scalable applications.

Base URLs

  • API Server: http://localhost:3005 (development)
  • Web Application: http://localhost:3000 (development)

Quick Start

Setup Commands

# Clone and setup
git clone <repository-url>
cd beancounter
./scripts/setup.sh

# Environment configuration
cp env.example .env.local

# Start development
npm run dev

Architecture

BeanCounter is built with a modular monorepo architecture using Turborepo and pnpm workspaces.

Apps

  • • @schoolbeans/web - Main Next.js web application
  • • @schoolbeans/api - API server with webhooks and cron jobs

Packages

  • • @schoolbeans/ui - Shared UI components
  • • @schoolbeans/database - Database schema and migrations
  • • @schoolbeans/auth - Authentication utilities
  • • @schoolbeans/events - Event bus and hooks system

Authentication & RBAC

Complete user management with role-based access control and multiple authentication providers.

Features

  • • Auth.js integration with multiple providers
  • • Role-based access control (RBAC)
  • • Multi-factor authentication (MFA)
  • • Passkey support
  • • Session management

Plugin System

Extensible plugin architecture with hooks, UI components, and database integration.

Plugin Features

  • • ZIP file upload and installation
  • • Hook system for middleware integration
  • • UI component injection
  • • Database table namespacing
  • • Version management and updates

Events & Hooks

Event-driven architecture with a comprehensive hook system for middleware and plugins.

Event Types

  • • user:created
  • • user:updated
  • • auth:signin
  • • plugin:installed
  • • notification:sent
  • • webhook:received
  • • cron:executed

Ready to Get Started?

Explore the complete API documentation and start building with BeanCounter.