JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53
  • Score
    100M100P100Q59892F
  • License MIT

Open-source HIPAA compliance scanner for healthcare code. 140+ rules, 5 HIPAA categories. CLI + CI/CD + VS Code.

Package Exports

  • verification-layer

Readme

vlayer - HIPAA Compliance on Every Commit

Automated security scanning for healthcare applications. 140+ detection rules that catch PHI exposures, missing encryption, and access control gaps before they reach production. HIPAA 2026 ready - 15/15 requirements covered.

CI npm version HIPAA 2026 License Node


๐Ÿš€ Quick Start

# Install globally
npm install -g verification-layer

# Or use with npx (no install needed)
npx vlayer scan ./src

# Scan with HTML report
npx vlayer scan ./src -f html -o report.html

# Check compliance score
npx vlayer score ./src

# Auto-fix issues
npx vlayer scan ./src --fix

What is vlayer?

vlayer is a CLI tool and platform that scans your codebase for HIPAA compliance issues. Built for healthcare startups and developers building applications that handle Protected Health Information (PHI).

๐ŸŽฏ Key Features:

  • 140+ detection rules across 5 HIPAA categories (PHI exposure, encryption, access control, audit logging, data retention)
  • HIPAA 2026 NPRM ready - Covers all 15 new cybersecurity requirements
  • 10 training modules with 45+ questions and SHA-256 verifiable certificates
  • 5 HIPAA templates - IRP, BAA, NPP, Security Officer role, Physical Safeguards
  • Compliance scoring (0-100) - Track your HIPAA readiness over time
  • CI/CD integration - GitHub Actions, pre-commit hooks, PR comments
  • PDF audit reports - Executive summaries and technical findings for auditors
  • VS Code Extension - Real-time scanning with inline diagnostics
  • Pro Dashboard - Historical scans, team management, templates access at app.vlayer.app


๐Ÿ’ฐ Pricing

Plan Price Features
Open Source $0/forever Full scanner, CLI, 140+ rules, compliance scoring, training module, community support
Pro $49/month ($490/year) Everything in OSS + GitHub App with PR comments, pre-commit hooks, historical scan dashboard, HIPAA document templates, team tracking (10 users), PDF audit reports, email support (48h SLA). 14-day free trial
Enterprise Custom Everything in Pro + custom detection rules, self-hosted deployment, SSO/RBAC integration, dedicated compliance consultant, custom training modules, audit preparation support, priority support (4h SLA). Contact: sales@vlayer.app

Start Free Trial โ€ข View Pricing


๐Ÿ›ก๏ธ HIPAA 2026 Ready

The new HIPAA Security Rule (NPRM 2026) adds 15 cybersecurity requirements. vlayer covers all 15:

โœ… Network Segmentation โœ… Encryption Standards โœ… Multi-Factor Auth โœ… Audit Log Monitoring โœ… Incident Response โœ… Vulnerability Scanning โœ… Asset Inventory โœ… Access Controls โœ… Data Minimization โœ… Secure Configuration โœ… Patch Management โœ… Risk Assessments โœ… Business Continuity โœ… Security Training โœ… Third-Party Risk

Non-Compliance Costs:

  • $2M average breach cost
  • $100-$50K per violation (Tier 1-4)
  • $1.5M annual cap per violation type
  • Criminal penalties: $250K + 10 years jail

๐Ÿ“Š Detection Categories

vlayer scans for 140+ security patterns across 5 HIPAA compliance categories:

Category Rules What it detects
PHI Exposure 28 SSN/MRN in code, PHI in logs, localStorage, URLs, diagnosis codes, unencrypted patient data
Encryption 18 Weak crypto (MD5, DES), disabled SSL/TLS, HTTP URLs, missing at-rest encryption
Access Control 24 SQL injection, XSS, CORS wildcards, hardcoded credentials, IDOR vulnerabilities, missing auth
Audit Logging 15 Missing logging framework, unlogged PHI operations, insufficient audit trails
Data Retention 12 Bulk deletes without audit, missing retention policies, improper data deletion
Network Segmentation 14 Missing network isolation, insecure API endpoints, unrestricted PHI access
Multi-Factor Auth 8 Missing MFA, weak authentication, password-only access to PHI
Incident Response 10 Missing IRP, unmonitored security events, no breach notification process
Vulnerability Management 11 Unpatched dependencies, missing security updates, known CVEs
Asset Inventory 9 Undocumented PHI storage, shadow IT, untracked data flows
Session Management 8 Weak session configs, missing timeouts, insecure cookies
Third-Party Risk 6 Unsafe vendor integrations, missing BAAs, unvetted third-party code

Total: 140+ rules


๐ŸŽ“ Training Module

Turn your developers into HIPAA-aware engineers with built-in training:

vlayer train
  • 10 interactive modules covering HIPAA fundamentals, technical safeguards, and best practices
  • 45+ quiz questions with immediate feedback
  • SHA-256 verifiable certificates for audit documentation
  • Track team progress and completion rates (Pro plan)

Topics covered:

  • HIPAA Privacy & Security Rules
  • PHI identification and handling
  • Encryption standards and implementation
  • Access controls and authentication
  • Audit logging and monitoring
  • Incident response procedures
  • Business Associate Agreements
  • Data breach notification requirements
  • Physical and technical safeguards
  • Compliance penalties and enforcement

๐Ÿ“„ HIPAA Templates

5 production-ready policy templates (Pro plan):

vlayer templates list
vlayer templates export irp
Template Description
Incident Response Plan (IRP) Step-by-step breach response procedures
Business Associate Agreement (BAA) Standard BAA for third-party vendors
Notice of Privacy Practices (NPP) Patient rights and PHI usage disclosure
Security Officer Role Responsibilities and authority documentation
Physical Safeguards Facility access controls and workstation security

