
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
flowlock-checks-core
Advanced tools
Core validation checks for FlowLock UX specifications.
This package provides the validation engine for FlowLock, implementing 15 comprehensive checks to ensure UX specifications are complete, consistent, and implementable.
The checks are organized into three graduated validation levels:
Essential checks for UX consistency:
Comprehensive validation for production readiness:
Full system validation with runtime verification:
npm install flowlock-checks-core
import { runChecks } from 'flowlock-checks-core';
import spec from './uxspec.json';
// Run all checks
const results = await runChecks(spec);
// Run specific checks
const results = await runChecks(spec, {
only: ['HONEST', 'CREATABLE', 'REACHABILITY']
});
// Skip certain checks
const results = await runChecks(spec, {
skip: ['INVENTORY', 'DATABASE_VALIDATION']
});
// Run with graduated validation
const results = await runChecks(spec, {
level: 'enhanced' // 'basic', 'enhanced', or 'strict'
});
import { checks } from 'flowlock-checks-core';
// Run a single check
const honestResults = await checks.honest(spec);
const creatableResults = await checks.creatable(spec);
// Check with options
const inventoryResults = await checks.inventory(spec, {
inventoryPath: './artifacts/runtime_inventory.json'
});
Validates that all UI reads have valid data sources:
Ensures every entity can be created:
Verifies navigation completeness:
Validates UI components:
Ensures robust UI states:
Validates Jobs To Be Done:
Validates entity relationships:
Ensures routing consistency:
Cross-validates against runtime:
Many checks support auto-fixing common issues:
import { runChecks } from 'flowlock-checks-core';
const results = await runChecks(spec, {
fix: true
});
// Fixed spec is available in results
const fixedSpec = results.fixedSpec;
Auto-fixable issues include:
{
passed: boolean,
checkCount: number,
passCount: number,
issues: [
{
code: 'MISSING_FIELD',
severity: 'error',
message: 'Entity User is missing required field email',
path: 'entities[0].fields',
fix: { /* auto-fix details if available */ }
}
],
fixedSpec: { /* updated spec if fix: true */ }
}
See the main repository for contribution guidelines.
MIT
FAQs
Core checks library for FlowLock
We found that flowlock-checks-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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.