
50+ Optimized Methods • Persistent Worker Architecture • High-Frequency DOM Automation
The high-performance bridge between JavaScript and AppleScript. Automate system events, applications, and workflows with precision.
Industrial-strength tools for deep macOS integration and workflow automation.
Advanced text-to-speech engine with multi-voice support and automatic safety fallbacks.
Trigger industrial-strength alerts, notifications, and prompts with custom system sounds.
Full automation for Safari and Chrome including navigation, tab management, and state control.
High-performance screen captures with direct filesystem output and automated organization.
Interface with the macOS sound engine to play system alerts or custom audio assets.
Control hardware brightness, volume, power states, and dark mode via a type-safe API.
Simulate precision keyboard and mouse events across any active macOS application.
Programmatic control over application windows, positioning, and fullscreen states.
Experience zero-overhead automation through our persistent background worker. The engine maintains state and executes commands instantly without spawning new processes.
Persistent background processes eliminate the overhead of repeated AppleScript initialization.
Standardized JSON-based communication between Node.js and the native macOS automation engine.
Explicit permission management ensures all system-level operations are user-authorized.
apple-js is built on a high-availability architecture designed for thousands of sequential operations. Our bridge maintains a constant link to the system event bus, providing deterministic timing and low-latency feedback loops.
Universal IPC bridge supporting all Apple Silicon and Intel systems.
Fixed-time command resolution regardless of system load.
Optimized for high-frequency automation with minimal system footprint.
Average command resolution time from JS to system bus.
Steady-state memory usage for active background workers.
System commands executed per minute without process fatigue.
Implement in seconds with familiar JavaScript patterns.
npm install apple-js-stableconst { Osascript } = require("apple-js-stable");
const script = new Osascript();
async function runAutomation() {
// Advanced notification with system sound
await script.executeScript([
script.appleCommands.notifications.alertWithSound(
"Automation Active",
"The system core is online.",
"Glass"
),
script.appleCommands.speak("System initialized successfully."),
]);
// High-performance screen capture
await script.executeSingleCommand(
script.appleCommands.systemControl.screenshotToDesktop()
);
// Browser orchestration
await script.executeSingleCommand(
script.appleCommands.browser.openChrome("https://github.com")
);
}
runAutomation();