NX
Active Schedulers
6 Active
Next Trigger In
04m 18s
Macro Library
12 Recipes
Today's Runs
142 Runs
Edge Sync (D1)
100% Free Tier
NEXUS OPERATING SYSTEM • MACRO ARCHITECTURE GUIDE

The Complete Nexus Macros & Timely Automations Manual

Welcome to the official developer and operator guide. Learn how to craft multi-step cross-device pipelines, configure precision cron expressions, tap into dynamic runtime variables, and orchestrate automated AI workflows.

Read GitHub Pages Hosted Site • Document Revision: 4.2.0-Prod
1. Core Architecture

How Nexus Macros Work

A Macro is an ordered chain of execution steps. When triggered (by a cron timer, hotkey, webhook, or system event), it evaluates conditions, interpolates dynamic tokens, and dispatches instructions across Cloudflare Edge, Win32 Desktop, or Android Termux.

• Deterministic: strict sequential dependency
• Zero-Card: powered by Cloudflare D1 & KV
• Resilient: auto-retry and failover paths
2. Timely Automations

Precision Scheduling Engine

Automate tasks on continuous schedules. Use 5-field standard cron expressions (min hr dom mon dow), interval loop timers, or one-shot countdown triggers. Built-in drift compensation guarantees time accuracy across device sleep and wake cycles.

• CRON: 30 8 * * * (Daily 8:30 AM)
• INTERVAL: Every 15 min / 1 hour
• ONE-SHOT: Run once in 30 minutes
3. Dynamic Variables

Runtime Context Tokens

Enrich steps with dynamic real-time data using curly tokens: {date}, {timestamp}, {battery_pct}, {clipboard}, {device_name}, and chain outputs via {step_1_output}.

• {timestamp}: ISO 8601 current time
• {battery_pct}: Current battery 0-100%
• {step_N_output}: Preceding step stdout

Live In-App Cron Calculator & Visualizer

Test and translate any 5-part cron schedule into plain English with live next execution timestamps.

INTERACTIVE TOOL
Plain English Translation:
At 08:30 AM every day
Calculated Next 5 Trigger Timestamps:

Step-by-Step Tutorial: Creating an Autonomous Fleet Monitor in 3 Minutes

1
Define the Schedule Trigger:

Choose an interval of 15 minutes (every 15 min) or cron (*/15 * * * *). This will run continuously in the background.

2
Add Query Step (Cloudflare D1):

Configure step 1 as a D1_QUERY targeting CLOUD to fetch offline devices or queue telemetry with zero egress cost.

3
Add AI Synthesizer Step (Gemini 3.8):

Configure step 2 as an AI_REASON step passing {step_1_output} to generate a human-readable 1-sentence health verdict.

4
Add Desktop Audio & Notification Alert:

Configure step 3 as a NOTIFY step targeting DESKTOP to trigger a pleasant chime and Windows notification card.