@kedaruma/revlm-server
v1.0.42
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.)
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