Skip to main content
Normalized for Mintlify from knowledge-base/aiconnected-apps-and-modules/modules/aiConnected-paper/paper-readme.mdx.

Paper by aiConnected

<div align="center">

Paper by aiConnected Version License AI-Powered Thought Leadership Content Platform DemoDocumentationGetting StartedTech Stack </div>

Overview

Paper by aiConnected is a white-label SaaS platform that generates professional thought leadership content for marketing agencies and their clients. The platform produces executive-quality PDF documents with original research, statistics, data visualizations, and professional design—all powered by AI.

What Makes Paper Different

FeaturePaper by aiConnectedTypical AI Content Tools
Research DepthDeep research from 20-500 sourcesShallow blog scraping (3-5 sources)
Output QualityConsulting-firm quality PDFsPlain text or basic formatting
Visual DesignDynamic charts, callout boxes, professional typographyGeneric templates
White-LabelComplete branding control with custom domainsLogo swap only
ScaleProgrammatic generation via CSV importManual UI only

Key Features

🎯 For Marketing Agencies

  • White-Label Platform — Full branding customization including custom domains
  • Multi-Client Management — Organize and manage all your clients in one place
  • Team Collaboration — Role-based access for agency admins, members, and clients
  • Bulk Generation — Import CSV files to generate content at scale

📄 Content Generation

  • AI Research Engine — Deep research synthesis from hundreds of sources
  • Professional PDFs — Executive-quality documents with charts and data visualizations
  • Multiple Templates — Trend Analysis, Explainers, Predictions, Opinion pieces, and more
  • Smart Scheduling — Automate content generation on a recurring basis

📊 Distribution & Analytics

  • Social Media Integration — Publish directly to LinkedIn, Facebook, Twitter/X, and Google Business
  • Download Options — PDF downloads with branded cover pages
  • Usage Analytics — Track generation history and API usage

Tech Stack

Backend

TechnologyVersionPurpose
Python3.11+Primary language
FastAPI0.109+REST API framework
PostgreSQL15+Primary database
SQLAlchemy2.0+ORM
Celery5.3+Async task processing
Redis7+Message broker & caching
WeasyPrint60+PDF generation

Frontend

TechnologyVersionPurpose
Next.js14+React framework (App Router)
TypeScript5.3+Type safety
Tailwind CSS3.4+Styling
shadcn/uiLatestUI components
Zustand4+Client state
TanStack Query5+Server state

External Services

ServicePurpose
Anthropic Claude APIContent generation & research
Freepik APIStock images
Social APIsLinkedIn, Facebook, Twitter/X, Google Business

Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • PostgreSQL 15+
  • Redis 7+
  • Docker & Docker Compose (recommended)

Quick Start with Docker

# Clone the repository
git clone https://github.com/your-org/paper-by-aiconnected.git
cd paper-by-aiconnected

# Copy environment files
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env.local

# Start all services
docker-compose -f docker/docker-compose.yml up -d

# Run database migrations
docker-compose exec backend alembic upgrade head

# Access the application
# Frontend: http://localhost:3000
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docs

Manual Setup

Backend

cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# Run migrations
alembic upgrade head

# Start development server
uvicorn app.main:app --reload --port 8000

# In separate terminals, start Celery workers:
celery -A app.workers.celery_app worker --loglevel=info
celery -A app.workers.celery_app beat --loglevel=info

Frontend

cd frontend

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your configuration

# Start development server
npm run dev

Project Structure

paper-by-aiconnected/
├── backend/                    # FastAPI backend
│   ├── app/
│   │   ├── main.py            # Application entry point
│   │   ├── config.py          # Settings & configuration
│   │   ├── database.py        # Database connection
│   │   ├── models/            # SQLAlchemy models
│   │   ├── schemas/           # Pydantic schemas
│   │   ├── api/v1/            # API routes
│   │   ├── services/          # Business logic
│   │   ├── workers/           # Celery tasks
│   │   └── templates/         # PDF templates (Jinja2)
│   ├── alembic/               # Database migrations
│   ├── tests/                 # Backend tests
│   └── requirements.txt

├── frontend/                   # Next.js frontend
│   ├── src/
│   │   ├── app/               # App Router pages
│   │   ├── components/        # React components
│   │   ├── hooks/             # Custom hooks
│   │   ├── lib/               # Utilities & API client
│   │   ├── stores/            # Zustand stores
│   │   └── types/             # TypeScript definitions
│   ├── public/                # Static assets & logos
│   └── package.json

├── docker/                     # Docker configurations
│   ├── docker-compose.yml     # Development
│   └── docker-compose.prod.yml # Production

├── docs/                       # Additional documentation
├── CLAUDE.md                   # Claude Code project guide
├── DEVELOPER-PRD.md           # Complete technical specification
├── UI-UX-DESIGN-SPEC.md       # Design system documentation
└── README.md                   # This file

Documentation

DocumentDescription
DEVELOPER-PRD.mdComplete technical specification (4,400+ lines) covering all systems
UI-UX-DESIGN-SPEC.mdDesign system, components, and UI patterns
CLAUDE.mdProject guide for Claude Code development

