Cockpit
Content Management Systems (CMS)
About this project
Modern, flexible CMS that adapts to your workflow
Cockpit is a headless CMS that gives you the flexibility to build content-driven applications your way. Whether you're creating websites, mobile apps, or IoT applications, Cockpit provides the content infrastructure you need.
✨ Why Developers Choose Cockpit
- 🚀 Headless by Design - Use any frontend technology (React, Vue, Flutter, etc.)
- 📊 Flexible Content Models - Collections, Singletons, and Trees with custom fields
- 🔗 GraphQL & REST APIs - Modern APIs with real-time capabilities
- 🌍 Multi-language Support - Built-in internationalization for global applications
- 🎨 No Vendor Lock-in - Own your data, deploy anywhere
- ⚡ Performance First - MongoDB or SQLite backend, your choice
🚀 Quick Start
Get Cockpit running in under 5 minutes:
Option 1: Traditional Setup
# Download and extract
wget https://github.com/cockpit-hq/cockpit/releases/latest/download/cockpit.zip
unzip cockpit.zip && cd cockpit
# Make storage writable
chmod -R 755 storage/
# Open in browser and complete setup
open http://localhost/cockpit/install
Option 2: Docker (Recommended)
# Run Cockpit with persistent storage
docker run -d \
--name cockpit \
-p 8080:80 \
-v cockpit_storage:/var/www/html/storage \
cockpithq/cockpit:core-latest
# Access at http://localhost:8080/install
Start Building
Once installed, create content models through the admin UI or via API:
// Fetch your content anywhere
fetch('/api/content/items/blog')
.then(res => res.json())
.then(posts => {
// Use in React, Vue, mobile apps, etc.
console.log('My content:', posts);
});
🛠️ Key Features
Feature | Description |
---|---|
Content Modeling | Collections, Singletons, Trees with 20+ field types |
Asset Management | Image processing, video thumbnails, CDN integration |
User Management | Roles, permissions, 2FA, API tokens |
Multi-language | Localized content with fallback support |
Developer Tools | GraphQL playground, REST docs, CLI commands |
Extensibility | Custom fields, addons, hooks, events |
Multi-tenancy | Spaces for multiple sites and clients |
📋 System Requirements
- PHP >= 8.3 with PDO, GD extensions
- Database SQLite (default) or MongoDB
- Web Server Apache with mod_rewrite or Nginx
- Permissions Writable
/storage
directory
Ensure $_SERVER['DOCUMENT_ROOT']
is properly configured.
🌐 API Examples
REST API
# Get all published blog posts
curl "https://yoursite.com/api/content/items/blog?filter={tags:'cms'}"
# Get single post by ID
curl "https://yoursite.com/api/content/item/blog/60f1b2b3c4d5e6f7a8b9c0d1"
# Create new post
curl -X POST "https://yoursite.com/api/content/item/blog" \
Technologies & License
MIT
PHP