# saintedlama/passport-local-mongoose

Passport-Local Mongoose is a Mongoose plugin that simplifies building username and password login with Passport

Repository: https://github.com/saintedlama/passport-local-mongoose
Canonical: https://ross.abutalabs.com/products/passport-local-mongoose
Language: TypeScript
License: MIT
License Family: permissive
Topics: passport, mongoose-plugin, javascript
Last push: 2026-07-28T03:38:06+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 82, longevity 100
- inputs: {"age_days": 5032, "days_push": 36, "days_rel": 121, "gap_med": 1.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1164, forks 289 (observed 2026-08-28T04:03:49.964846+00:00)

## What it is
A Mongoose plugin that simplifies building username and password login with Passport for Node.js applications. It adds username, hash, and salt fields to a User schema and provides authenticate, serializeUser, and deserializeUser methods.

## Use cases
- add username and password login to a mongoose user model
- integrate passport local strategy with mongodb
- hash and salt user passwords in node.js
- set up session serialization for passport users
- build a simple auth system for an express app

## When to choose
- you use Mongoose with MongoDB and Passport for authentication
- you want ready-made password hashing and salt handling
- you need quick serialize/deserialize helpers for passport sessions

## When to avoid
- you don't use Mongoose or MongoDB
- you need OAuth, SAML, or other non-local auth strategies
- you use a different ORM like Prisma or Sequelize

## Facets
- artifact type: plugin
- maturity: stable
- function: auth, orm
- domain: web-development, backend, security, databases
- platform: -
- tags: passport, mongoose, authentication, password-hashing, login, nodejs

## Member repositories
- saintedlama/passport-local-mongoose (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.964846+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:31:31.210491+00:00, confidence not recorded.
  - readme: https://github.com/saintedlama/passport-local-mongoose (fetched 2026-08-28T04:03:49.964846+00:00, sha ad1d3cba1349)
  - registry_npm: https://registry.npmjs.org/passport-local-mongoose (fetched 2026-08-29T12:35:50.542838+00:00, sha 57b4f6a3abe5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
