Skip to main content

Get the SDK

The JavaScript archive is an installable npm package. It includes MIT source, compiled JavaScript, type definitions, and public examples. The Python wheel includes its Python source. These downloads are hosted by Method; they are not npm or PyPI registry releases.
For API use from code, see JavaScript and Python SDKs.

Where the source lives

The public SDK repo owns the SDK source and releases. Open issues and pull requests there. Its release workflow builds the npm archive, Python wheel, and CLI distributions. Each GitHub release includes a SHA-256 manifest. The private app downloads a fixed release and checks its hashes; it does not keep a second SDK source tree. The SDK imports @withmethod/runtime from a fixed commit of method-spec. That repo owns the format, validator, and executor. It no longer installs a method3 command. The SDK owns the single user CLI, method. Python and method-bridge call the same Node implementation.

Build from GitHub

Use Node.js 22 or later and Python 3.11 or later:
The repo includes build instructions, public examples, and CI checks for Node 22 and 24. Use PYTHON=python3.11 npm test if your default Python is older. Python calls the same Node runtime; it is not a separate executor.

Read a release archive

Download and extract a release into a new folder:
The extracted package/ folder contains:
Read source/README.md for build instructions. package.json records the SDK version and exact public runtime dependency. The latest URL can change; use an exact release filename from the manifest when you need a fixed version.