sage-app-sdk
v0.13.0
Published
SDK for building apps that run inside Sage Wallet
Readme
sage-app-sdk
TypeScript SDK for building apps that run inside Sage Wallet.
Sage Apps are a work in progress. APIs are mostly stable, but minor changes may still occur.
Install
npm install sage-app-sdkUse the Sage client
import { getSageClient } from 'sage-app-sdk';
const client = await getSageClient();The SDK also provides Sage runtime integration, generated bridge types, lifecycle hooks, and theme utilities.
Finalize an app manifest
The package installs the sage-app command. Add a script to your app:
{
"scripts": {
"sage:finalize": "sage-app finalize-manifest --source ./sage-manifest.json --dist ./dist"
}
}Build the app, then run:
npm run sage:finalizeThis writes the finalized sage-manifest.json into the app's distribution directory.
