# bradtraversy/node_passport_login

Node.js login, registration and access control using Express and Passport

Repository: https://github.com/bradtraversy/node_passport_login
Canonical: https://ross.abutalabs.com/products/node_passport_login
Language: EJS
License Family: other
Last push: 2026-07-28T04:26:58+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 3820, "days_push": 36, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1757, forks 1279 (observed 2026-08-28T04:05:32.284619+00:00)

## What it is
A Node.js starter application demonstrating user registration, login, and access control using Express, Passport, MongoDB/Mongoose, EJS, and Bootstrap. It includes password hashing with bcryptjs, flash messages, and a protected dashboard route.

## Use cases
- add login and registration to a node app
- learn passport local authentication
- starter template for express auth with mongodb
- implement protected routes and dashboards
- hash user passwords with bcrypt
- build session-based authentication in express

## When to choose
- you want a simple, well-known example of Express + Passport authentication
- you are learning Node.js auth flows with MongoDB
- you need a quick boilerplate for login/registration with EJS views

## When to avoid
- you need production-grade auth with OAuth, MFA, or JWT
- you use a SQL database or a frontend SPA framework
- you require a maintained library with a license and security audits

## Facets
- artifact type: application
- maturity: active
- function: auth, web-framework, templating, routing
- domain: web-development, backend, security, developer-tools
- platform: cross-platform
- tags: passport, express, mongodb, mongoose, ejs, bootstrap, boilerplate, tutorial, session-authentication, bcrypt, nodejs, web-server

## Member repositories
- bradtraversy/node_passport_login (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:32.284619+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-30T03:27:39.270127+00:00, confidence not recorded.
  - readme: https://github.com/bradtraversy/node_passport_login (fetched 2026-08-28T04:05:32.284619+00:00, sha 4899fbb4c759)
- Data as of 2026-08-30T08:39:29.467469+00:00.
