Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@appsoftwareltd/etherpk-extension-api

Latest version: v0.51.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: gbro3n
11 Stars
0 Forks
52 Versions
7.1K Downloads
TypeScript Repo language

Scan summary

@appsoftwareltd/etherpk-extension-api was last scanned on 25 Nov 2026 at version 0.51.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 52 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 0.51.0.
  • Downloads: 7,128 downloads.

Versions

52 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.51.0 LATEST 25 Nov 2026 No rules fired
0.50.0 25 Nov 2026 No rules fired
0.49.0 24 Nov 2026 No rules fired
0.48.0 24 Nov 2026 Not shown
0.47.0 24 Nov 2026 Not shown

No rules fired in 0.51.0

Findings

Findings for v0.51.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.51.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

EtherPK Extension API

This package holds the types an EtherPK extension is written against, and readExtensionPackage, which checks an extension's manifest the way the EtherPK Client does. It holds no code that the Client runs. MIT licensed.

npm install --save-dev @appsoftwareltd/etherpk-extension-api

It is a development dependency, because the Client supplies everything at run time.

What an extension is

An extension is an npm package. Its package.json has an etherpk manifest, which says what the extension is and what it adds, and its main module exports activate(context). The Client calls activate each time a graph opens, with a context for that graph. When the graph closes, the Client removes everything the extension registered through the context, and calls the function activate returned, if it returned one, for anything else the extension holds.

{
    "name": "etherpk-extension-hello",
    "version": "1.0.0",
    "type": "module",
    "files": ["dist"],
    "etherpk": {
        "id": "hello",
        "displayName": "Hello",
        "publisher": "you",
        "minClientVersion": "0.10.0",
        "main": "./dist/main.js"
    }
}
import type { ExtensionContext } from '@appsoftwareltd/etherpk-extension-api'

export function activate(context: ExtensionContext): void {
    context.commands.register('hello.greet', () => context.notify('Hello from an extension.'))
    context.commandMenu.register({ id: 'hello.greet', title: 'Say hello', command: 'hello.greet' })
}

Stable and Proposed parts

Each declaration in this package, and each member of one, is either Stable or Proposed. Its documentation says which, with @public for Stable and @beta for Proposed.

  • A Stable part never breaks. A change can add to it. Anything a change replaces is marked deprecated and kept working.
  • A Proposed part may change in any release. Only the extensions that come with EtherPK may use it. In an extension installed from the Extension Directory, a call to a Proposed member throws an error that names it.

Since 0.14.0 every part is Stable but contributions and an inline panel's lineText (see Proposed parts below). An extension listed in the Extension Directory uses only the Stable part. etc/etherpk-extension-api.public.api.md lists the Stable part, and etc/etherpk-extension-api.beta.api.md lists everything. A Proposed part becomes Stable when an extension from another publisher needs it. To ask for one, open an issue on the EtherPK Client repository.

The manifest

Field What it is
id The extension's id: lowercase letters, digits and hyphens, starting with a letter. The ids of everything it registers start with it. An extension in the Extension Directory can't use map, math, mermaid or etherpk-cipher, the words of blocks the Client draws itself.
displayName The name Settings shows, and the name a dialog it opens gives.
publisher Who publishes the extension.
minClientVersion The oldest Client version the extension runs on, as x.y.z. An extension in the Extension Directory must give one.
main The main module, an ES module.
styles The extension's stylesheets (see Styles below).
isolation "shadow", the default, or "page" (see Styles below).
icons Icons by name, each the SVG elements of a 16 by 16 picture. A Command Menu row or a View refers to an icon by its name.
views The View kinds the extension supplies (see Views below).
settings What the person can set (see Settings below).

readExtensionPackage(packageJson) checks a manifest as the Client does, and lists every problem it finds.

What an extension can do

These are the Stable parts of the context.

Commands and the / menu

context.commands.register(id, handler) adds a Command, whose id starts with the extension's id (hello.greet). context.commandMenu.register(item) adds a row to the / menu that runs a Command. A row can have a detail line, an icon, keywords that find it, a group and an order. The menu lists its rows under three headings, in this order: Insert, Go to and Settings. A row's group names the one it belongs under, and its order places it among the other rows there, lower first. A row with no group, or with any other text in it, is listed under Insert when it sets actsOnText and under Go to otherwise. Its when(menu) says whether it is offered at the caret, from what menu reports: bodyWritable, inTable and protectedDocument. A row that only acts on the text at the caret, inserting or formatting it, sets actsOnText: true; only such rows are offered in an editor that shows part of a document, such as a Kanban task's description in its dialog.

context.commands.execute(id, arg) runs a Command, and context.commands.has(id) says whether there is one. An extension may run three kinds of Command, by execute or as the Command of a row or a button it adds:

  • Its own.
  • Another running extension's, by its id (kanban.open).
  • One of the Client's that CLIENT_COMMANDS names. Each keeps its id and argument in every release.

The Client's other Commands may change, so execute rejects for them, and a row or button naming one is refused. CLIENT_COMMANDS holds agents.settings (open Settings at the Agents tab), and more are added as extensions need them.

Notices

context.notify(text) shows a short notice, as the Client's own notices do. A notice can carry one button, for what a person may want to do about what it says:

context.notify('Deleted "Build the shed".', { action: { label: 'Undo', run: () => putItBack() } })

The button is greyed while a promise run returns is pending. The notice is replaced by the next one, so say what the action did with a notice of its own, which also takes the button away.

Settings

A value the person sets, such as a key for a service, is declared in the manifest. The Client draws it under the extension's entry in Settings, in the Extensions area.