All templates are:

  • โœ… HIPAA-compliant and audit-ready
  • โœ… Customizable to your organization
  • โœ… Available in Word and PDF formats
  • โœ… Regularly updated for regulatory changes

๐Ÿ”ง CLI Commands

# Scanning
vlayer scan <path>                      # Basic scan
vlayer scan <path> -f html -o report.html   # HTML report
vlayer scan <path> -f markdown -o report.md # Markdown report
vlayer scan <path> --fix                     # Auto-fix issues
vlayer scan <path> -c phi-exposure encryption # Specific categories

# Compliance Score
vlayer score <path>                     # Calculate compliance score (0-100)
vlayer score <path> -f json             # JSON output

# Watch Mode
vlayer watch <path>                     # Watch for changes
vlayer watch <path> -c phi-exposure     # Watch specific categories

# Audit Reports
vlayer report <path>                    # Generate auditor-ready report
vlayer report <path> -o report.html     # Custom output path
vlayer report <path> --org "Company"    # Set organization name

# Training
vlayer train                            # Start interactive training
vlayer train --module 2                 # Specific module
vlayer train --certificate              # Generate certificate

# Templates (Pro)
vlayer templates list                   # List available templates
vlayer templates export irp             # Export Incident Response Plan
vlayer templates export baa             # Export Business Associate Agreement

# Baseline
vlayer baseline <path>                  # Generate baseline
vlayer scan <path> --baseline .vlayer-baseline.json # Scan with baseline

# Configuration
vlayer init                             # Generate .vlayerrc.json

Exit codes:

  • 0 - No critical issues
  • 1 - Critical issues found (useful for CI/CD)

โš™๏ธ CI/CD Integration

GitHub Actions

name: HIPAA Compliance
on: [push, pull_request]

jobs:
  vlayer-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: '18'
      - run: npx vlayer scan ./src

Pre-commit Hook

# Install pre-commit hook
npx vlayer install-hook

# .git/hooks/pre-commit will now run vlayer on staged files

Pull Request Comments (Pro)

Install the vlayer GitHub App to get automatic PR comments with compliance findings.


๐Ÿ“Š Compliance Dashboard (Pro)

Access historical scans, team management, and audit reports at app.vlayer.app:

  • Historical Scans - Track compliance trends over time
  • Team Management - Invite team members (10 seats on Pro)
  • Templates Library - Access all 5 HIPAA document templates
  • PDF Reports - Generate audit-ready reports
  • Training Dashboard - Track team training completion
  • Compliance Score Tracking - Monitor your 0-100 score over time

Features:

  • Dark theme with professional UI
  • Filter findings by severity and category
  • Export data in JSON, CSV, or PDF
  • Email notifications for critical findings
  • Integration with Slack/Teams (coming soon)

๐Ÿ” VS Code Extension

Real-time HIPAA compliance feedback in your editor:

# Install from the vscode-extension directory
cd vscode-extension
npm install
npm run compile

Features:

  • โœ… Real-time scanning on file save
  • โœ… Inline diagnostics with severity markers
  • โœ… Hover tooltips with HIPAA references
  • โœ… Quick-fix actions for auto-remediation
  • โœ… Status bar compliance score
  • โœ… Commands: "VLayer: Scan Current File", "VLayer: Scan Workspace"

๐Ÿค– AI-Powered Scanning (Optional)

Reduce false positives and catch complex violations with Claude AI:

# Set API key
export ANTHROPIC_API_KEY="sk-ant-..."

# Run AI-powered scan
vlayer ai-scan ./src

# Adjust budget
vlayer ai-scan ./src --budget 100

AI Features:

  • 6 specialized LLM rules for complex HIPAA violations
  • Automatic triage to reduce false positives by 50%+
  • PHI scrubbing (HIPAA-safe, no PHI sent to API)
  • Cost control with budget limits and caching

Typical cost: $0.10-$0.50 per scan


๐Ÿ“ Configuration

Create .vlayerrc.json in your project root:

{
  "exclude": ["**/*.test.ts", "**/__mocks__/**"],
  "ignorePaths": ["sample-data", "fixtures"],
  "safeHttpDomains": ["my-internal-cdn.com"],
  "contextLines": 3,
  "categories": ["phi-exposure", "encryption", "access-control"],
  "minConfidence": "medium",
  "ai": {
    "enabled": true,
    "enableTriage": true,
    "budgetCents": 50
  }
}

๐Ÿ—๏ธ Auto-Fix

Automatically remediate common vulnerabilities:

vlayer scan ./my-app --fix
Issue Auto-Fix Applied
SQL injection Convert to parameterized query
Hardcoded password Replace with process.env.PASSWORD
Hardcoded API key Replace with process.env.API_KEY
HTTP URL Upgrade to HTTPS
innerHTML Replace with textContent
PHI in console.log Comment out with review marker

๐Ÿ“š HIPAA References

Each finding maps to specific HIPAA regulations:

Reference Requirement
ยง164.502, ยง164.514 PHI disclosure and de-identification
ยง164.312(a)(1) Access control mechanisms
ยง164.312(a)(2)(iv) Encryption and decryption
ยง164.312(b) Audit controls
ยง164.312(d) Person or entity authentication
ยง164.312(e)(1) Transmission security
ยง164.530(j) Documentation retention (6 years)

๐Ÿค Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

# Development
npm install
npm run dev      # Watch mode
npm run test     # Run tests
npm run lint     # Lint code
npm run typecheck # Type check

๐Ÿ“„ License

MIT License - see LICENSE for details.


๐Ÿ“ง Contact


Built for healthcare developers who take compliance seriously.

Website โ€ข Documentation โ€ข Dashboard โ€ข Report Bug โ€ข Request Feature