Skip to main content

Welcome to Connect World

Connect World is a comprehensive streaming service SaaS platform that enables users to subscribe to video content with flexible payment options and multi-device streaming capabilities.

What is Connect World?

Connect World is a production-ready streaming platform that combines:
  • Content Streaming: Integration with TMDB (The Movie Database) for rich media catalogs
  • Subscription Management: Flexible plans with 1, 2, or 3 device tiers
  • Payment Processing: Dual payment provider support (Stripe & PayPal)
  • Customer Portal: Secure checkout and order management
Connect World follows Clean Architecture principles with clear separation between domain, application, infrastructure, and presentation layers.

Key Features

Multiple Subscription Plans

Three tier system (Basic, Standard, Premium) with flexible duration options from 1 to 12 months

Dual Payment Processing

Integrated Stripe and PayPal payment gateways with secure transaction handling

TMDB Integration

Real-time content catalog powered by The Movie Database API with trending movies and series

MongoDB Database

Scalable NoSQL database with Mongoose ODM for customer and order management

Rate Limiting

Built-in rate limiting protection for API endpoints (10 requests per 15 minutes)

Security Hardened

Comprehensive security headers including CSP, HSTS, and XSS protection

Architecture Overview

Connect World implements a clean, layered architecture:
src/
├── domain/           # Business entities and rules
│   ├── entities/     # Plan, Order, Customer
│   ├── repositories/ # Repository interfaces
│   └── value-objects/# Email, Phone validation
├── application/      # Use cases and DTOs
├── infrastructure/   # External services
│   ├── database/     # MongoDB models
│   └── external/     # TMDB API client
└── presentation/     # React components
The architecture ensures that business logic in the domain layer is completely independent of frameworks and external dependencies.

Technology Stack

Core Framework

  • Next.js 16.1.6 - React framework with App Router
  • React 19.2.3 - UI library
  • TypeScript 5 - Type-safe development

Database & ORM

  • MongoDB - NoSQL database
  • Mongoose 9.2.4 - MongoDB object modeling

Payment Processing

  • Stripe 20.4.1 - Payment processing SDK
  • @stripe/stripe-js 8.9.0 - Stripe.js for frontend
  • @stripe/react-stripe-js 5.6.1 - React components
  • @paypal/react-paypal-js 9.0.1 - PayPal integration

Content API

  • TMDB API - Movie and TV show metadata
  • Axios 1.13.6 - HTTP client for API requests

UI & Styling

  • Tailwind CSS 4 - Utility-first CSS framework
  • Framer Motion 12.35.1 - Animation library
  • Lucide React - Icon library

Subscription Plans

Connect World offers three subscription tiers:
export interface Plan {
  id: string;
  devices: 1 | 2 | 3;
  name: string;
  description: string;
  prices: PlanPrice[];
  features: string[];
  popular?: boolean;
}

Plan Features

Basic Plan (1 Device)
  • 1 simultaneous device
  • HD & Full HD quality
  • Unlimited catalog access
  • 24/7 support
Standard Plan (2 Devices) - Most Popular
  • 2 simultaneous devices
  • HD & Full HD quality
  • Unlimited catalog access
  • Custom profiles
  • 24/7 support
Premium Plan (3 Devices)
  • 3 simultaneous devices
  • 4K Ultra HD quality
  • Unlimited catalog access
  • Custom profiles
  • Offline downloads
  • Priority 24/7 support

Security Features

Connect World implements multiple security layers:
1

Input Sanitization

All user inputs are sanitized using custom validation functions before processing
2

Rate Limiting

In-memory rate limiter protects API endpoints from abuse (10 requests per 15 minutes per IP)
3

Payment Validation

Server-side price validation prevents client-side tampering
4

Security Headers

Comprehensive CSP, HSTS, X-Frame-Options, and XSS protection headers
The in-memory rate limiter is suitable for single-instance deployments. For production multi-instance deployments, consider using Redis-based rate limiting.

Next Steps

Quick Start

Get your first subscription running in minutes

Installation

Complete setup guide with all configuration options

API Reference

Explore the API endpoints and data models

Development Guide

Learn about the architecture and development workflow

Build docs developers (and LLMs) love