@kedaruma/revlm-server
v1.0.66
Published
Self-hosted replacement for MongoDB Realm App Services that brokers auth and MongoDB calls.
Maintainers
Readme
@kedaruma/revlm-server
English documentation | 日本語ドキュメントはこちら
Self-hosted HTTP gateway that reproduces the MongoDB Realm App Services experience. It handles user authentication (password + provisional login) and proxied CRUD operations against MongoDB.
Getting Started
pnpm install
pnpm run build
pnpm start # runs dist/start.jsSet the following environment variables or values in a .env file before starting:
MONGO_URI/mongoUriUSERS_DB_NAME/usersDbNameUSERS_COLLECTION_NAME/usersCollectionNameJWT_SECRET/jwtSecretREFRESH_SECRET_SIGNING_KEY/refreshSecretSigningKey(HMAC key for 5-minute refresh secret cookie rotation)- Optional provisional auth settings (
provisionalLoginEnabled,provisionalAuthId, etc.) - Optional request body settings:
BODY_LIMITlimits acceptedapplication/ejsonand JSON request bodies. If omitted, it defaults to1mb.BODY_WARN_THRESHOLDemits a warning log when the request body exceeds the threshold. If omitted, it defaults to100kb.
Scripts
pnpm run build– compilesrctodistpnpm test– run the Jest suites (uses MongoMemoryServer)pnpm run clean– removedistand local dependencies
Publishing
Build the package and create a tarball before releasing:
pnpm run build
pnpm pack