2025-10-20 01:42:50 -07:00
# Simple Mode for BentoPDF
Simple Mode is designed for internal organizational use where you want to hide all branding and marketing content, showing only the essential PDF tools for your users.
## What Simple Mode Does
When enabled, Simple Mode will:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
- Hide the navigation bar
- Hide the hero section with marketing content
- Hide the features section
- Hide the security/compliance section
- Hide the FAQ section
- Hide the testimonials section
- Hide the support section
- Hide the footer
- Update the page title to "PDF Tools"
- Make the tools section more prominent
## How to Enable Simple Mode
2025-10-20 18:19:29 -07:00
### Method 1: Using Pre-built Simple Mode Image (Recommended)
2025-10-20 01:42:50 -07:00
2025-10-20 18:19:29 -07:00
Use the pre-built Simple Mode image directly:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
```bash
2025-10-20 18:19:29 -07:00
docker run -p 3000:80 bentopdf/bentopdf-simple:latest
2025-10-20 01:42:50 -07:00
```
2025-10-20 18:19:29 -07:00
Or with Docker Compose:
```yaml
services:
bentopdf:
image: bentopdf/bentopdf-simple:latest
container_name: bentopdf
restart: unless-stopped
ports:
- '3000:80'
```
### Method 2: Using Docker Compose with Build
Build the image locally with Simple Mode enabled:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
```bash
2025-10-20 18:19:29 -07:00
docker compose -f docker-compose.dev.yml build --build-arg SIMPLE_MODE=true
docker compose -f docker-compose.dev.yml up -d
2025-10-20 01:42:50 -07:00
```
2025-10-20 18:19:29 -07:00
### Method 3: Using Docker Build
2025-10-20 01:42:50 -07:00
2025-10-20 18:19:29 -07:00
Build the image with the SIMPLE_MODE build argument:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
```bash
docker build --build-arg SIMPLE_MODE=true -t bentopdf-simple .
2025-10-20 18:19:29 -07:00
docker run -p 3000:80 bentopdf-simple
2025-10-20 01:42:50 -07:00
```
2025-10-20 18:19:29 -07:00
### Method 4: Using Environment Variables
2025-10-20 01:42:50 -07:00
Set the environment variable before building:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
```bash
export SIMPLE_MODE=true
npm run build
2025-10-20 18:19:29 -07:00
npx serve dist -p 3000
2025-10-20 01:42:50 -07:00
```
## 🧪 Testing Simple Mode Locally
2025-10-20 18:19:29 -07:00
### Method 1: Using Pre-built Image (Easiest)
```bash
# Pull and run the Simple Mode image
docker pull bentopdf/bentopdf-simple:latest
docker run -p 3000:80 bentopdf/bentopdf-simple:latest
```
Open `http://localhost:3000` in your browser.
### Method 2: Build and Test Locally
2025-10-20 01:42:50 -07:00
```bash
# Build with simple mode
SIMPLE_MODE=true npm run build
# Serve the built files
npx serve dist -p 3000
```
2025-10-20 18:51:49 +05:30
2025-10-20 18:19:29 -07:00
Open `http://localhost:3000` in your browser.
### Method 3: Compare Both Modes
```bash
# Test Normal Mode
docker run -p 3000:80 bentopdf/bentopdf:latest
# Test Simple Mode
docker run -p 3001:80 bentopdf/bentopdf-simple:latest
```
- Normal Mode: `http://localhost:3000`
- Simple Mode: `http://localhost:3001`
2025-10-20 01:42:50 -07:00
## 🔍 What to Look For
When Simple Mode is working correctly, you should see:
2025-10-20 18:51:49 +05:30
2025-10-20 01:42:50 -07:00
- ✅ Clean "PDF Tools" header (no marketing hero section)
- ✅ "Select a tool to get started" subtitle
- ✅ Search bar for tools
- ✅ All PDF tool cards organized by category
- ❌ No navigation bar
- ❌ No hero section with "The PDF Toolkit built for privacy"
- ❌ No features, FAQ, testimonials, or footer sections
2025-10-20 18:19:29 -07:00
## 📦 Available Docker Images
2025-10-20 01:42:50 -07:00
2025-10-20 18:19:29 -07:00
### Normal Mode (Full Branding)
- `bentopdf/bentopdf:latest`
- `bentopdf/bentopdf:v1.0.0` (versioned)
### Simple Mode (Clean Interface)
- `bentopdf/bentopdf-simple:latest`
- `bentopdf/bentopdf-simple:v1.0.0` (versioned)
## 🚀 Production Deployment Examples
### Internal Company Tool
2025-10-20 01:42:50 -07:00
```yaml
services:
bentopdf:
2025-10-20 17:53:09 -07:00
image: bentopdf/bentopdf-simple:latest
2025-10-20 01:42:50 -07:00
container_name: bentopdf
restart: unless-stopped
ports:
2025-10-20 18:19:29 -07:00
- "80:80"
2025-10-20 01:42:50 -07:00
environment:
2025-10-20 18:19:29 -07:00
- PUID=1000
- PGID=1000
2025-10-20 01:42:50 -07:00
```
2025-10-20 18:19:29 -07:00
## ⚠️ Important Notes
- **Pre-built images**: Use `bentopdf/bentopdf-simple:latest` for Simple Mode
- **Environment variables**: `SIMPLE_MODE=true` only works during build, not runtime
- **Build-time optimization**: Simple Mode uses dead code elimination for smaller bundles
- **Same functionality**: All PDF tools work identically in both modes