rednode API - v0.1.0
    Preparing search index...

    rednode API - v0.1.0

    rednode

    The REDnode SDK: a Node.js API for scripting Cyberpunk 2077 (PC, single-player).

    Status: overlay phase O6a. game and ui work in the REDnode overlay host, for Node mods and overlay apps alike. Their in-game test is pending. The generic game API (any game function, typed) arrives in O6b. Tier 1 interceptors are still a design, and their functions throw.

    Tier 2: async mods and overlay apps Tier 1: interceptors
    Runs in The REDnode host, outside the game The game process, sandboxed
    Can Observe events, query state, send commands, open windows Change arguments or return values inside a hook
    Cannot Block the game await, do I/O, run long
    Start with game, ui defineInterceptor

    A Node mod that opens a window and follows V:

    import { game, ui } from "rednode";

    const where = ui.text("Waiting for the game...");
    ui.window({ title: "Where is V", children: [where] });

    setInterval(async () => {
    const p = await game.player.position();
    where.set({ text: `${p.x.toFixed(1)}, ${p.y.toFixed(1)}, ${p.z.toFixed(1)}` });
    }, 500);

    game.on("PlayerPuppet.OnGameAttached", () => console.log("A save was loaded"));

    How to write and install mods and apps: the Overlay apps guide. The architecture: the design document.