| .claude | ||
| messages | ||
| project.inlang | ||
| src | ||
| static | ||
| .dockerignore | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| claude.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| eslint.config.js | ||
| flake.lock | ||
| flake.nix | ||
| jsconfig.json | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| svelte.config.js | ||
| vite.config.js | ||
Edufeed - Decentralized Community App with a Calendar and other stuff
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.
Table of Contents
- What is Comcal?
- Key Features
- Technology Stack
- Quick Start (Development)
- Development Guide
- Deployment
- Architecture
- Resources
What is Comcal?
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.
Use Cases
- 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
Key Features
- ✅ 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
Technology Stack
| 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 |
Quick Start (Development)
Prerequisites
- Node.js: v22.16.0
- pnpm or npm: Package manager
- Git: For cloning the repository
Option A: NixOS / Nix (Recommended)
If you use NixOS or have Nix installed, the project includes a flake.nix that provides the exact development environment:
# Clone the repository
git clone <repository-url> comcal
cd comcal
# Allow direnv (auto-activates the environment)
direnv allow
# Install dependencies
pnpm install
The flake provides Node.js 22 and pnpm. With direnv configured, the environment activates automatically when you enter the project directory.
First-time Nix setup: Ensure you have direnv and nix-direnv installed, and flakes enabled in your Nix config (experimental-features = nix-command flakes).
Option B: Traditional Setup
# Clone the repository
git clone <repository-url> comcal
cd comcal
# Use correct Node version (if using nvm)
nvm use
# Install dependencies
npm install
Running the Development Server
# Start the dev server (runs on http://localhost:5173)
npm run dev
# Or open automatically in browser
npm run dev -- --open
Building for Production
# Build the application
npm run build
# Preview production build locally
npm run preview
Development Guide
Available Scripts
# 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
Development Workflow
- 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
Key Technologies in Use
- 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
Theming & Customization
Comcal supports customizable themes for institutional branding:
| Theme | Description |
|---|---|
light |
Default light theme |
dark |
Default dark theme |
stil |
STIL institutional branding (orange accent) |
stil-dark |
STIL dark variant |
Users can choose between theme families and light/dark/system color modes via Settings.
Configuration (.env):
THEME_DEFAULT_LIGHT=stil # Default theme for light mode
THEME_DEFAULT_DARK=stil-dark # Default theme for dark mode
Icons are organized in src/lib/components/icons/ by category (ui, actions, social, calendar) with a consistent wrapper pattern using currentColor for theme compatibility.
See CLAUDE.md for detailed developer documentation on theming and icons.
Deployment
Comcal is designed for production deployment using Docker and Traefik. This section covers deploying to a VPS or self-hosted server.
Prerequisites for VPS/Server Deployment
- 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
Prerequisites for Local Development
See Quick Start section above.
Step 1: Server Setup
# 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
Step 2: Clone Repository
# Clone the repository
git clone <repository-url> comcal
cd comcal
Step 3: Configure Environment Variables
Comcal uses a 12-factor app approach with runtime environment variables for configuration. This allows you to use the same Docker image across different environments (development, staging, production) by simply changing environment variables.
# Copy environment template
cp .env.example .env
# Edit environment variables
nano .env
Required 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=production
Complete Configuration Reference
The .env.example file contains all available configuration options. Key categories:
App Branding
APP_NAME: Application name (default: "ComCal")APP_LOGO: URL to application logoAPP_GIT_REPO: Git repository URL
Nostr Relays
FALLBACK_RELAYS: Fallback relays for event discovery (used when gated mode is off)CALENDAR_RELAYS: App-specific relays for calendar events (kinds 31922-31925)COMMUNIKEY_RELAYS: App-specific relays for community events (kinds 10222, 30222, 30382)AMB_RELAYS: Educational content relays with NIP-50 search support (kind 30142)LONGFORM_CONTENT_RELAY: App-specific relay for articles (kind 30023)
Gated Mode
GATED_MODE_DEFAULT: Default state for gated mode (true/false). When enabled, app fetches only from app-specific relaysGATED_MODE_FORCE: When true, users cannot disable gated mode - useful for institutional deployments
Calendar Settings
CALENDAR_WEEK_START_DAY: Week start day (0=Sunday, 1=Monday)CALENDAR_LOCALE: Date/time locale (e.g., de-DE, en-US)CALENDAR_TIME_FORMAT: Time format (12h or 24h)
Signup
SIGNUP_SUGGESTED_USERS: Suggested users to follow (comma-separated npubs)
Media Uploads (Blossom)
BLOSSOM_UPLOAD_ENDPOINT: Blossom server upload endpointBLOSSOM_MAX_FILE_SIZE: Maximum file size in bytes
Geocoding (OpenCage API)
GEOCODING_API_KEY: SECRET - OpenCage API key (never expose to client)GEOCODING_CACHE_DURATION_DAYS: Cache duration for geocoded resultsGEOCODING_MIN_ADDRESS_LENGTH: Minimum address length for geocodingGEOCODING_MIN_CONFIDENCE_SCORE: Minimum confidence score (0-10)GEOCODING_REQUIRE_ADDRESS_COMPONENTS: Require address components (true/false)GEOCODING_ACCEPTED_COMPONENT_TYPES: Accepted component types (comma-separated)
Imprint/Legal Information
IMPRINT_ENABLED: Enable/disable imprint pageIMPRINT_ORGANIZATION: Organization nameIMPRINT_ADDRESS_*: Address fieldsIMPRINT_CONTACT_*: Contact informationIMPRINT_*: Other legal information
Educational Content
EDUCATIONAL_SEARCH_DEBOUNCE_MS: Search debounce delayEDUCATIONAL_VOCAB_*: SKOS vocabulary keys
See .env.example for complete documentation of all variables with descriptions and defaults.
Security Best Practices
- Never commit
.envfiles - They are in.gitignoreby default - Protect API keys - The
GEOCODING_API_KEYis kept server-side only - Use strong values - Especially for production deployments
- Rotate secrets regularly - Update API keys periodically
- Environment-specific configs - Use different
.envfiles for dev/staging/production
Step 4: Configure Docker Compose
Edit 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"
Step 5: Build and Deploy
# 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
Resources & Support
Protocol Documentation
- Nostr Protocol: Overview of the Nostr protocol
- NIP-52: Calendar Events: Calendar event standard
- Communikey NIP: Community operations specification
Framework & Libraries
- 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
Deployment & Infrastructure
- Docker Documentation: Containerization platform
- Traefik Documentation: Reverse proxy and load balancer
- Let's Encrypt: Free SSL/TLS certificates
Getting Help
- 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
Funding
This project was funded by the BMBSFJ.
Förderkennzeichen: 01PZ24007
Further development happens under funding of Stiftung Innovation in der Hochschullehre:
Contributing
Contributions are welcome!
Built with ❤️ on the Nostr protocol.

