Registry / security / usr

usr

JSON →
library0.0.1jsnpmunverified

An early-stage REST OAuth webservice for user authentication and group management, version 0.0.1. Designed to be deployed on Cloud Foundry with a REST API supporting multiple authentication providers (EveryAuth) and pluggable storage (MongoDB, CouchDB, MySQL). Currently in pre-release with limited working features including local storage, socket.io events, token-based authentication (to be replaced by OAuth2), and basic group management. Intended as a centralized auth service for multiple applications.

security
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM-only export; no CommonJS support.

import { createServer } from 'usr'

User is a named export, not default.

import { User } from 'usr'

ESM-only; require() will fail.

import { authenticate } from 'usr'

Shows how to create and start a usr server with local storage.

import { createServer } from 'usr'; const app = createServer({ port: 3000, storage: 'local', secret: process.env.SECRET ?? 'changeme' }); app.on('listening', () => { console.log('usr server running on port 3000'); }); app.listen();
Debug
Known footguns
deprecatedPackage is unmaintained and in very early alpha; not suitable for production.
gotchaToken authentication is not OAuth2 compliant and will be replaced.
gotchaDocumentation is outdated and features may not work as described.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
14 hits · last 30 days
gptbot
3
ahrefsbot
1
Resources
packageusr