"settings": [
    {
        "id": "api-key",
        "type": "secret",
        "title": "Weather service key",
        "description": "Forecasts come from your own account with the weather service.",
        "placeholder": "wk_…",
        "link": { "title": "Getting a key", "url": "https://weather.example.com/keys" }
    }
]

type is text, secret or boolean. A secret stays hidden until the person shows it. A boolean is a switch, and "default": true starts it on. The person can change settings while the extension is switched off.

The extension reads a setting with context.settings.get('api-key'), which is undefined until the person sets it, and hears every change with context.settings.subscribe. A switch always reads 'true' or 'false'. Settings belong to the person, not to a graph. Once their account syncs a graph, the settings follow them to their other devices, encrypted so that only those devices can read them.

context.settings.set('api-key', value) sets one of the manifest's settings, as the person would in Settings, or clears it with null. It is for a screen of the extension's own where the person types the value, such as a setup guide. It throws for a setting the manifest does not declare, and a switch takes only 'true' or 'false'.

Storage

context.storage keeps the extension's own values on the device, as JSON, with get, set and remove. It is for what the extension works out or caches, not for what the person sets.

Records kept with the person

context.personStorage keeps the extension's own records with the person rather than on one device, such as what signing in to another service gave it. It has get, set, remove and subscribe, and keeps each record as JSON, at most 64 KB of it, under a key of letters, digits, ., _ and -. Where the person's account syncs a graph, the records follow them to their other devices in the account's vault, encrypted so that only those devices can read them, and the later change to a record wins. The person never sees them, and uninstalling the extension clears them on every device.

A record is no more private than a setting. Any code in EtherPK's page can read it on the device, and so can an agent the person gave an agent token for their account, so say in the extension what it keeps.

Signing in to another service

context.auth runs an OAuth 2.0 sign-in in a popup. The service sends the popup back to the Client's one return page, context.auth.redirectUri (the Client's address followed by /extension-sign-in), which the person registers with the service once, for every extension.

const answer = await context.auth.authorize(`https://accounts.example.com/authorize?client_id=…&redirect_uri=${encodeURIComponent(context.auth.redirectUri)}&state=${state}&…`, { signal })
if (answer.error) throw new Error(answer.error)
// answer.code: exchange it at the service's token endpoint.
  • The address must carry a state: only a return with the same state answers the call.
  • Call authorize inside the click that asked for it, with nothing awaited before it, because a browser blocks a popup opened later. Work that takes time, such as a PKCE challenge, is done before the click.
  • authorize resolves with the parameters the service sent back, error among them when the person refused. It rejects when the browser blocks the popup, when signal aborts, or after ten minutes. It does not reject when the person closes the popup, which the Client cannot always tell, so offer a Cancel that aborts signal.
  • The extension builds the request and exchanges the code itself: the Client knows no service.
Journal Panels

A Journal Panel draws beneath a journal entry's text, above its backlinks, about that day, such as the day's events from a calendar. It is outside the document, so nothing in it is synced with the graph, searched or published.

context.journalPanels.register({
    id: 'weather.day',
    mount(element, { day, visibility }) {
        // `day` is YYYY-MM-DD. Load once `visibility.onScreen` is true.
        element.textContent = `Forecast for ${day}`
        return { destroy: () => element.replaceChildren() }
    },
})

The Client mounts a panel for each journal tab's own entry, a day with nothing written included, and never for the older days shown beneath it. A panel is as tall as what it draws, so one that draws nothing takes no space, and it draws its own heading and spacing. It mounts in a shadow root with the extension's stylesheets, as a View does.

Explorer buttons

A button in the Explorer, below Search and today's date, runs a Command: context.graphSidebar.register({ id, title, description, icon, order, when, command }). These rules keep the buttons readable together:

  • title is short. Two buttons sit side by side in the sidebar at its default width of 304 pixels, and "Graph Kanban", with its icon, is about the widest that fits.
  • description says what the button does, such as "Open a map of every place and route in this graph". The Client shows it as the button's help text. Don't write a keyboard shortcut in it: the Client adds the key chords bound to the button's Command itself.
  • icon is clear on its own. On a phone the buttons show their icons only, and the Activity Bar shows every button as a shortcut, its icon with title as the tooltip.
  • when hides the button where it does not apply. A button for the desktop alone passes when: () => context.layout.isDesktop(). A when that throws hides the button too.
  • order places the button among those of other installed extensions. The buttons of the extensions that come with EtherPK (Graph Kanban, Graph Map) are always first.
Opening documents, the theme and Events
  • context.layout.openDocument(concept) opens a document as following a wikilink does. A day's name, YYYY-MM-DD, opens its journal entry.
  • context.layout.activeDocument() names the document the person is working in, as its tab names it, or null.
  • context.layout.openWindow({ title, mount }) draws something over the whole window, with a heading and a close button the Client draws. One is open at a time: opening another closes it, even another extension's.
  • context.layout.reveal(kind) brings one of the extension's own Sidebar Views to the front (see Views below). It does nothing for any other kind.
  • context.theme.isDark() says whether the dark theme shows, and the theme:changed Event reports a switch. EtherPK's --gk-* colour tokens reach into a shadow root and change with the theme by themselves.
  • context.events.on(name, listener) hears the Client's Events: document:active-changed, concept:renamed, document:deleted, documents:changed and theme:changed.
Fence widgets

A fence widget draws over a fenced block in a document, in place of its text. The extension registers one for an info word, which is either its id or <id>.<name>:

  • Its id (```hello) makes an ordinary fence. Without the extension it shows as a code block, so the document reads well anywhere.
  • <id>.<name> (```hello.board) makes an Extension Fence, which holds the extension's data. EtherPK never searches its lines and never publishes them as code. The caret passes over it, and where the extension is not running, a note says so.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @appsoftwareltd/etherpk-extension-api

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229