Swarup Saha

Open Source

PassGuardJS

An open-source JavaScript and TypeScript password strength and password policy validation library.


Project metadata
CategoryOpen Source
TechnologiesTypeScript, JavaScript, npm
Linkssource

Overview

PassGuardJS is a small, dependency-light library for validating password strength and enforcing password policies in JavaScript and TypeScript applications — on both the client and the server.

Problem

Most applications either roll their own ad-hoc password rules or pull in heavyweight scoring libraries. Policy requirements (length, character classes, deny-lists) and strength estimation usually end up scattered and inconsistent between frontend and backend.

Solution

One library that expresses password policy as configuration and returns structured validation results, so the same policy runs identically in the browser and on the server.

Key features

  • Configurable policy rules: length, character classes, repetition, deny-lists
  • Strength scoring with human-readable feedback
  • TypeScript-first API with full typings
  • Zero runtime dependencies

Lessons learned

Security libraries earn adoption through good defaults — most users will never change the configuration, so the defaults are the policy.


Related projects

SOC RegisterDefensive Security

A security operations management application for tracking SOC activities, incidents, users, roles, and operational records.

Built with TypeScript, Next.js, PostgreSQL, RBAC

case studysource

← All projects