
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.
Neural Line - Reactive Event Manager
C.Y.R.E ~/SAYER/
Version 4.6.0
The fastest, most reliable reactive state/event management library with industry-leading performance and zero-error. A unique channel-based architecture that runs both in Node and Browser. It's designed for 24/7 operation with advanced protection mechanisms like "Breath system". Task schedule with TimeKeeper etc... and its 60k. bEvolved from the original Quantum-Inception clock project (2016).
CYRE delivers industry-leading performance with zero-error reliability:
npm install cyre
pnpm add cyre
import {cyre} from 'cyre'
// 1. Create channel with default payload
cyre.action({id: 'user-login', payload: {status: 'idle'}})
// 2. Subscribe to the channel by it's id
cyre.on('user-login', payload => {
console.log('User login:', payload)
return {success: true, timestamp: Date.now()}
})
// 3. send to channel
await cyre.call('user-login', {userId: 123, email: 'user@example.com'})
// Create channels with built-in protections
cyre.action({
id: 'api-call',
throttle: 1000, // Rate limiting
debounce: 300, // Call collapsing
detectChanges: true, // Skip unchanged payloads
priority: {level: 'high'}
})
cyre.on('api-call', async payload => {
const result = await fetch('/api/data', {
method: 'POST',
body: JSON.stringify(payload)
})
return await result.json()
})
// Calls are automatically protected
await cyre.call('api-call', {query: 'search terms'})
// Precise timing control
cyre.action({
id: 'health-check',
delay: 1000, // Initial delay
interval: 5000, // Repeat interval
repeat: 10 // Total executions
})
// Timeline: Wait 1s → Execute → Wait 5s → Execute → ... (10 total)
// Automatic chain reactions
cyre.on('validate-data', payload => {
const isValid = validate(payload)
// Return IntraLink to trigger next action
return {
id: isValid ? 'process-data' : 'handle-error',
payload: {...payload, isValid}
}
})
cyre.on('process-data', payload => {
// Processing logic
return {processed: true, result: payload}
})
import {useCyre} from 'cyre'
function UserProfile() {
const userChannel = useCyre({
name: 'user-profile',
protection: {
debounce: 300,
detectChanges: true
},
initialPayload: {userId: null}
})
React.useEffect(() => {
const subscription = userChannel.on(userData => {
console.log('User updated:', userData)
return {handled: true}
})
return () => subscription.unsubscribe()
}, [])
const updateUser = userData => {
userChannel.call(userData)
}
return (
<button onClick={() => updateUser({id: 123, name: 'John'})}>
Update User
</button>
)
}
cyre.action({
id: 'batch-upload',
buffer: {window: 1000, strategy: 'append', maxSize: 10}
})
cyre.on('batch-upload', batch => {
// batch is an array of payloads collected within 1s or up to 10 items
uploadBatchToServer(batch)
})
// Calls within 1s are batched
cyre.call('batch-upload', {file: 'a.txt'})
cyre.call('batch-upload', {file: 'b.txt'})
cyre.action({
id: 'multi-handler',
dispatch: 'race' // Only the fastest handler result is used
})
cyre.on('multi-handler', async payload => {
await delay(100)
return 'slow handler'
})
cyre.on('multi-handler', async payload => {
await delay(10)
return 'fast handler'
})
const result = await cyre.call('multi-handler', {data: 1})
// result.payload === 'fast handler'
// Waterfall example
cyre.action({
id: 'waterfall-demo',
dispatch: 'waterfall'
})
cyre.on('waterfall-demo', payload => payload + 1)
cyre.on('waterfall-demo', payload => payload * 2)
const res = await cyre.call('waterfall-demo', 3) // (3+1)*2 = 8
cyre.action({id: 'user-update', payload: {name: 'Alice'}})
// Get current payload
const current = cyre.payloadState.get('user-update')
// Set new payload
cyre.payloadState.set('user-update', {name: 'Bob'})
// Check if changed
const changed = cyre.payloadState.hasChanged('user-update', {name: 'Bob'})
cyre.action({id: 'step1'})
cyre.action({id: 'step2'})
cyre.on('step1', payload => {
// ...
return {id: 'step2', payload: {...payload, step1: true}}
})
// Orchestrate a workflow
await cyre.call('step1', {start: true})
.on HandlersCyre supports multiple .on handlers per channel, enabling powerful event-driven workflows. Each channel can have many subscribers, and you can control how handlers are dispatched:
// Register multiple handlers for the same channel
cyre.on('user-login', payload => {
// Handler 1
logLogin(payload)
})
cyre.on('user-login', async payload => {
// Handler 2 (async)
await sendAnalytics(payload)
})
// By default, async handlers run in parallel. For sequential execution:
cyre.action({
id: 'user-login',
sequential: true // Ensures handlers run one after another
})
.on handlers reactively receive payloads/signals and interpret them as local environment changes (e.g., updating UI, state, or triggering side effects). Outpost handlers are located inside your app, support a 1-to-many relationship, and are best suited for delivery, UI updates, and actions—not for core business logic.// Factory handler (pure)
cyre.on('data-validate', payload => validateData(payload))
// Outpost handler (side effect)
cyre.on('data-validate', payload => {
reportValidation(payload)
// No return needed
})
The buffer operator allows you to collect and process events in batches, reducing overhead and enabling batch workflows.
import {createStream} from 'cyre'
const stream = createStream()
.buffer(5) // Collects 5 events before emitting as an array
.map(batch => processBatch(batch))
stream.subscribe(batchResult => {
// Handle processed batch
})
// Emit events
stream.next(event1)
stream.next(event2)
// ...
buffer(timeMs) to emit batches based on time windows.cyre.action({
id: 'api-request',
throttle: 1000 // Max 1 request per second
})
// Automatic rate limiting - excess calls rejected gracefully
cyre.action({
id: 'search-input',
debounce: 300 // Collapse rapid calls to single execution
})
// 90% call collapsing efficiency with perfect timing accuracy
cyre.action({
id: 'state-update',
detectChanges: true // Skip execution if payload unchanged
})
// Automatic payload comparison using deep equality
CYRE includes an adaptive "breathing" system that automatically adjusts performance based on system stress:
// Channel-specific metrics
const actionMetrics = cyre.getMetrics()
// Enable debug mode for detailed logging
cyre.action({
id: 'debug-action',
log: true // Enable detailed execution logging
})
// Get system health status
const isHealthy = cyre.isHealthy()
const breathingState = cyre.getBreathingState()
CYRE includes comprehensive test suites following industry standards:
// Channel management
cyre.action(config: IO | IO[]) // Register one or more channels
cyre.on(id: string, handler: Function) // Subscribe handler(s) to a channel
cyre.call(id: string, payload?: any) // Trigger a channel/action
cyre.forget(id: string) // Remove a channel and its handlers
cyre.get(id: string) // Get the current channel payload by id. will include {req,res}
// System & State Control
cyre.init() // Initialize the system
cyre.clear() // Clear all channels, handlers, and state
cyre.reset() // Alias for clear, resets all state
cyre.pause(id?: string) // Pause all or specific channels
cyre.resume(id?: string) // Resume all or specific channels
cyre.lock() // Lock/unlock the system
cyre.shutdown() // Full system shutdown
// Metrics & Monitoring
cyre.getMetrics(channelId?: string) // Get system or channel-specific metrics
cyre.status() // Returns if system is hibernating
// Advanced/Experimental
// cyre.payloadState // Direct access to dual payload state system
// cyre.orchestration // Orchestration engine for complex workflows
// cyre.schedule // Scheduling utility for advanced timing
// cyre.path() // Path system for hierarchical channel addressing (stub)
import {useCyre, useGroup, useBranch, useCollective, log} from 'cyre'
useCyre: React hook for channel integrationuseGroup: React hook for group/channel managementuseBranch: React hook for branch systemuseCollective: React hook for collective channel patternslog: Utility loggerinterface IO {
id: string // Channel identifier (required)
payload?: any // Initial/default payload
path?: string // Hierarchical path for organization
group?: string
tags?: string[]
description?: string
version?: string
// Protections
required?: boolean
throttle?: number
debounce?: number
maxWait?: number
detectChanges?: boolean
block?: boolean
buffer?: { window: number, strategy?: 'overwrite' | 'append' | 'ignore', maxSize?: number }
// Scheduling
interval?: number
repeat?: number | boolean
delay?: number
// Execution
dispatch?: 'single' | 'parallel' | 'sequential' | 'race' | 'waterfall'
errorStrategy?: 'fail-fast' | 'continue' | 'retry'
collectResults?: 'first' | 'last' | 'all' | boolean
dispatchTimeout?: number
// Pipeline
schema?: Schema<any>
condition?: (payload: any) => boolean
selector?: (payload: any) => any
transform?: (payload: any) => any
// Priority
priority?: { level: string, ... }
// Auth
auth?: { mode: 'token' | 'context' | 'group' | 'disabled', ... }
// Logging
log?: boolean
}
.on handlers per channel, with smart operator selection:
dispatch: 'sequential' | 'race' | 'waterfall' | 'parallel'buffer: { window: number, strategy?: 'overwrite' | 'append' | 'ignore', maxSize?: number }// Rate-limited API with automatic retry
cyre.action({
id: 'api-with-retry',
throttle: 100, // 10 requests/sec max
repeat: 3, // Retry up to 3 times
priority: {level: 'high'}
})
// Stream processing with backpressure
const dataStream = createStream()
.throttle(16) // 60fps processing rate
.map(processRealTimeData)
.filter(data => data.isComplete)
.subscribe(updateUI)
// Multi-step workflow with error handling
const workflow = cyreCompose(
[validationChannel, authenticationChannel, processingChannel, auditChannel],
{
continueOnError: false,
timeout: 30000
}
)
We welcome contributions! Please see our Contributing Guide for details.
git clone https://github.com/neeuraline/cyre.git
cd cyre
npm install
npm test
npm run benchmark # Run performance tests
MIT License - see LICENSE file for details.
Cyre follows these core principles:
Originally evolved from the Quantum-Inception clock project (2016), Cyre has grown into a full-featured event management system while maintaining its quantum timing heritage. The latest evolution introduces Schema, hooks, and standardized execution behavior to provide a more predictable and powerful developer experience.
Q0.0U0.0A0.0N0.0T0.0U0.0M0 - I0.0N0.0C0.0E0.0P0.0T0.0I0.0O0.0N0.0S0
Expands HORIZONTALLY as your project grow
CYRE - Neural Line Reactive Event Manager
The fastest, most reliable reactive state management for modern applications.
FAQs
Neural Line - Reactive event manager with zero dependencies
The npm package cyre receives a total of 1 weekly downloads. As such, cyre popularity was classified as not popular.
We found that cyre 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.