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

@eidos.space/graft

Latest version: v0.3.41

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: agodrich
3 Stars
1 Forks
33 Versions
2.6K Downloads
Rust Repo language

Scan summary

@eidos.space/graft was last scanned on 28 Nov 2026 at version 0.3.41. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 0.3.41.
  • Downloads: 2,566 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.41 LATEST 28 Nov 2026 No rules fired
0.3.40 13 Nov 2026 No rules fired
0.3.39 3 Nov 2026 No rules fired
0.3.38 3 Nov 2026 Not shown
0.3.37 2 Nov 2026 Not shown

No rules fired in 0.3.41

Findings

Findings for v0.3.41. 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.3.41; other versions have their own rules, not their own score.

README

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

Graft SDK for Node.js

@eidos.space/graft embeds Graft as a long-lived, in-process repository SDK for Node.js. It is the native application integration surface used by applications such as Eidos Lite. The Rust session and Node-API crates remain repository-internal implementation crates and are not published to crates.io.

The useful analogy is:

Git ecosystem Graft SDK
libgit2: an in-process repository handle graft-sdk: the Rust repository session core
NodeGit: a native JavaScript repository class @eidos.space/graft: an ABI-stable Node-API class

This is a design analogy only. Graft does not depend on libgit2 or NodeGit, does not implement the Git protocol, and does not copy a repository protocol. The session delegates every operation to Graft's existing RepositoryCommandService, repository implementation, and official HTTP remote. There is no daemon, JSON-stdin transport, or Graft CLI subprocess in the SDK call path.

Architecture

Node.js application
  └─ JavaScript RepositorySession
       └─ Node-API 8 native class (one Arc-owned handle)
            └─ Rust RepositorySession (one mutex per repository session)
                 └─ retained RepositoryCommandService
                      ├─ Graft Repository / RepoRuntimeRegistry
                      └─ official FS, S3, or HTTP Remote

Each native method returns a promise and runs its blocking Rust work on a libuv worker thread. Calls on one RepositorySession serialize for the full operation. Sessions for different repositories have independent locks and can run concurrently.

Install

pnpm add @eidos.space/graft

The root package selects one optional native package for the current host. The release workflow publishes and tests Node-API 8 binaries for macOS arm64/x64, Linux glibc arm64/x64, and Windows x64. Linux musl and other platform/CPU combinations fail explicitly instead of compiling during install or downloading an unverified binary.

Build and test from source

Prerequisites are the repository Rust toolchain, Node.js 20 or newer, and pnpm. The release matrix runs the session contract on Node.js 20 and 24; the two application-database integration cases require Node.js 22 or newer for its built-in node:sqlite.

pnpm --dir packages/graft-sdk build:native
pnpm --dir packages/graft-sdk test

The build produces:

packages/graft-sdk/native/graft-sdk.darwin-arm64.node

The local binary is intentionally ignored by Git. It is a Mach-O arm64 dynamic library that exports Node-API 8, so it is insulated from Node's V8 ABI and NODE_MODULE_VERSION. It is still platform/architecture-specific. GRAFT_SDK_NATIVE_PATH may point tests or packaging harnesses at an explicit addon path.

Published packages use the standard native optional-dependency model: the root package contains the JavaScript wrapper, declarations, README, and changelog; each platform package contains exactly one .node binary plus os, cpu, and (on Linux) libc constraints. Consumers do not need a Rust toolchain or system SQLite library, and the package has no install script.

Use

Disconnect a cloud connection with await session.removeRemote("origin"). Local files, unsaved changes and local Graft history remain intact; other named remotes are preserved. The operation is idempotent and does not delete cloud data. Hosts using an EncryptedRemoteSession must revoke and drain that authority first.

const { RepositorySession } = require("@eidos.space/graft")

const session = await RepositorySession.open(spaceRoot, {
  identity: {
    name: "Mayne",
    email: "me@example.com",
  },
})
try {
  const status = await session.statusIncremental()
  const diff = await session.diffPaths({
    paths: status.status.paths.map(({ path }) => path),
    rows: true,
    // Optional: scan just the table the user opened.
    table: "customers",
    limit: 100,
  })

  // For a persistent repository identity, use the config API.
  await session.configSet("user.name", "Mayne")
  await session.configSet("user.email", "me@example.com")
  const configuredEmail = await session.configGet("user.email")

  // For large SQLite changes, first load table counts with no row payloads.
  const summary = await session.diffSqlitePaths({
    paths: ["space.eidos"],
    mode: "summary",
    limit: 1,
  })
  const firstRows = await session.diffSqlitePaths({
    paths: ["space.eidos"],
    mode: "rows",
    table: "customers",
    rowLimit: 100,
    limit: 1,
  })
  const nextRows = firstRows.paths[0].diff.files[0].next_cursor
    ? await session.diffSqlitePaths({
        paths: ["space.eidos"],
        mode: "rows",
        table: "customers",
        rowLimit: 100,
        rowAfter: firstRows.paths[0].diff.files[0].next_cursor,
        limit: 1,
      })
    : undefined
} finally {
  await session.close()
}

Eidos Lite keeps one session per open Space in its resident Node.js process rather than constructing a session per command:

const sessions = new Map()

async function openSpace(spaceId, root) {
  const session = await RepositorySession.open(root)
  sessions.set(spaceId, session)
  return session
}

async function closeSpace(spaceId) {
  const session = sessions.get(spaceId)
  sessions.delete(spaceId)
  await session?.close()
}

A trusted Node.js process should load this package directly. User-interface processes should receive typed, serializable results rather than native objects, credentials, or unrestricted paths. The host must not launch graft, run a long-lived CLI daemon, or proxy commands over JSON stdin.

API and worktree materialization

“Materializes worktree” means that an operation can replace, create, or remove physical tracked files in the Space. Changes confined to .graft are not counted.

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 @eidos.space/graft

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (2)
Research

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229