New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@greenarmor/ges-core

Package Overview
Dependencies
Maintainers
1
Versions
61
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

latest
npmnpm
Version
1.6.8
Version published
Weekly downloads
572
32.71%
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 Aug 2026

Related posts