Skip to main content

Credit System Documentation

The credit system is a core feature of CivStart that controls startup access to government signals through a credit-based model.

Documentation Files

OVERVIEW.md

Complete backend implementation guide for the credit system including:

  • Architecture and design patterns
  • API endpoints
  • Database schema
  • Integration points

INTEGRATION.md

How the credit system integrates with other platform features:

  • Signal pool integration
  • Contact request workflow
  • Admin panel integration
  • Frontend components

AUDIT_RESULTS.md

Comprehensive audit of the credit system covering:

  • Code quality review
  • Security assessment
  • Performance analysis
  • Recommendations for improvements

CLEANUP_NOTES.md

Documentation of refinements and cleanup work:

  • Code refactoring
  • Bug fixes
  • Performance optimizations
  • Technical debt reduction

Key Concepts

Credit Tiers: Different subscription levels with varying credit allocations Credit Actions: Specific actions that consume credits (e.g., contact requests) Credit Configurations: Admin-configurable costs for different actions Credit Transactions: Audit trail of all credit usage