Skip to main content
projects holds one document per project: name, owner and members, sharing, the file tree and project settings. The text of the docs is not here (see Docs Collection), and binary files live in the history-v1 blob store under their hash. The schema is services/web/app/src/models/Project.mjs, with the file tree in Folder.mjs, File.mjs and Doc.mjs next to it. In the Source column, Project.mjs:N is a line of that schema, other bare file names are under services/web/app/src/Features/, and modules/... is under services/web/. Line numbers are from server-pro at the time of writing.

Core Identification & Metadata

Ownership & Access Control

Turning link sharing off unsets tokens and sets publicAccesLevel back to private (ProjectDetailsHandler.mjs:233-238).

Activity Tracking

Project Structure

Each folder (Folder.mjs): Each file in fileRefs (File.mjs):

Compilation & Editor Settings

History (overleaf)

history-v1 can also write overleaf.history.currentEndVersion, overleaf.history.currentEndTimestamp, overleaf.history.updatedAt and overleaf.backup.*, but only when its backupStore is configured (services/history-v1/storage/lib/chunk_store/mongo.js:238-258). CE does not configure it, so these fields do not appear.

Indexes

All come from migrations tagged server-ce in tools/migrations/.

Notes

  • Mongoose autoIndex is off (services/web/app/src/infrastructure/Mongoose.mjs:7): the index options in the schema only exist because the migrations above create them.
  • The migration 20250620152657_ensure_collaborator_arrays sets missing collaberator_refs, pendingEditor_refs, pendingReviewer_refs, readOnly_refs and reviewer_refs to [].
  • Deleting a project moves the document into deletedProjects (see Deleted Projects Collection).
Here is a real example of an Overleaf project.
Last modified on November 14, 2026