Key Sections in DEVELOPER-PRD

  1. Project Overview & Business Rules
  2. Technology Stack & Dependencies
  3. System Architecture
  4. Database Design (complete schema)
  5. Authentication & Authorization
  6. API Design (all endpoints)
  7. Content Generation Pipeline
  8. PDF Generation System
  9. Distribution System
  10. White-Label System
  11. Deployment Configuration
  12. Frontend Architecture

Environment Variables

Backend (backend/.env)

# Database
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/paper

# Redis
REDIS_URL=redis://localhost:6379/0

# Security
SECRET_KEY=your-secret-key-minimum-32-characters
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30

# External APIs
ANTHROPIC_API_KEY=sk-ant-...
FREEPIK_API_KEY=...

# Optional: Social Media APIs
LINKEDIN_CLIENT_ID=...
LINKEDIN_CLIENT_SECRET=...

Frontend (frontend/.env.local)

NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WS_URL=ws://localhost:8000
NEXT_PUBLIC_APP_URL=http://localhost:3000

Development

Running Tests

# Backend tests
cd backend
pytest
pytest --cov=app tests/  # With coverage

# Frontend tests
cd frontend
npm test
npm run test:coverage

Code Quality

# Backend
cd backend
ruff check .        # Linting
ruff format .       # Formatting
mypy app/           # Type checking

# Frontend
cd frontend
npm run lint        # ESLint
npm run lint:fix    # Fix issues
npm run type-check  # TypeScript

Database Migrations

cd backend

# Create a new migration
alembic revision --autogenerate -m "description of changes"

# Apply migrations
alembic upgrade head

# Rollback one migration
alembic downgrade -1

Deployment

Paper by aiConnected is designed for deployment on Dokploy (on DigitalOcean), but can be deployed to any Docker-compatible platform.

Production Build

# Build images
docker-compose -f docker/docker-compose.prod.yml build

# Deploy
docker-compose -f docker/docker-compose.prod.yml up -d

Required Infrastructure

  • PostgreSQL database (managed recommended)
  • Redis instance
  • Object storage (S3-compatible) for PDFs and uploads
  • SSL certificates (auto-provisioned via Let’s Encrypt)
See the deployment section in paper developer PRD for complete deployment instructions.

Brand Guidelines

Paper by aiConnected follows the aiConnected brand identity:

Colors

ColorHexUsage
Primary Blue#2e95f3Primary actions, links
Dark Blue#053058Secondary elements, headers
Darkest Blue#021220Text headings
Body Text#839aacBody copy
Background#fafcffPage backgrounds
Success#22b573Success states
Warning#ffd56bWarning states
Error#ed5a5aError states

Typography

  • Headings: Poppins Extra Bold
  • Subheadings: Poppins SemiBold
  • Body: Poppins Light

Logo Assets (frontend/public/)

FileUsage
aiConnected-App-Logo-202_aiConnected-Logo-Horizontal-Dark.svgMain logo on light backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Horizontal-Light.svgMain logo on dark backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Vertical-Dark.svgStacked logo on light backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Vertical-Light.svgStacked logo on dark backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Powered-By-Dark.svg”Powered by” badge (light bg)
aiConnected-App-Logo-202_aiConnected-Logo-Powered-By-Light.svg”Powered by” badge (dark bg)
aiConnected-App-Logo-202_aiConnected-Logo-Text-Only-Dark.svgText logo on light backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Text-Only-Light.svgText logo on dark backgrounds
aiConnected-App-Logo-202_aiConnected-Logo-Text-Only-Gray.svgMuted text logo
aiConnected-Logo_aiConnected-Logo-Symbol-Only.svgInfinity symbol mark only
aiConnected-App-Logo-202_aiConnected-Logo-Profile-Picture.svgAvatar/profile images
aiConnected-App-Logo-202_aiConnected-Logo-Favicon.svgBrowser favicon (SVG)
aiConnected-Logo_favicon-32x32.svgFavicon 32×32 (SVG)
aiConnected-Logo_favicon-32x32.pngFavicon 32×32 (PNG)

User Roles

RoleDescriptionCapabilities
Super AdminaiConnected platform administratorsManage agencies, templates, plans, system settings
Agency AdminAgency owners/managersFull agency access, branding, team management
Agency MemberAgency staffGenerate content, review, distribute
ClientEnd customersView their content, limited generation

API Overview

The API follows RESTful conventions with JWT authentication.
Base URL: https://paper.aiconnected.ai/api/v1

Authentication

# Login
POST /api/v1/auth/login
Content-Type: application/json
{"email": "user@example.com", "password": "..."}

# Use token
GET /api/v1/clients
Authorization: Bearer <access_token>

Key Endpoints

  • POST /api/v1/documents/generate — Start content generation
  • GET /api/v1/documents — List documents
  • GET /api/v1/clients — List clients
  • POST /api/v1/import/csv — Bulk import
See the API design section in paper developer PRD for complete API documentation.

Contributing

This is a proprietary project. Please contact the team for contribution guidelines.

Support

For support and questions:
  • Documentation: See files in this repository
  • Issues: Use the GitHub issue tracker
  • Contact: support@aiconnected.ai

License

Copyright © 2026 aiConnected. All rights reserved. This software is proprietary and confidential. Unauthorized copying, distribution, or use is strictly prohibited.
<div align="center">

Built with ❤️ by aiConnected </div>
Last modified on April 18, 2026