Template Library

Reusable code patterns and components for rapid development

Contact Form with Validation

Complete contact form with client and server-side validation, error handling, and user feedback.

JavaScript validationformsfrontend

JWT Authentication Middleware

Express middleware for JWT token validation with role-based access control.

JavaScript jwtauthmiddleware

CRUD Database Model

Generic CRUD operations class for SQLite with better-sqlite3, easily adaptable to any table.

JavaScript databasecrudsqlite

RESTful API Controller Pattern

Standard REST API controller with proper HTTP methods, error handling, and validation.

JavaScript apirestexpress

API Client Wrapper

Simplified fetch wrapper with authentication, error handling, and request/response interceptors.

JavaScript apifetchhttp

Reusable Modal Component

Flexible modal dialog component with customizable content, animations, and accessibility features.

JavaScript uimodalcomponent

Toast Notification System

Lightweight notification system with multiple types, auto-dismiss, and animations.

JavaScript notificationstoastui

Loading State Manager

Manage loading states for buttons, forms, and page sections with consistent UI feedback.

JavaScript loadinguistate

Data Table with Search & Filter

Feature-rich data table with search, sort, filter, and pagination capabilities.

JavaScript tabledatasearch

Email Service with Templates

Nodemailer email service with HTML templates and fallback plain text.

JavaScript emailnodemailertemplates

LocalStorage Manager

Type-safe localStorage wrapper with JSON serialization, expiration, and error handling.

JavaScript storagestateutilities

Validation Utility Functions

Collection of common validation functions for forms, APIs, and data processing.

JavaScript validationutilitieshelpers

Form State Manager

Centralized form state management with validation, dirty state tracking, and error handling.

JavaScript formsstatevalidation

Debounce & Throttle Utilities

Performance optimization utilities for rate-limiting function calls.

JavaScript performanceutilitiesoptimization

Date & Time Utilities

Common date/time formatting and manipulation functions.

JavaScript datetimeformatting

Role-Based Access Control Middleware

Express middleware for RBAC with role hierarchy, permission checks, and audit logging. Maps to SOC 2 CC6.1, ISO 27001 A.8.2, HIPAA Access Controls.

JavaScript rbacaccess-controlmiddleware

Chain-Hashed Audit Logger

Tamper-evident audit log with SHA-256 hash chaining. Each entry links to the previous via cryptographic hash, satisfying SOC 2 CC7.2, ISO 27001 A.8.15, and HIPAA audit requirements.

JavaScript auditlogginghash-chain

AES-256-GCM Field Encryption Service

Encrypt sensitive database fields at rest using AES-256-GCM with per-field IV and auth tags. Maps to GDPR Art. 32, HIPAA ยง164.312(a)(2)(iv), PCI DSS Req 3.

JavaScript encryptionaes-256data-at-rest

PII Data Masking Utility

Mask or redact personally identifiable information in logs, exports, and displays. Supports SSN, email, phone, credit card, and custom patterns. Maps to GDPR Art. 25, HIPAA Safe Harbor.

JavaScript piimaskingredaction

Breach Notification Workflow Engine

Multi-framework breach notification engine with deadline tracking for GDPR (72h), HIPAA (60d), DORA (4h), and NIS 2 (24h). Classifies severity, routes to authorities, and generates timelines.

JavaScript breachincident-responsenotification

Multi-Factor Authentication Middleware

TOTP (RFC 6238) and WebAuthn/FIDO2 MFA middleware with recovery codes, rate-limiting lockout (PCI DSS 8.3.4), and 8-hour session window. Drop-in Express middleware for protecting admin routes.

JavaScript mfatotpwebauthn

Configurable Session Timeout Manager

Framework-compliant session timeout middleware with idle + absolute timeouts, configurable profiles (standard/sensitive/critical), grace-period warnings, and audit-logged auto-logout.

JavaScript sessiontimeoutauto-logout

HIPAA Minimum Necessary PHI Filter

Role-based PHI field filtering implementing HIPAA ยง164.502(b) Minimum Necessary Standard. Defines the 18 Safe Harbor identifiers, provides per-role access profiles, and logs every PHI access for audit compliance.

JavaScript hipaaphiminimum-necessary

