Comcal is a decentralized community management and calendar platform built on the Nostr protocol. It enables communities to create events, coordinate activities, and share calendars without relying on centralized services. All data is sovereign and stored on Nostr relays—your community maintains full control.
- What is Comcal?
- Key Features
- Technology Stack
- Quick Start (Development)
- Development Guide
- Deployment
- Architecture
- Resources
Comcal (Community Calendar) provides communities with a sovereign, decentralized alternative to centralized calendar and community management tools. Built on the Nostr protocol, it implements:
- NIP-52: Calendar Events standard for event management
- Communikey NIP: Community operations and management
Communities maintain full autonomy—no central server, no data lock-in, no platform dependency. Users authenticate with their private keys, ensuring complete control over their identity and data.
- Community Organizers: Manage events and coordinate activities
- Educational Institutions: Coordinate study groups, lectures, and events
- Interest-Based Communities: Share calendars and coordinate meetings
- Any Group: Needing sovereign event coordination without centralized infrastructure
- ✅ Community Management: Create, join, and manage communities with full autonomy
- ✅ Calendar System: Decentralized calendar events with NIP-52 compliance
- ✅ Multi-Calendar Support: Personal and community-level calendars
- ✅ Calendar Sharing: Multiple sharing mechanisms (webcal, QR codes, direct links)
- ✅ Private Key Authentication: Secure, sovereignty-preserving authentication
- ✅ Social Features: Community feeds, member profiles, and interaction
- ✅ Map Integration: Location-based event discovery
- ✅ Markdown Support: Rich text content in events and profiles
| Category | Technology | Version |
|---|---|---|
| Runtime | Node.js | v22.16.0 |
| Frontend Framework | SvelteKit | 2.1.2 |
| Svelte Version | Svelte | 5.0.0 |
| Styling | TailwindCSS | 3.4.10 |
| Components | DaisyUI | 4.12.10 |
| State Management | Svelte 5 Runes | Native |
| Protocol | Nostr | NIP-52, Communikey NIP |
| Nostr Libraries | Applesauce Suite | Latest |
| Deployment | Docker + Traefik | Production-ready |
| Adapter | @sveltejs/adapter-node | 6.0.0 |
- Node.js: v22.16.0 (see
.nvmrc) - npm: Comes with Node.js
- Git: For cloning the repository
# Clone the repository
git clone <repository-url> comcal
cd comcal
# Install dependencies
npm install# Start the dev server (runs on http://localhost:5173)
npm run dev
# Or open automatically in browser
npm run dev -- --open# Build the application
npm run build
# Preview production build locally
npm run preview# Development
npm run dev # Start dev server with hot reload
# Production
npm run build # Build for production (Node adapter)
npm run preview # Preview production build
# Code Quality
npm run lint # Run ESLint
npm run format # Format code with Prettier
# Docker
docker compose build # Build Docker image
docker compose up -d # Start containers in background
docker compose logs -f # View logs- Start the dev server:
npm run dev - Make changes: Edit components, stores, or helpers
- See hot reload: Changes apply instantly in the browser
- Run linting:
npm run lintto check code quality - Format code:
npm run formatto maintain style consistency
- SvelteKit: Full-stack framework with server routes and API endpoints
- Svelte 5 Runes: Reactive state management with
$state,$derived,$effect - TailwindCSS: Utility-first CSS for styling
- DaisyUI: Component library on top of Tailwind
- Nostr Protocol: Decentralized event protocol
- Applesauce: Suite of libraries for Nostr interaction
Comcal is designed for production deployment using Docker and Traefik. This section covers deploying to a VPS or self-hosted server.
- OS: Ubuntu 20.04+ or similar Linux distribution
- Docker: Latest version
- Docker Compose: v2+ with plugin support
- Domain Name: For SSL certificates via Let's Encrypt
- Ports: 80 and 443 publicly accessible
- Resources: 512MB RAM minimum (1GB recommended), 1-2GB storage
See Quick Start section above.
# Update system packages
sudo apt update && sudo apt upgrade -y
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose v2+
sudo apt install docker-compose-plugin
# Add user to docker group (optional, for non-root docker access)
sudo usermod -aG docker $USER
newgrp docker# Clone the repository
git clone <repository-url> comcal
cd comcal# Copy environment template
cp .env.example .env
# Edit environment variables
nano .envRequired Environment Variables:
# Your domain (required for SvelteKit CSRF protection)
ORIGIN=https://your-domain.com
# Internal service port (usually 3000)
PORT=3000
# Node environment
NODE_ENV=productionEdit docker-compose.yml and update:
- Service name (if needed): Default is
comcal - Domain: Replace
your-domain.comwith your actual domain in Traefik labels - Traefik network: Ensure
traefik_webmatches your Traefik setup
Example Traefik configuration:
labels:
- "traefik.http.routers.comcal.rule=Host(`your-domain.com`)"
- "traefik.http.routers.comcal.entrypoints=websecure"
- "traefik.http.routers.comcal.tls.certresolver=letsencrypt"# Build the Docker image
docker compose build
# Start the application in detached mode
docker compose up -d
# View real-time logs
docker compose logs -f- Nostr Protocol: Overview of the Nostr protocol
- NIP-52: Calendar Events: Calendar event standard
- Communikey NIP: Community operations specification
- SvelteKit Documentation: Full framework documentation
- SvelteKit Node Adapter: Node.js deployment
- Svelte 5 Documentation: Latest Svelte features
- TailwindCSS: Utility-first CSS framework
- DaisyUI: Tailwind component library
- Docker Documentation: Containerization platform
- Traefik Documentation: Reverse proxy and load balancer
- Let's Encrypt: Free SSL/TLS certificates
- Check Troubleshooting: See Troubleshooting section above
- Review Logs: Use
docker compose logsfor application logs - Open Issues: Report bugs on the repository
- Community: Join Nostr communities discussing comcal
This project was funded by the BMBSFJ.
Förderkennzeichen: 01PZ24007
Contributions are welcome!
Built with ❤️ on the Nostr protocol.
