lanes-engine
v2.1.0
Published
π§ Lanes Engine: Terminal-native, 15-lane parallel distributed mail execution engine (v2.0 β scheduler, rate-limiter, config, reports)
Readme
π§ LANES-ENGINE β Terminal-Native Distributed Execution Engine (v1.2.0)
lanes-engine is a CLI-based, high-throughput, 15-lane parallel mail delivery engine. It splits massive recipient queues into 15 independent workers, executing jobs in concurrent batches of 20 with dynamic load balancing, checkpoint-based pauses, live CLI dashboard metrics, and non-interactive failure retry via resend --failed-only.
π¨ Visual Console Aesthetic
β¦ Β· β§ Β· β¦ Β· β§ Β· β¦
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β βββ ββββββ ββββ βββββββββββββββββββ β
β βββ βββββββββββββ βββββββββββββββββββ β
β βββ ββββββββββββββ βββββββββ ββββββββ β
β βββ ββββββββββββββββββββββββ ββββββββ β
β βββββββββββ ββββββ ββββββββββββββββββββββ β
β βββββββββββ ββββββ βββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
"We route the mail through chaos"
β§ Β· β¦ Β· β§ Β· β¦ Β· β§- 24-bit gradient banner (cyan β magenta, line-by-line)
- Typewriter banner animation on cold start
- Braille spinner during session load + connection pre-warm
- Hooded wizard ASCII mascot drawn at start of every command
- Per-lane live status glyphs (β sending, β done, β idle)
- Confetti burst when the campaign finishes
π Core Features
- 15 Parallel Sending Lanes: Distributes lists equally using a deterministic round-robin queue.
- File-Driven Input: Zero database requirements. Just drop
email.txtandsenders.csv. - Live Dashboard Metrics: Gradient progress bar, per-lane glyphs, processing speed, failure count.
- Auto-Retry (
resend --failed-only): After any run, the engine writeslanes-session.json(template + recipients). Re-run failed emails non-interactively with one command. - Fast Cold Start: Backend connection pre-warmed in parallel with file parsing; heavy CSS inliner is lazy-loaded only when HTML mode is enabled.
- No Web Bloat: Strictly a CLI engine built for speed and integration into external services.
π Input Format Requirements
1. email.txt
Place this in your working directory. Use Subject: as the first line header. Supports template rendering via {{placeholder}}:
Subject: Welcome {{name}} to Scholarly!
Hello {{name}},
Your journey through the lanes begins now.
β MQ Team2. senders.csv
Contains the recipient email list and fields for templating:
email,name
[email protected],Alex
[email protected],Sara
[email protected],JohnβοΈ CLI Installation & Commands
Install globally via npm:
npm install -g lanes-engine1. Initialize Templates
Create initial email.txt and senders.csv mock templates in your current directory:
lanes-engine init2. Run Campaign Processing
Parse the local templates and start the 15 parallel workers:
lanes-engine send3. Check Latest Summary
Read the final log report from the latest run:
lanes-engine status4. Open Detailed Performance Breakdown
Displays per-lane success/error counts and detailed failure stream error messages:
lanes-engine report5. Auto-Resend Failed Emails (Non-Interactive)
Re-runs only the recipients that failed in the most recent session, using the saved lanes-session.json. No prompts, no interactive recycle loop:
lanes-engine resend --failed-onlyYou can chain --no-banner to skip the startup animation in CI/scripted environments:
lanes-engine resend --failed-only --no-bannerπ§ Code Architecture
The project structure is organized cleanly for packaging and extensibility:
lanes-engine/
βββ bin/
β βββ cli.js # CLI routing and command arguments
βββ core/
β βββ engine.js # Main core workflow orchestrator
β βββ lanes.js # Gmail/API parallel lane workers (batch size 20) + prewarm
β βββ queue.js # Round-robin job partitioning builder
β βββ parser.js # CSV & placeholder template parses
β βββ reporter.js # Save campaign logs + session state
β βββ resend.js # Non-interactive resend of failed recipients
β βββ retry.js # Console failure prompt & queue recycling
βββ ui/
β βββ cli-progress.js # Live dashboard with gradient progress bar
β βββ cli-theme.js # Colors, gradient banner, mascot, animationsπ License
MIT Β© Lanes Wizard
