This Express server acts as a bridge between the Lit Protocol JS SDK and the Go/Python SDKs. It runs locally and provides an HTTP interface that allows the Go and Python SDKs to interact with the Lit Protocol JS SDK functionality.
The js-sdk-server is a crucial component that enables non-JavaScript languages to utilize the Lit Protocol JS SDK. It runs as a local HTTP server that the Go and Python SDKs communicate with to perform Lit Protocol operations.
- Node.js (v14 or higher recommended)
- npm
npm install
For development:
npm run dev
This will start the server in watch mode, automatically rebuilding when changes are detected. The bundled server will be automatically updated in both the Python and Go SDK directories.
For production:
npm start
To build the bundled server for both Python and Go SDKs:
npm run build
To run the test suite:
npm test
The server exposes HTTP endpoints that the Go and Python SDKs use to communicate with the Lit Protocol JS SDK. This architecture allows these languages to leverage the full capabilities of the JS SDK while maintaining their native language interfaces.