🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@weave_protocol/domere

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weave_protocol/domere

The Judge Protocol - Thread identity, intent verification, and blockchain anchoring

latest
Source
npmnpm
Version
1.3.5
Version published
Maintainers
1
Created
Source

⚖️ @weave_protocol/domere

Enterprise Compliance, Verification, GDPR & CCPA for AI Agents

npm npm License

Part of the Weave Protocol security suite.

✨ Features

CategoryFeatures
VerificationIntent tracking, drift detection, execution replay, multi-agent handoff
OrchestrationTask scheduler, agent registry, shared state with locks
ComplianceSOC2, HIPAA, PCI-DSS, ISO27001, GDPR, CCPA checkpoints & reporting
BlockchainSolana & Ethereum anchoring for immutable audit trails
GDPRConsent management, DSAR handling, breach notification, retention enforcement
CCPAConsumer requests, opt-out management, sale disclosure, annual metrics

📦 Installation

npm install @weave_protocol/domere

🚀 Quick Start

Basic Compliance Checkpoint

import { ComplianceManager } from '@weave_protocol/domere';

const compliance = new ComplianceManager(['soc2', 'hipaa', 'gdpr']);

// Create tamper-evident checkpoint
const checkpoint = await compliance.createCheckpoint({
  action: 'data_access',
  resource: 'patient_records',
  actor: 'agent-medical-01',
  metadata: { reason: 'treatment_review' }
});

console.log(checkpoint.hash); // SHA-256 hash for verification

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "domere": {
      "command": "npx",
      "args": ["-y", "@weave_protocol/domere"]
    }
  }
}

🇪🇺 GDPR Compliance

Domere includes comprehensive GDPR support with 11 MCP tools.

GDPR Tools Overview

ToolGDPR ArticlePurpose
domere_gdpr_record_consentArt 6, 7Record consent with legal basis
domere_gdpr_withdraw_consentArt 7(3)Process consent withdrawal
domere_gdpr_check_consentArt 6Verify valid consent exists
domere_gdpr_handle_dsarArt 15-22Manage all subject rights requests
domere_gdpr_right_to_erasureArt 17Execute "right to be forgotten"
domere_gdpr_data_portabilityArt 20Export data in portable format
domere_gdpr_log_processingArt 30Maintain processing records
domere_gdpr_breach_notifyArt 33-3472-hour breach notification workflow
domere_gdpr_retention_checkArt 5(1)(e)Enforce storage limitation
domere_gdpr_automated_decisionArt 22Track AI decisions & human review
domere_gdpr_reportVariousGenerate compliance reports
import { GDPRManager } from '@weave_protocol/domere';

const gdpr = new GDPRManager({
  name: 'Acme Corporation',
  email: 'dpo@acme.com',
  address: '123 Main St, London',
  dpoContact: 'Jane Smith'
});

const consent = gdpr.recordConsent({
  subjectId: 'user-abc-123',
  purpose: 'marketing',
  legalBasis: 'consent',
  granted: true,
  source: 'web_form',
  version: '2.1.0'
});

Data Subject Access Requests (DSAR)

// Create DSAR - automatically sets 30-day deadline
const dsar = gdpr.createDSAR({
  subjectId: 'user-abc-123',
  type: 'access',
  verificationMethod: 'email'
});

// Check for overdue requests
const overdue = gdpr.getOverdueDSARs();

🇺🇸 CCPA/CPRA Compliance

Domere v1.3.4+ includes comprehensive California Consumer Privacy Act (CCPA) and California Privacy Rights Act (CPRA) support with 18 MCP tools.

CCPA vs GDPR Quick Reference

AspectGDPRCCPA
Deadline30 days45 days (extendable +45)
TerminologyData SubjectConsumer
ControllerData ControllerBusiness
Key RightRight to ErasureRight to Opt-Out of Sale
SignalGlobal Privacy Control (GPC)

CCPA Tools Overview

ToolCCPA SectionPurpose
ccpa_register_consumer1798.140Register consumer for tracking
ccpa_get_consumer1798.140Lookup consumer by ID or email
ccpa_record_opt_out1798.120Record Do Not Sell/Share opt-out
ccpa_process_gpc1798.135Process Global Privacy Control signal
ccpa_withdraw_opt_out1798.120Consumer withdraws opt-out
ccpa_get_opt_outs1798.120List consumer's active opt-outs
ccpa_check_opt_out1798.120Check if opt-out is active
ccpa_submit_request1798.100-106Submit consumer request
ccpa_verify_request1798.185Verify consumer identity
ccpa_extend_request1798.105Extend deadline by 45 days
ccpa_complete_request1798.100-106Complete with response
ccpa_deny_request1798.105Deny with valid reason
ccpa_get_pending_requestsList pending requests
ccpa_get_overdue_requestsList overdue requests (alert!)
ccpa_generate_report1798.185Generate compliance report
ccpa_annual_metrics1798.185(a)(7)Required annual disclosure
ccpa_get_checkpointsAudit trail for compliance
ccpa_verify_chainVerify checkpoint integrity

Consumer Opt-Out Management

import { CCPAManager } from '@weave_protocol/domere';

const ccpa = new CCPAManager({
  id: 'biz-001',
  name: 'Acme Corporation',
  address: '123 Main St, San Francisco, CA',
  privacyPolicyUrl: 'https://acme.com/privacy',
  doNotSellUrl: 'https://acme.com/do-not-sell',
  contactEmail: 'privacy@acme.com',
  meetsThreshold: true
});

