Skip to content

SavioCodes/OnboardPulse

OnboardPulse

CI License: MIT Next.js

Multi-tenant onboarding SaaS with billing and automated follow-up orchestration.

PT-BR: Plataforma SaaS de onboarding com foco em organizacao multi-tenant e operacao de produto real.

Why This Exists

Teams need a repeatable way to onboard clients with clear lifecycle, billing controls, and follow-up automation.

Architecture

flowchart LR
  User[Authenticated User] --> Web[Next.js App Router]
  Web --> API[Server Actions / API Routes]
  API --> Domain[Onboarding + Billing + Follow-up Services]
  Domain --> DB[(PostgreSQL via Prisma)]
  Domain --> MP[Mercado Pago]
  Domain --> AI[Gemini Models]
  Domain --> Storage[S3/Local Storage]
Loading

Tech Stack

  • Application: Next.js 16, TypeScript
  • Data: Prisma + PostgreSQL (Supabase-compatible)
  • Auth: NextAuth
  • Billing: Mercado Pago
  • Tests: Vitest
  • CI: GitHub Actions

Repository Structure

app/            # App Router pages and APIs
components/     # Shared UI components
lib/            # Domain services and integrations
prisma/         # Schema and seed scripts
tests/          # Automated tests
docs/           # Architecture and deployment notes

Quickstart

npm install
cp .env.example .env.local
npm run dev

Test and Quality Gates

npm run lint
npm test
npm run build

Operational Signals

  • CI enforces lint, tests, and production build readiness on the public branch.
  • Product and deployment notes live in docs/, while schema and service behavior stay close to the codebase.
  • The main workflow is operational by design: tenant-scoped onboarding, billing hooks, and follow-up automation run as one product system.
npm run lint
npm test
npm run build

Environment Notes

  • For local DB setup, run npx prisma db push after configuring DATABASE_URL.
  • Storage defaults to local in development and should use S3-compatible backend in production.

Technical Decisions and Trade-offs

  • Application-level tenant isolation (organizationId) keeps the code explicit; RLS can be added later.
  • Prisma chosen for developer speed and schema migration workflow.
  • Billing and automation hooks are integrated early to reflect production-like constraints.

Roadmap

  • Add integration tests for billing lifecycle transitions
  • Add tenant-level observability dashboards
  • Add stronger policy checks for follow-up automation jobs

License

MIT. See LICENSE.

About

Multi-tenant onboarding SaaS with billing, follow-up automation, and product operations docs.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages