
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@thearchitech.xyz/validator
Advanced tools
Genome validation library for The Architech ecosystem.
All validation rules tested and working:
Dynamic Validation:
Parameter Validation:
Marketplace-Agnostic:
@thearchitech.xyz/marketplacemarketplacePath option for any marketplacenpm install @thearchitech.xyz/validator
import { validateGenome } from '@thearchitech.xyz/validator';
const genome = {
version: '1.0.0',
project: {
name: 'my-app',
framework: 'nextjs'
},
modules: [
{ id: 'framework/nextjs' },
{ id: 'database/drizzle' }
]
};
const result = await validateGenome(genome);
if (result.isValid) {
console.log('✅ Genome is valid! Score:', result.score);
} else {
console.error('❌ Validation errors:');
result.errors.forEach(error => {
console.error(` - ${error.message}`);
if (error.fix) console.error(` Fix: ${error.fix}`);
});
}
import { validateGenome } from '@thearchitech.xyz/validator';
// Validate with custom/third-party marketplace
const result = await validateGenome(genome, {
marketplacePath: '/path/to/custom/marketplace'
});
// Or using GenomeValidator class
import { GenomeValidator } from '@thearchitech.xyz/validator';
const validator = new GenomeValidator(undefined, {
marketplacePath: '/path/to/my-company-marketplace',
enableParameterValidation: true
});
const result = await validator.validate(genome);
{
isValid: true,
errors: [],
warnings: [],
score: 100,
metadata: {
modulesValidated: 3,
rulesApplied: 4,
executionTime: 2
}
}
The validator checks:
validateGenome(genome: Genome): ValidationResultMain validation function.
Returns:
{
isValid: boolean;
errors: ValidationError[];
warnings: ValidationWarning[];
score?: number; // Optional quality score 0-100
}
GenomeValidatorClass-based validator for advanced usage:
import { GenomeValidator } from '@thearchitech.xyz/validator';
const validator = new GenomeValidator();
const result = await validator.validate(genome);
// Add custom validation rules
validator.addRule({
name: 'custom-rule',
description: 'My custom validation',
async validate(genome) {
const errors = [];
const warnings = [];
// Your validation logic here
if (!genome.project.description) {
warnings.push({
type: 'MISSING_RECOMMENDED',
message: 'Project description is recommended',
suggestion: 'Add a description to help users understand your project'
});
}
return { errors, warnings };
}
});
const validGenome = {
version: '1.0.0',
project: {
name: 'hello-world',
framework: 'nextjs'
},
modules: [
{ id: 'framework/nextjs' },
{ id: 'ui/shadcn-ui' }
]
};
// Result: isValid = true, score = 100
const brokenGenome = {
version: '1.0.0',
project: {
name: 'auth-app',
framework: 'nextjs'
},
modules: [
{ id: 'features/auth/frontend/shadcn' }
// ❌ Missing: auth adapter and database
]
};
// Result:
// - Error: "Module requires a auth module"
// - Error: "Module requires a database module"
const conflictGenome = {
version: '1.0.0',
project: {
name: 'multi-db',
framework: 'nextjs'
},
modules: [
{ id: 'database/drizzle' },
{ id: 'database/prisma' }
// ❌ Conflict: Only one ORM allowed
]
};
// Result:
// - Error: "Conflicting modules detected: database/drizzle, database/prisma"
MIT
FAQs
Genome validation library for The Architech ecosystem
The npm package @thearchitech.xyz/validator receives a total of 9 weekly downloads. As such, @thearchitech.xyz/validator popularity was classified as not popular.
We found that @thearchitech.xyz/validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.