civitai  by civitai

Platform for sharing AI models

Created 3 years ago
6,970 stars

Top 7.3% on SourcePulse

GitHubView on GitHub
Project Summary

Civitai provides a platform for users to share, discover, and collaborate on Stable Diffusion models and customization files. It targets AI art enthusiasts and developers looking to share and find custom models, fostering a community around AI image generation.

How It Works

The platform utilizes a modern web stack: Next.js for the frontend and backend, TRPC for the API, and Prisma with PostgreSQL for the database. Cloudflare handles storage. This architecture aims for scalability and maintainability, enabling user accounts, model uploads, browsing, and community feedback.

Quick Start & Requirements

  • Installation: Clone the repository and use either Docker with devcontainers or make init for setup.
  • Prerequisites: Docker, Node.js (v20+), and optionally make. Windows users should use WSL or named container volumes for devcontainers to avoid performance issues.
  • Configuration: Requires setting S3 upload keys, a webhook token, and email properties in a .env file. Local development uses maildev for email.
  • Access: The application is accessible at http://localhost:3000.
  • Docs: Prerequisites

Highlighted Details

  • Supports sharing of various Stable Diffusion customization types: textual inversions, hypernetworks, aesthetic gradients, VAEs, and more.
  • Enables community collaboration through comments and feedback on shared models.
  • Offers a local development setup with Docker and a make init script for streamlined initialization.
  • Allows users to elevate their accounts to moderator status via direct database modification.

Maintenance & Community

  • Active community engagement is encouraged via Discord.
  • Information on joining the Community Development Team is available.

Licensing & Compatibility

  • License: Apache License 2.0.
  • Compatibility: Permissive license suitable for commercial use and integration with closed-source projects.

Limitations & Caveats

Local development environments do not support features requiring external services, such as orchestration (generation, training) and real-time signals (chat, notifications).

Health Check
Last Commit

10 hours ago

Responsiveness

1 day

Pull Requests (30d)
21
Issues (30d)
6
Star History
48 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.