Clails
commonlisp web framework inspired by Ruby on Rails
Install / Use
/learn @tamurashingo/ClailsREADME
clails
A web framework inspired by Ruby on Rails, built with Common Lisp.
Features
- MVC Architecture - Model-View-Controller design pattern
- RESTful Routing - Rails-like routing with automatic REST resource generation
- Active Record Pattern - Intuitive database operations with ORM
- Database Migrations - Version control for database schema
- Multiple Database Support - SQLite3, MySQL, PostgreSQL
- Task System - Custom task definition and execution with dependency management
- Template Engine - Built-in templating for views
- Scaffolding - Rapid prototyping with code generation
- Docker Support - Ready-to-use Docker development environment
- Swank Integration - Remote debugging via REPL
Requirements
- Roswell (Common Lisp implementation manager)
- SBCL (Steel Bank Common Lisp)
Installation
Installing Roswell
# macOS (Homebrew)
brew install roswell
# Linux
# See https://github.com/roswell/roswell/wiki/Installation
Installing Required Libraries
ros install fukamachi/cl-dbi
ros install tamurashingo/cl-dbi-connection-pool
ros install tamurashingo/cl-batis
ros install tamurashingo/getcmd
Installing clails
ros install tamurashingo/clails
To specify a specific branch or tag:
# branch
ros install tamurashingo/clails/release/0.0.2
# tag
ros install tamurashingo/clails/v0.0.2
Verify Installation
clails --help
Quick Start
Create a New Project
clails new todoapp
cd todoapp
Docker Development (Recommended)
Build and start the Docker environment:
make build
make up
Create database and run migrations:
make db.create
make db.migrate
Available Make commands:
make build- Build Docker imagemake up- Start containersmake down- Stop containersmake console- Open shell in containermake db.create- Create databasemake db.migrate- Run migrations
Local Development
Create database:
clails db:create
Run migrations:
clails db:migrate
Start server:
clails server
Visit http://localhost:5000/ to see the welcome page:

Documentation
Comprehensive guides for developing with clails:
- QuickStart (日本語) - Build your first TODO application
- Command Guide (日本語) - CLI commands reference
- Model Guide (日本語) - Database operations, queries, transactions, and pessimistic locking
- Logging Guide (日本語) - Flexible logging system with hierarchical loggers
- Task Guide (日本語) - Custom task system with dependency management
- View Guide (日本語) - Template engine and rendering (coming soon)
- Controller Guide (日本語) - Request handling and routing (coming soon)
- Environment Guide (日本語) - Configuration management (coming soon)
- Testing Guide (日本語) - Testing framework (coming soon)
Copyright 2024-2025 tamura shingo
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
