
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@sorik-ai/sorik-spec
Advanced tools
TypeScript configuration schema and validation for Sorik a11y automation
TypeScript configuration schema and validation for Sorik a11y automation.
npm install @sorik-ai/sorik-spec@alpha
import { SorikConfig, validateSorikConfig, createSorikConfig } from '@sorik-ai/sorik-spec';
// Define your config
const config: SorikConfig = {
project: {
monitoredBranch: 'main' // Required: branch to monitor for changes
},
build: {
build: 'npm run build', // Required: production build command
start: 'npm start', // Required: dev server start command
port: 3000 // Required: dev server port
}
};
// Validate config
if (validateSorikConfig(config)) {
console.log('Config is valid!');
}
project.monitoredBranch (string)Branch to monitor for accessibility scans. Examples: 'main', 'develop', 'staging'
build.build (string)Command to build project for production. Examples: 'npm run build', 'yarn build', 'pnpm build'
build.start (string)Command to start development server. Examples: 'npm start', 'yarn dev', 'pnpm dev'
build.port (number)Port where development server runs. Examples: 3000, 8080, 5173
project.name (string) - Project identifier for logs and PRsproject.releaseBranch (string) - Target branch for fix PRs (defaults to monitoredBranch)project.remediationBranch (string) - Prefix for fix branch names (defaults to 'sorik/fix')build.test (string) - Test command for validationbuild.healthCheck (string) - Endpoint to verify server readiness (e.g. '/health')build.timeout (number) - Max startup wait time in seconds (defaults to 60)Configure accessibility scanning and automated fixes:
a11y: {
scanning: {
urls?: string[]; // Specific URLs to scan: ['/home', '/about']
includeUrls?: string[]; // URL patterns to include: ['/products/*']
excludeUrls?: string[]; // URL patterns to exclude: ['/admin/*']
rules?: { // Rule severity overrides
'color-contrast': 'critical',
'image-alt': 'serious'
},
compliance?: {
wcagLevel?: 'A' | 'AA' | 'AAA' // WCAG compliance level (defaults to 'AA')
}
},
remediation?: {
maxAttempts?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7, // Fix attempts (0 = disabled)
autoMerge?: boolean // Auto-merge PRs if checks pass (defaults to false)
}
}
'critical' - Blocks accessibility, must be fixed'serious' - Impacts usability significantly'moderate' - Noticeable accessibility issue'minor' - Minor improvement for better experience{
project: { monitoredBranch: 'main' },
build: { build: 'npm run build', start: 'npm start', port: 3000 }
}
{
project: { monitoredBranch: 'main', name: 'my-app' },
build: { build: 'npm run build', start: 'npm start', port: 3000 },
a11y: {
scanning: {
urls: ['/'],
excludeUrls: ['/admin/*']
}
}
}
{
project: {
monitoredBranch: 'main',
releaseBranch: 'develop',
name: 'ecommerce-platform'
},
build: {
build: 'pnpm run build',
test: 'pnpm test',
start: 'pnpm dev',
port: 3000,
healthCheck: '/api/health',
timeout: 120
},
a11y: {
scanning: {
includeUrls: ['/', '/products/*', '/cart', '/checkout/*'],
excludeUrls: ['/admin/*', '/api/*'],
rules: {
'color-contrast': 'critical',
'image-alt': 'critical',
'button-name': 'serious'
},
compliance: { wcagLevel: 'AA' }
},
remediation: {
maxAttempts: 3,
autoMerge: false
}
}
}
{
project: { monitoredBranch: 'main' },
build: { build: 'npm run build', start: 'npm start', port: 3000 },
a11y: {
scanning: {
includeUrls: ['/'],
rules: { 'color-contrast': 'critical' }
}
// No remediation = scan-only mode
}
}
Next.js/React App:
build: 'npm run build', start: 'npm run dev', port: 3000'/api/health' or '/'Vite/Vue App:
build: 'npm run build', start: 'npm run dev', port: 5173E-commerce Platform:
['/products/*', '/cart', '/checkout/*']['/admin/*', '/api/*']color-contrast, image-alt, labelContent/Marketing Site:
['/'] or ['/blog/*', '/about']heading-order, image-alt, page-has-heading-oneSaaS Dashboard:
['/dashboard/*', '/settings/*']['/auth/*', '/api/*']keyboard, focus-order, labelMIT
FAQs
TypeScript configuration schema and validation for Sorik a11y automation
We found that @sorik-ai/sorik-spec demonstrated a not healthy version release cadence and project activity because the last version was released 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.