Add an NPM Package Dependency
SkillDev toolsAdds an npm package dependency to a TypeScript Golem project.
Use Add an NPM Package Dependency in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Add an NPM Package Dependency and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Add an NPM Package Dependency skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Add a new npm package dependency to a TypeScript Golem project. Use when the user asks to add a library, package, or dependency.
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/ts/golem-add-npm-package/SKILL.md and read by Ahel’s review.
Important constraints
- Golem TypeScript runs inside a QuickJS WebAssembly runtime, NOT Node.js.
- The runtime implements a broad set of Browser and Node.js APIs. Most packages targeting browsers or standard Node.js APIs will work.
- Packages that use native Node.js C++ addons will not work (no native compilation in WASM).
node:child_processsupports constrained JavaScript and simple npm script execution inside the runtime. It cannot create host processes or run a general shell.node:cluster,node:http2, andnode:worker_threadsremain unsupported or stubbed.
Supported runtime APIs
- Web Platform APIs:
fetch,Headers,Request,Response,FormData,Blob,File,URL,URLSearchParams,console, timers,AbortController,TextEncoder/TextDecoder, Streams (ReadableStream,WritableStream,TransformStream),structuredClone,crypto.randomUUID/crypto.getRandomValues,Event/EventTarget,MessageChannel/MessagePort,Intl - Node.js modules:
node:buffer,node:crypto(hashes, HMAC, ciphers, key generation, sign/verify, DH, ECDH, X509),node:dgram(UDP),node:dns,node:events,node:fsandnode:fs/promises(comprehensive filesystem),node:http/node:https(client and server),node:net(TCP sockets and servers),node:os,node:path,node:perf_hooks,node:process,node:querystring,node:readline,node:sqlite(embedded, requires feature flag),node:stream,node:test,node:timers,node:url,node:util,node:v8,node:vm,node:zlib(gzip, deflate, brotli)
Check the wasm-rquickjs README for the up-to-date list.
Steps
-
Install the package
From the project root (where
package.jsonis):npm install <package-name>For dev-only dependencies (build tools, type definitions):
npm install --save-dev <package-name> -
Build to verify
golem build --yesDo NOT run
npx rollupornpx tscdirectly — always usegolem build. -
If the build or runtime fails
- Build error: the package may use TypeScript features or module formats incompatible with the Rollup bundling pipeline. Check if the package has an ESM or browser build.
- Runtime error (
X is not defined): the package depends on a Node.js or browser API not available in the QuickJS runtime. Look for an alternative package.
Already available packages
These are already in the project's package.json — do NOT add them again:
@golemcloud/golem-ts-sdk— Golem agent framework (defineAgent/method, Standard Schema markers, durability, transactions, RPC)rollupwith@rollup/plugin-*plugins (dev) — bundling pipelinetypescriptandtslib(dev) — TypeScript compiler and runtime helpers@types/node(dev) — Node type definitions
The agent contract is described with a Standard Schema library. zod is used by the default template; valibot, arktype, and effect schemas are also supported — add whichever one your agents use if it is not already present.
HTTP requests
Use the built-in fetch API — it is available globally.
AI / LLM features
Use any third party AI/LLM library from npmjs.com, but it has to only depend on the supported runtime APIs.
Signals
- GitHub stars
- 2k
- Forks
- 210
- Last commit
- Oct 2026
Ahel review
K1binfo
installs-packages
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
golem-add-npm-package- Source
- github.com/golemcloud/golem
Related picks
Skill · mattpocock
The pick for TypeScripttypescript-pro
Skill · jeffallan
The pick for TypeScriptnodejs-backend-patterns
Skill · wshobson
The pick for Noderun-node-tests
Skill · hiroro-work
The pick for Nodeteach
Skill · mattpocock
More in Dev toolscaveman
Skill · juliusbrussee
More in Dev tools