Skip to content

Ship a Node 24 Encryptoglyph package that does not need wasm-pack - #29

Merged
GoDeskio merged 1 commit into
mainfrom
cursor/js-envelope-package-fa6f
Nov 14, 2026
Merged

GoDeskio merged 1 commit into
mainfrom
cursor/js-envelope-package-fa6f

Conversation

@GoDeskio

@GoDeskio GoDeskio commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

@godesk/encryptoglyph is a plain ECMAScript package for Node.js 24 or newer. Konektor can install it and seal credentials, approval arguments, and tool results without running wasm-pack.

Rebased onto main at dc054d7. The Node package stays the install path. The wasm getrandom fix from #28 stays: wasm enables getrandom/js, and wasm32 also enables getrandom 0.4 wasm_js. fpe and blahaj stay in the crate's main [dependencies] table. bindings/ts still has build:wasm and build:wasm:node for that feature.

  • sdk/js is the package (envelope.js plus the existing /v1 sidecar client).
  • The repository root package.json exposes the same entry, so npm install github:GoDeskio/Encryptoglyph#<ref> works.
  • bindings/ts ships the same envelope.js (the test hashes both copies) and TypeScript types.
  • sdk/js/godesk-encryptoglyph-0.2.0.tgz is the packed tarball. Its envelope.js matches the source.
  • Default writes are version 3. Version 2 and legacy AES-256-GCM version 1 still decrypt, and rewrap writes version 3.

The envelope module needs Node's crypto and is not a browser build. sdk/js/encryptoglyph.js is still the browser sidecar client.

Local tests

After the rebase, Rust 1.100.0, from crates/encryptoglyph:

cargo test --locked

63 tests passed, 0 failed (audit 10, envelope 11, ff1 3, index 5, kek 4, min_decryption_kid 2, offline_tool 3, policy 2, pq 1, primitives 4, secrets 1, shamir 3, shred 3, sign 2, stream 4, tenancy 1, token 2, vectors 2).

cargo build --locked --target wasm32-unknown-unknown --features wasm

Finished. The wasm32 feature build succeeded.

Node v24.11.0:

node --test sdk/js/test/vectors.test.js
# tests 12
# pass 12
# fail 0
node bindings/ts/vector-test.mjs
# js vectors OK

GitHub Actions is budget-blocked. A failure that only says the Actions budget is not a failure of this package.

Install

npm install ./sdk/js
npm install ./sdk/js/godesk-encryptoglyph-0.2.0.tgz
npm install github:GoDeskio/Encryptoglyph#<ref>
Open in Web Open in Cursor 

@godesk/encryptoglyph in sdk/js and bindings/ts decrypts the shared
v1, v2, and v3 vectors with node:crypto. A packed tarball installs the
same envelope.js.

Co-authored-by: Admin <GoDeskio@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/js-envelope-package-fa6f branch from 3098891 to ba7d58e Compare November 14, 2026 21:01
@GoDeskio
GoDeskio merged commit 1a95d4a into main Nov 14, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants