Repository Layout
Main directories
Section titled “Main directories”src/paperwise/server— FastAPI entrypoint, static UI, and HTTP routessrc/paperwise/workers— Celery app and background taskssrc/paperwise/domain— core domain models and invariantssrc/paperwise/application— use cases and provider interfacessrc/paperwise/adapters— provider implementations for LLM, OCR, search, and storagesrc/paperwise/infrastructure— config and external integrationssrc/paperwise/events— internal event contractstests— unit and integration teststools— maintenance scripts for migrations, repairs, reindexing, and smoke checksdocs-src— Starlight docs sourcewebsite/docs— generated static docs outputwebsite— standalone marketing site
Storage layout
Section titled “Storage layout”Uploaded files and processed artifacts live under the local object-store layout when running locally. Blob references are stored as relative object-store keys so the repository does not depend on machine-specific absolute paths.
User model
Section titled “User model”Paperwise requires authenticated users. Guest access is disabled.
POST /userscreates a userPOST /users/loginreturns a bearer token- document endpoints require
Authorization: Bearer <token>