MCPcopy Index your code
hub / github.com/JXA-userland/JXA

github.com/JXA-userland/JXA @v1.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.0 ↗ · + Follow
3,978 symbols 4,315 edges 155 files 3,075 documented · 77%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JXA Actions Status: test

JavaScript for Automation(JXA) packages.

auto complete example

Features

Packages

Example

If you want to improve your editor for JXA, use @jxa/global-type. You can just import @jxa/global-type and you can introduce typing and auto complete for JXA.

:memo: Your editor should support TypeScript. For more details, see TypeScript Editor Support

// Your .ts file require @jxa/global-type
import "@jxa/global-type";

// your JXA application
const userName = Application("System Events").currentUser().name();

If you want to run JXA from Node.js, use @jxa/run.

import "@jxa/global-type";
import { run } from "@jxa/run";
export const currentUserName = () => {
    // This callback function is run as JXA
    return run(() => {
        const sys = Application("System Events");
        return sys.currentUser().name();
    });
};

// Main code is Node.js
export const example = async () => {
    const userName = await currentUserName();
    return `User: ${userName}`;
};

For more details, see example/.

Contributing

Issue and PR is always welcome!

For more details, see CONTRIBUTING guide.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 3,092
Interface 859
Function 25
Class 2

Languages

TypeScript100%

Modules by API surface

packages/@jxa/types/src/core/SystemEvents.d.ts519 symbols
packages/@jxa/sdef-to-dts/test/fixtures/System Events/output.ts519 symbols
packages/@jxa/types/src/core/ITunes.d.ts257 symbols
packages/@jxa/types/src/core/Mail.d.ts245 symbols
packages/@jxa/types/src/core/Finder.d.ts236 symbols
packages/@jxa/types/src/core/ImageEvents.d.ts197 symbols
packages/@jxa/types/src/core/Keynote.d.ts175 symbols
packages/@jxa/types/src/core/StandardAdditions.d.ts168 symbols
packages/@jxa/sdef-to-dts/test/fixtures/StandardAdditions/output.ts168 symbols
packages/@jxa/types/src/core/Messages.d.ts149 symbols
packages/@jxa/types/src/core/Pages.d.ts133 symbols
packages/@jxa/types/src/core/Numbers.d.ts129 symbols

For agents

$ claude mcp add JXA \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page