GDPR Granular Consent Manager

Per-purpose consent tracking implementing GDPR Articles 6, 7, 13, 17, 20, and 21. Tracks consent versions, withdrawal history, legal basis, and generates Kantara-specification consent receipts for audit evidence.

JavaScript gdprconsentprivacy

PCI DSS Card Data Sanitizer

PCI DSS 4.0.1 compliant PAN detection, masking (first-6/last-4), truncation, and tokenization. Detects 7 card brands via Luhn validation, scrubs PANs from free-text fields, and ensures card data never reaches logs.

JavaScript pci-dsspantokenization

Sustainable Balanced Scorecard (SBSC)

Strategic matrix integrating Financial, Customer, Internal Process, and Learning & Growth perspectives with sustainability KPIs, AI automation vectors, and servant leadership practices.

JSON MBAistrategyESG

Circular Supply Chain Workflow

Six-phase circular economy workflow: Regenerative Sourcing โ†’ Circular Design โ†’ GreenOps Manufacturing โ†’ PaaS Distribution โ†’ Reverse Logistics โ†’ Remanufacturing.

JSON MBAioperationssupply-chain

Triple Bottom Line (TBL) P&L

Profit-People-Planet integrated P&L with baseline vs projected metrics, AI-driven financial modeling, and servant leadership valuation rationale.

JSON MBAifinanceTBL

Purpose-Driven Marketing Audit

Five-phase audit framework: Purpose Alignment, Impact Verification, Inclusive Storytelling, Ethical Personalization, and Continuous Sentiment Analysis.

JSON MBAimarketingESG

Servant Leadership 1-on-1 & Review

Structured 1-on-1 coaching agenda (5 segments) plus a 5-competency performance evaluation rubric scoring empowerment, psychological safety, growth, inclusion, and ethics.

JSON MBAiHRservant-leadership

Sustainable SDLC & GreenOps

Five-phase software development lifecycle embedding energy-efficient coding, Agentic Engineering, and environmental performance metrics alongside traditional quality gates.

JSON MBAiITSDLC

AI Governance & ESG Compliance (NIST AI RMF)

Operationalizes the four NIST AI RMF functions (Govern, Map, Measure, Manage) with AI agent enablement, servant leadership accountability, and OSCAL documentation integration.

JSON MBAiGRCNIST-AI-RMF

Password Hashing with Argon2/bcrypt

Secure password hashing with configurable rounds, timing-safe comparison, and migration support between algorithms.

JavaScript securityauthpasswords

OAuth 2.0 Authorization Flow

Complete OAuth 2.0 implementation with PKCE, token refresh, and provider abstraction for Google, GitHub, and Microsoft.

JavaScript oauthauthsso

Secure Session Management

Server-side session management with Redis store, CSRF protection, and configurable expiration policies.

JavaScript sessionsauthredis

Database Migration Runner

Automated database migration system with versioned SQL scripts, rollback support, and migration history tracking.

JavaScript migrationsdatabasesql

Fluent Query Builder

Chainable SQL query builder with parameterized queries, joins, subqueries, and protection against SQL injection.

JavaScript sqldatabaseorm

Database Connection Pool

Production-ready connection pooling with health checks, automatic reconnection, and query timeout handling.

JavaScript databasepoolingperformance

Drag & Drop File Upload

File upload component with drag-and-drop, progress tracking, file type validation, and chunked upload support.

JavaScript uploadformsfrontend

Multi-Step Form Wizard

Step-by-step form wizard with progress indicator, validation per step, data persistence, and review before submit.

JavaScript formswizardfrontend

API Rate Limiter

Token bucket rate limiting middleware with sliding window, per-user limits, and Redis-backed distributed state.

JavaScript rate-limitingapisecurity

Webhook Handler & Dispatcher

Incoming webhook processor with signature verification, retry queue, idempotency keys, and event routing.

JavaScript webhooksapievents

Accessibility Audit Component

Client-side accessibility checker that validates color contrast, ARIA labels, focus order, and heading hierarchy.

JavaScript a11ywcagaccessibility

Responsive Grid System

CSS Grid layout system with breakpoint utilities, auto-fit columns, and semantic HTML structure.

CSS cssgridresponsive