Documentation
    Preparing search index...

    Variable TOPICSConst

    TOPICS: {
        CHAT_OPEN_DM: "chat:open-dm";
        KEYBINDS_ALL: "keybinds:all";
        KEYBINDS_CAPTURE_END: "keybinds:capture-end";
        KEYBINDS_CAPTURE_START: "keybinds:capture-start";
        KEYBINDS_GET: "keybinds:get-all";
        KEYBINDS_RESET: "keybinds:reset";
        KEYBINDS_UPDATE: "keybinds:update";
        PROFILE_OPEN: "profile:open";
        STREAM_CHANNEL_SWITCH: "stream:channel-switch";
        STREAM_CURRENT_CONTEXT: "stream:current-context";
        STREAM_CURRENT_CONTEXT_GET: "stream:current-context-get";
        WM_FOCUSED_WINDOW_CHANGED: "wm:focused-window-changed";
    }

    Built-in topic constants for the napplet shell INC-PEER protocol.

    Type Declaration

    • ReadonlyCHAT_OPEN_DM: "chat:open-dm"
    • ReadonlyKEYBINDS_ALL: "keybinds:all"
    • ReadonlyKEYBINDS_CAPTURE_END: "keybinds:capture-end"
    • ReadonlyKEYBINDS_CAPTURE_START: "keybinds:capture-start"
    • ReadonlyKEYBINDS_GET: "keybinds:get-all"
    • ReadonlyKEYBINDS_RESET: "keybinds:reset"
    • ReadonlyKEYBINDS_UPDATE: "keybinds:update"
    • ReadonlyPROFILE_OPEN: "profile:open"
    • ReadonlySTREAM_CHANNEL_SWITCH: "stream:channel-switch"
    • ReadonlySTREAM_CURRENT_CONTEXT: "stream:current-context"
    • ReadonlySTREAM_CURRENT_CONTEXT_GET: "stream:current-context-get"
    • ReadonlyWM_FOCUSED_WINDOW_CHANGED: "wm:focused-window-changed"
    import { TOPICS } from '@napplet/core';

    // Open a profile view via INC-PEER
    shim.publish({ kind: 29003, tags: [['t', TOPICS.PROFILE_OPEN]], content: '{}' });

    Topic strings follow a prefix convention that signals message direction:

    Prefix Direction Meaning
    shell:* napplet → shell Commands sent by a napplet to the shell
    napplet:* shell → napplet Responses/notifications sent by shell to napplet
    {service}:* bidirectional Service-scoped messages; direction is per-topic

    Examples of {service}:* prefixes: auth:*, stream:*, profile:*, wm:*, keybinds:*, chat:*, audio:*.