
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Core utilities and configuration management for the 8LYS Stack.
The @8lys/core package provides essential infrastructure for the 8LYS Stack, including:
The configuration system follows a WordPress Child Theme pattern with the following precedence:
@8lys/* packages): Platform infrastructureplugins/ directory): Business-specific functionalityThe plugin system now uses build-time code generation to produce a static registry that is imported by applications. This eliminates runtime directory scanning and enables optimal tree-shaking.
generated/manifests.ts and generated/registry.ts.@8lys/core/plugin-system to work with the generated registry:import { pluginRegistry } from '@generated/registry'
import { listManifests, getManifestById, assertDependenciesSatisfied } from '@8lys/core/plugin-system'
const manifests = listManifests(pluginRegistry)
const auth = getManifestById(pluginRegistry, 'auth')
const deps = assertDependenciesSatisfied(pluginRegistry)
Notes:
import { createConfigLoader, loadConfig } from '@8lys/core/config-loader';
// Basic configuration loading
const config = await loadConfig('/config/app.json');
// With validation
const validatedConfig = await loadConfig('/config/app.json', {
validate: true,
strict: true
});
import { createEnvironmentHandler } from '@8lys/core/config-loader';
const handler = createEnvironmentHandler({
environments: ['development', 'staging', 'production'],
strictValidation: true
});
// Load with automatic environment detection
const result = await handler.loadWithEnvironment('/config/app');
// Load for specific environment
const prodConfig = await handler.loadWithEnvironment('/config/app', 'production');
import { validateConfigPipeline, registerValidationRule } from '@8lys/core/config-loader';
// Register custom validation rules
registerValidationRule('api-endpoint', (config) => {
if (config.api?.url && !config.api.url.startsWith('https://')) {
return {
success: false,
errors: [{ message: 'Production API must use HTTPS' }]
};
}
return { success: true };
});
// Validate configuration
const reports = await validateConfigPipeline(config, 'json', {
environment: 'production',
stage: 'post-merge'
});
import { resolveEnvironmentVariable } from '@8lys/core/config-loader';
const config = {
api: { url: '${API_URL}', key: '${API_KEY:default-key}' },
debug: '\\${NOT_A_VAR}' // Escaped literal
};
const resolved = resolveEnvironmentVariable(config, {
allowedVariables: ['API_URL', 'API_KEY'],
validatePatterns: true
});
{
"api": {
"url": "http://localhost:3000",
"timeout": 5000
},
"features": {
"analytics": false,
"beta": false
}
}
{
"api": {
"url": "https://api.production.com"
},
"features": {
"analytics": true
}
}
The system automatically detects the current environment from:
Supported environments:
development - Local developmenttest - Testing environmentstaging - Pre-production testingproduction - Production environmentThe validation system provides multi-stage validation:
// packages/@8lys/auth/src/index.ts
export interface AuthExtensions {
readonly customLoginFields?: CustomField[];
readonly authMiddleware?: AuthMiddleware[];
}
export * from './components/LoginForm';
export * from './hooks/useAuth';
export * from './api/authRouter';
// plugins/inventory-management/manifest.json
{
"id": "inventory-management",
"name": "Inventory Management",
"version": "1.0.0",
"extends": ["dashboard", "api", "auth"],
"dependencies": {
"@8lys/dashboard": "^1.0.0",
"@8lys/api": "^1.0.0"
}
}
The package includes comprehensive test suites following TDD principles:
# Run all tests
pnpm test
# Run specific test suites
pnpm test -- --testNamePattern="Environment Handler"
# Run with coverage
pnpm test -- --coverage
# Install dependencies
pnpm install
# Build the package
pnpm build
# Run tests
pnpm test
# Run linting
pnpm lint
any types, strict mode enabledPrivate - 8LYS Stack internal use only.
FAQs
Core utilities and types for 8LYS Stack
The npm package @8lys/core receives a total of 3 weekly downloads. As such, @8lys/core popularity was classified as not popular.
We found that @8lys/core 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.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.