This is a tool for locally searching and browsing a copy of the CivitAi Checkpoint and LORA JSON data downloaded through the CivitAi API as of May 5, 2025.
The scripts used to download, convert to SQLite, and the raw JSON and 7zipped SQLite database are available here
The main use for this is to have an offline metadata viewer and alternate search tool since CivitAi is now hiding some models from search, although the model pages and downloads are still available.
An alternative to this is https://github.com/RemmyLee/civitr, also uses the same models.db.
- Install Python 3.10 or later
- Run
start.bat
This will automatically install the necessary python packages (see requirements.txt) for running a standalone webserver.
It will then start the server at localhost:8000
The app will download models.7z from my Google Drive: https://drive.google.com/uc?id=1CBDBmaRa_85ohZ4Ok0tfAnQ8lbrQWph8 and decompress it (this will take up 2GB)
To change the port, edit start.bat and change the following line:
SET UVICORN_PORT=8000
- Install nodejs and npm, then run
npm installin the frontend folder. - Run
npm run startto start the development server with hot reload onhttp://localhost:3000 - Run
npm run buildto compile and pack to thebuild/staticfolder
After running npm run build, you will need to copy the following files and folders:
backendfrontend/build/staticrequirements.txtstart.bat
You should preserve the path for frontend/build/static. Your directory structure should be like this:
/backend
main.py
requirements.txt
/frontend
/build
/static
...
start.bat

