K
KTHULU GO HUB
Menu

© 2026 Kthulu Go

Documentation / guide

Modules

Explore and use the 35+ modules in Kthulu.

SSG Generated

Modules

Modules are the building blocks of a Kthulu application. Each encapsulates a specific domain capability.

Available Modules (35+)

Infrastructure

ModuleDescription
mailMailer driver (SMTP + log; provider SDK stubs)
cacheCaching (Memory, Redis, Memcached)
storageFile storage (local driver; S3/GCS/Azure stubs)
queuesBackground jobs: retries, dead letters, scheduler
eventsPub/Sub event system
policyAuthorization gates & policies
rateRate limiting (Token Bucket, Sliding Window)
sessionSession management
i18nInternationalization
validateDeclarative field rules -> Validate() + 422 errors
seederDatabase seeding + Faker

Business

ModuleDescription
userUser management & profiles
authJWT authentication + RBAC
productProduct catalog
invoiceInvoicing & billing
inventoryStock management
organizationMulti-tenant orgs
contactCRM integration
calendarScheduling
notificationPush/Email/SMS
orderOrder management
paymentsPayment processing

Enterprise

ModuleDescription
oauthssoOAuth 2.0 / SSO
auditAudit logging
realtimeWebSockets
observabilityMetrics, tracing, logging
verifactuSpanish tax compliance
flagsFeature flags
healthHealth checks

Installing a Module

# During project creation
kthulu new my-app --features mail,cache,storage

# Add to existing project
kthulu add module scheduler

Module Structure

internal/modules/mail/
├── api/           # HTTP handlers
│   └── handler.go
├── core/          # Business logic
│   ├── entity.go
│   └── service.go
└── store/         # Data access
    └── repository.go

Environment Variables

Each infrastructure module uses environment variables:

# Mail
MAIL_DRIVER=smtp
MAIL_HOST=smtp.example.com

# Cache
CACHE_DRIVER=redis
REDIS_HOST=localhost

# Storage
STORAGE_DRIVER=s3
S3_BUCKET=my-bucket

# And more...

Browse the Marketplace

Explore all modules at /marketplace.