civitai/civitai

A repository of models, textual inversions, and more

What it solves

This project provides the open-source codebase for a community-driven platform dedicated to sharing, discovering, and collaborating on AI-generated art models. It specifically supports various customization techniques for Stable Diffusion, such as textual inversions, hypernetworks, and aesthetic gradients.

How it works

The platform is built as a modern web application using Next.js for the frontend and a tRPC API. It uses Prisma and PostgreSQL for database management, with Cloudflare for storage. The repository includes the necessary infrastructure configurations (via Docker Compose) to run a local development environment, including database, caching, and object storage services.

Who it’s for

It is designed for developers and AI enthusiasts who want to contribute to the platform's infrastructure, host a local instance for development, or learn how a large-scale model-sharing ecosystem is architected.

Highlights

  • Supports a wide range of AI model types including textual inversions and VAEs.
  • Includes a robust local development setup using Docker and Nix for environment consistency.
  • Features a collaborative environment for users to share feedback and improve models.
  • Built on a scalable stack using Next.js, tRPC, and Prisma.

Related

  • Project
  • Project
  • Project
  • Project
  • Project