🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@greenarmor/ges-core

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greenarmor/ges-core

GESF Core - Types, schemas, and constants

npmnpm
Version
1.3.0
Version published
Weekly downloads
3.1K
-14.67%
Maintainers
1
Weekly downloads
 
Created
Source

@greenarmor/ges-core

Core types, Zod schemas, and constants for the Green Engineering Standard Framework (GESF).

This is the foundation package that all other GESF packages depend on. It provides shared TypeScript interfaces, runtime validation schemas, and compliance-related constants used across the framework.

Install

npm install @greenarmor/ges-core

Exports

Types

TypeDescription
ProjectTypeSupported project types (SaaS, AI, MCP Server, Blockchain, etc.)
FrameworkNameCompliance framework identifiers (GDPR, OWASP, NIST, CIS)
DataClassificationData sensitivity levels (Public, Internal, Confidential, Restricted)
ControlStatusControl evaluation states (pass, fail, warning, not_applicable)
ReportFormatOutput formats (markdown, html, pdf)
ProjectConfigProject configuration interface
RequirementsCompliance requirements configuration
ControlIndividual compliance control
ControlCheckControl evaluation result
ComplianceScorePer-framework scoring result
ScoreFileOverall score file structure
AuditEntryAudit trail entry
PolicyPackPolicy pack definition
ReportOptionsReport generation options

Constants

ConstantDescription
GESF_VERSIONFramework version string
PROJECT_TYPESAll supported project types with labels
FRAMEWORKSSupported compliance frameworks
DEFAULT_FRAMEWORKSDefault frameworks for new projects
PROJECT_TYPE_PACKSMapping of project types to policy packs
DATA_CLASSIFICATIONSData classification levels
APPROVED_ENCRYPTIONApproved encryption algorithms
APPROVED_HASHINGApproved hashing algorithms (Argon2id, bcrypt)
REJECTED_HASHINGRejected hashing algorithms (MD5, SHA1)
AUDIT_LOG_FIELDSRequired fields for audit log entries
MUST_LOG_EVENTSEvents that must be logged
MUST_NOT_LOGData that must never appear in logs
DB_AUDIT_COLUMNSRequired database audit columns

Schemas (Zod)

Runtime validation schemas for all types: ProjectConfigSchema, ControlSchema, AuditEntrySchema, ReportOptionsSchema, and more.

Usage

import { ControlSchema, APPROVED_ENCRYPTION, GESF_VERSION } from '@greenarmor/ges-core';

const control = ControlSchema.parse({
  id: 'enc-001',
  name: 'Encryption at Rest',
  framework: 'GDPR',
  status: 'pass',
});

console.log(APPROVED_ENCRYPTION); // ['AES-256-GCM', 'ChaCha20-Poly1305', ...]

License

MIT

FAQs

Package last updated on 17 Jun 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