// Register consumer
const consumer = ccpa.registerConsumer({
  email: 'user@example.com',
  californiaResident: true
});

// Record opt-out (Do Not Sell My Personal Information)
const optOut = ccpa.recordOptOut({
  consumerId: consumer.id,
  optOutType: 'sale',
  source: 'web_form'
});

// Check if consumer has opted out
const hasOptedOut = ccpa.hasActiveOptOut(consumer.id, 'sale');

Global Privacy Control (GPC)

// Process GPC signal - automatically opts out of sale AND sharing
const optOuts = ccpa.processGPC(consumer.id);
console.log(`Created ${optOuts.length} opt-outs via GPC`); // 2

Consumer Requests (45-day deadline)

// Submit Right to Know request
const request = ccpa.submitRequest({
  consumerId: consumer.id,
  type: 'know_specific',
  source: 'web_form'
});

console.log(`Due: ${request.dueDate}`); // 45 days from now

// Verify identity before processing
ccpa.verifyRequest(request.id, 'email_verification');

// Need more time? Extend once by 45 days
ccpa.extendRequest(request.id, 'Complex request');

// Complete with response
ccpa.completeRequest(request.id, {
  actions: [
    { type: 'disclosed', dataCategory: 'identifiers', recordCount: 5 },
    { type: 'disclosed', dataCategory: 'commercial_info', recordCount: 23 }
  ],
  format: 'json'
});

Annual Metrics Disclosure

// Required annual disclosure per CCPA Section 1798.185(a)(7)
const metrics = ccpa.generateAnnualMetrics(2025);

console.log('Right to Know:', metrics.requestsToKnow);
console.log('Right to Delete:', metrics.requestsToDelete);
console.log('Right to Opt-Out:', metrics.requestsToOptOut);

Personal Information Categories

CategoryExamples
identifiersName, SSN, driver's license, passport
customer_recordsPaper/electronic customer records
protected_classificationsAge, race, religion, sexual orientation
commercial_infoProducts purchased, purchase history
biometricFingerprints, face recognition
internet_activityBrowsing history, search history
geolocationPrecise physical location
sensory_dataAudio, video, thermal data
professional_infoEmployment information
education_infoNon-public education records
inferencesConsumer profiles, predictions
sensitive_personal_infoCPRA sensitive categories

🔗 Blockchain Anchoring

Anchor checkpoints to blockchain for immutable audit proof:

const anchor = await compliance.anchorToBlockchain(checkpoint.id, 'solana');
console.log(`Transaction: ${anchor.transactionId}`);

Blockchain Addresses:

  • Solana Mainnet: 6g7raTAHU2h331VKtfVtkS5pmuvR8vMYwjGsZF1CUj2o
  • Solana Devnet: BeCYVJYfbUu3k2TPGmh9VoGWeJwzm2hg2NdtnvbdBNCj
  • Ethereum: 0xAA8b52adD3CEce6269d14C6335a79df451543820

📊 Compliance Frameworks

FrameworkStatusDescription
SOC2✅ ImplementedTrust Services Criteria
HIPAA✅ ImplementedHealthcare data protection
PCI-DSS✅ ImplementedPayment card security
ISO27001✅ ImplementedInformation security management
GDPR✅ ImplementedEU data protection regulation
CCPA/CPRA✅ ImplementedCalifornia consumer privacy

🛠️ MCP Tools Reference

Core Compliance Tools

domere_checkpoint          Create tamper-evident checkpoint
domere_verify              Verify checkpoint integrity
domere_compliance_report   Generate framework report
domere_anchor_blockchain   Anchor to Solana/Ethereum

GDPR Tools

domere_gdpr_record_consent      Record/update consent
domere_gdpr_withdraw_consent    Withdraw consent
domere_gdpr_check_consent       Check consent status
domere_gdpr_handle_dsar         Create/manage DSARs
domere_gdpr_right_to_erasure    Execute data deletion
domere_gdpr_data_portability    Export subject data
domere_gdpr_breach_notify       Breach management
domere_gdpr_retention_check     Retention enforcement
domere_gdpr_automated_decision  Article 22 tracking
domere_gdpr_report              Compliance reporting

CCPA/CPRA Tools

ccpa_register_consumer      Register California consumer
ccpa_get_consumer           Lookup consumer
ccpa_record_opt_out         Do Not Sell / Do Not Share
ccpa_process_gpc            Global Privacy Control signal
ccpa_withdraw_opt_out       Withdraw opt-out
ccpa_check_opt_out          Check opt-out status
ccpa_submit_request         Submit consumer request
ccpa_verify_request         Verify identity
ccpa_extend_request         Extend 45-day deadline
ccpa_complete_request       Complete with response
ccpa_deny_request           Deny with reason
ccpa_get_pending_requests   List pending requests
ccpa_get_overdue_requests   Alert: overdue requests
ccpa_generate_report        Compliance reports
ccpa_annual_metrics         Required annual disclosure
ccpa_get_checkpoints        Audit trail
ccpa_verify_chain           Verify checkpoint integrity

🤖 AI Agent Skill

Skill name: compliance-auditing

Triggers: audit, checkpoint, SOC2, HIPAA, PCI-DSS, ISO27001, GDPR, CCPA, CPRA, blockchain, consent, DSAR, consumer request, opt-out, breach, retention

📄 License

Apache 2.0 - See LICENSE

Keywords

ai

FAQs

Package last updated on 29 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts