Implementing Your SaaS Product

Modular Architecture

The Next.js 15 StarShip Developer Kit is built with a modular architecture, allowing you to easily add, modify or remove features based on your specific needs.

The developer kit follows a feature-based organization where each major feature (authentication, payments, blog, etc.) is contained within its own directory structure.

Removing Features

To remove features like documentation or blog that you don't need for your SaaS product, follow the detailed instructions in our Removing Features guide.

Customizing for Your SaaS

1. Core Features

Start by identifying and keeping only the core features you need:

  • Authentication system
  • User management
  • Payment processing (if required)
  • Core business logic

2. Environment Configuration

Update your .env file to include only the services you need:

  • Remove unused API keys
  • Configure only the services you'll use

3. Database Schema

Modify the database schema in src/db/schema to match your data model:

  • Remove unused tables
  • Add your custom tables

4. API Routes

Customize the API routes in src/app/api:

  • Remove unused endpoints
  • Add your custom API routes

Best Practices

  • Keep the core authentication and user management system
  • Maintain the modular structure for future scalability
  • Use the existing UI components as a foundation
  • Leverage the built-in security features
  • Follow the established coding patterns and conventions