npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mdxui/soc2

v6.0.0

Published

SOC2 compliance components for trust centers and compliance portals

Downloads

8

Readme

@mdxui/soc2

SOC2 compliance components for building trust centers (public) and compliance portals (internal).

Installation

pnpm add @mdxui/soc2

Overview

This package provides two sets of components:

  • Site Components (@mdxui/soc2/site) - Public-facing trust center pages
  • App Components (@mdxui/soc2/app) - Internal compliance management portal

Both integrate with Payload CMS via auto-wiring for data management.

Quick Start

Public Trust Center

import type { SOC2SiteComponents } from '@mdxui/soc2/site'
import {
  TrustCenter,
  TrustHero,
  Certifications,
  SecurityPractices,
  InheritanceShowcase,
} from '@mdxui/soc2/site/components'

export default function TrustCenterPage() {
  return (
    <TrustCenter config={trustCenterConfig}>
      <TrustHero
        companyName="Acme Inc"
        title="Security & Compliance"
        description="Your data security is our top priority"
        certifications={certifications}
      />
      <Certifications certifications={certifications} />
      <SecurityPractices practices={securityPractices} />
      <InheritanceShowcase summary={inheritanceSummary} />
    </TrustCenter>
  )
}

Internal Compliance Portal

import type { SOC2AppComponents } from '@mdxui/soc2/app'
import {
  CompliancePortal,
  ComplianceDashboard,
  ControlsView,
  CUECView,
} from '@mdxui/soc2/app/components'

export default function CompliancePage() {
  return (
    <CompliancePortal userRole="admin">
      <ComplianceDashboard
        posture={compliancePosture}
        upcomingTasks={tasks}
        recentEvents={events}
      />
    </CompliancePortal>
  )
}

Customer Compliance View (Platform Customers)

import { CustomerComplianceView, CUECView } from '@mdxui/soc2/app/components'

// Show customers what they inherit and what they need to do
export default function CustomerCompliancePage() {
  return (
    <>
      <CustomerComplianceView
        inheritance={inheritanceSummary}
        inheritedControls={inheritedControls}
        cuecs={customerCuecs}
        progress={75}
      />
      <CUECView
        cuecs={customerCuecs}
        onComplete={handleComplete}
        onAcknowledge={handleAcknowledge}
      />
    </>
  )
}

Site Components

Layout

| Component | Description | |-----------|-------------| | TrustCenter | Root wrapper with header/footer | | TrustHero | Hero section with certification badges |

Certifications & Compliance

| Component | Description | |-----------|-------------| | Certifications | Grid of certification cards | | ComplianceBadge | Status badge (valid/expired/pending) | | AuditTimeline | Past audit history |

Security Information

| Component | Description | |-----------|-------------| | SecurityPractices | Security measures grid | | SubProcessors | GDPR sub-processor table | | SecurityFAQ | Accordion FAQ | | SecurityContact | Contact info & bug bounty |

Platform Inheritance

| Component | Description | |-----------|-------------| | InheritanceShowcase | Shows what customers inherit | | CUECChecklist | Minimal customer responsibilities | | ReportRequestForm | Request SOC2 reports |

App Components

Layout & Dashboard

| Component | Description | |-----------|-------------| | CompliancePortal | Root wrapper with role context | | ComplianceDashboard | Overview with metrics & tasks |

Controls Management

| Component | Description | |-----------|-------------| | ControlsView | Browse/filter controls list | | ControlCard | Individual control card | | ControlDetail | Full control view (props only) |

Evidence Management

| Component | Description | |-----------|-------------| | EvidenceView | Evidence list with filters | | EvidenceCard | Evidence item card | | EvidenceTasks | Collection task list (props only) |

Customer Portal

| Component | Description | |-----------|-------------| | CustomerComplianceView | Inheritance overview | | CUECView | CUEC management list | | CUECItem | Interactive CUEC checklist item | | InheritedControlsView | Platform controls list (props only) |

Visualization

| Component | Description | |-----------|-------------| | ScoreGauge | Circular progress gauge | | CategoryProgress | TSC category progress bars | | ActivityFeed | Compliance events timeline | | StatusBreakdown | Control status chart (props only) |

Types

import type {
  // Controls
  Control,
  ControlCategory,
  CUEC,
  InheritedControl,
  TrustServicesCriteria,
  ControlStatus,
  ControlOwnership,

  // Evidence
  Evidence,
  EvidenceTask,
  EvidenceSummary,
  EvidenceType,

  // Compliance
  Audit,
  Finding,
  CompliancePosture,
  ComplianceEvent,
  InheritanceSummary,
  TrustCenterConfig,
  Certification,
  SubProcessor,
} from '@mdxui/soc2/types'

Auto-Wiring

Components auto-wire to Payload CMS collections:

Site Collections

| Component | Collection | Default Query | |-----------|------------|---------------| | Certifications | certifications | sort: -issuedAt, valid: true | | SubProcessors | subProcessors | sort: name | | AuditTimeline | audits | sort: -periodEnd, limit: 5 | | SecurityFAQ | securityFaq | sort: order |

App Collections

| Component | Collection | Default Query | |-----------|------------|---------------| | ControlsView | controls | sort: controlId | | EvidenceView | evidence | sort: -collectedAt | | EvidenceTasks | evidenceTasks | overdue: true | | AuditView | audits | sort: -periodEnd | | FindingsView | findings | status: !remediated | | ActivityFeed | complianceEvents | sort: -timestamp | | CUECView | cuecs | sort: controlId |

Platform Compliance Inheritance

The key value proposition: customers building on your platform inherit your SOC2 controls.

┌─────────────────────────────────────────────────────┐
│              Your Platform (SOC2 Certified)          │
├─────────────────────────────────────────────────────┤
│  Infrastructure │ Auth/IAM │ Audit Logs │ Encryption │
│    Controls     │ Controls │  Controls  │  Controls  │
└────────────────────────┬────────────────────────────┘
                         │ Inherited
                         ▼
┌─────────────────────────────────────────────────────┐
│              Customer's Business                     │
├─────────────────────────────────────────────────────┤
│  Only needs to implement CUECs:                     │
│  • Configure team access                            │
│  • Disable terminated employees                     │
│  • Review permissions periodically                  │
└─────────────────────────────────────────────────────┘

Trust Services Criteria (TSC)

Supports all five SOC2 categories:

  • Security - Protection against unauthorized access
  • Availability - System availability for operation
  • Processing Integrity - Complete, accurate processing
  • Confidentiality - Information designated confidential
  • Privacy - Personal information handling

License

MIT