How parse-community/parse-server works
Parse Server is a Node.js backend that exposes a Parse-compatible API and can run standalone or within an Express application. The principal workflow is a client request entering the server, reaching API routes, being handled with authorization and domain logic, and reading or changing persisted data. The repository also documents GraphQL and Live Query, and its source tree identifies file, push, authentication, and Cloud Code capabilities. The sampled excerpts confirm storage-adapter and Live Query behavior; unsampled subsystem connections are shown only where supported by the documented product structure.
Main entry points: Routers API routers · DatabaseController.js Database controller · StorageAdapter.js Storage interface · ParseLiveQueryServer.ts Live Query server
Components 24
API handling
- Server entry
src/ParseServer.ts - REST controller
src/ParseServerRESTController.js - API routers
src/Routers - Authentication
src/Auth.js - User operations
src/Controllers/UserController.js - GraphQL API
src/GraphQL/ParseGraphQLServer.js - GraphQL routing
src/Routers/GraphQLRouter.js
Data and files
- Database controller
src/Controllers/DatabaseController.js - REST queries
src/RestQuery.js - REST writes
src/RestWrite.js - Storage interface
src/Adapters/Storage/StorageAdapter.js - Mongo adapter
src/Adapters/Storage/Mongo/MongoStorageAdapter.js - Postgres adapter
src/Adapters/Storage/Postgres/PostgresStorageAdapter.js - File handling
src/Controllers/FilesController.js - File adapters
src/Adapters/Files/FilesAdapter.js
Realtime and tasks
- Live Query controller
src/Controllers/LiveQueryController.js - Live Query server
src/LiveQuery/ParseLiveQueryServer.ts - WebSocket server
src/LiveQuery/ParseWebSocketServer.js - Pub/Sub
src/LiveQuery/ParsePubSub.js
Platform capabilities
- Cloud Code
src/cloud-code/Parse.Cloud.js - Push notifications
src/Push/PushWorker.js
Other components
- Parse client
- MongoDB / PostgreSQL
- External services
Connections 24
- Parse client → Server entry: sends requests
- Server entry → REST controller: handles REST
- REST controller → API routers: dispatches routes
- API routers → Authentication: authorizes requests
- API routers → Database controller: handles data
- API routers → User operations: handles users
- Database controller → REST queries: queries through
- Database controller → REST writes: writes through
- Database controller → Storage interface: uses adapter
- Storage interface → Mongo adapter: implemented by
- Storage interface → Postgres adapter: implemented by
- Mongo adapter → MongoDB / PostgreSQL: reads and writes
- Postgres adapter → MongoDB / PostgreSQL: reads and writes
- API routers → File handling: handles files
- File handling → File adapters: uses adapter
- Parse client → GraphQL routing: sends GraphQL
- GraphQL routing → GraphQL API: dispatches to
- API routers → Cloud Code: routes Cloud Code
- API routers → Push notifications: routes push
- Live Query controller → Live Query server: publishes changes
- Parse client → WebSocket server: opens connection
- Live Query server → WebSocket server: initializes server
- Live Query server → Pub/Sub: creates subscriber
- External services → Push notifications: delivers notifications