Select the integration method that best fits your needs. You can either set up the project locally with full control, or use our hosted APIs for quick integration.
Full control with local infrastructure
Set up Chitthi locally with full control over your infrastructure
git clone https://github.com/imsks/chitthi.git
cd chitthiCreate a .env file in the root directory:
PORT=8080
# Redis config
REDIS_URL=redis://redis:6543
# Postgres config
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=chitthi
DATABASE_URL=postgres://postgres:postgres@db:5432/chitthi?sslmode=disable
# Platform API Keys
BREEVO_API_KEY=
MAILERSEND_API_KEY=
# Message Queue
RABBITMQ_URL=amqp://guest:guest@localhost:5672/
# SMTP
SMTP_HOST=
SMTP_PORT=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM=
SMTP_USE_TLS=true# Start Redis and PostgreSQL
docker compose up redis db -d# Development with hot reload
air
# Or run directly
go run cmd/main.gocurl -X POST http://localhost:8080/send-email \
-H "Content-Type: application/json" \
-H "X-SMTP-Host: smtp.gmail.com" \
-H "X-SMTP-Port: 587" \
-H "X-SMTP-Username: your-email@gmail.com" \
-H "X-SMTP-Password: your-app-password" \
-H "X-SMTP-From: your-email@gmail.com" \
-H "X-SMTP-Use-TLS: true" \
-d '{
"from_email": "sender@example.com",
"to_email": "recipient@example.com",
"subject": "Test Email",
"html_content": "<h1>Hello World!</h1>"
}'Your local Chitthi service is now running on http://localhost:8080