Installation
Install the SeeStack SDK in your project.
Prerequisites
- Node.js 18 or later (for server-side usage)
- Any modern browser (for client-side usage)
- Python 3.8 or later
- pip or poetry package manager
- Go 1.21 or later
- Go modules enabled
Install the SDK
npm install @seestack/sdkyarn add @seestack/sdkpnpm add @seestack/sdkbun add @seestack/sdkpip install seestack-sdkgo get github.com/seestack/seestack-goCDN (Browser Only)
For browser-only usage without a build step, you can load the SDK via a script tag:
<script src="https://cdn.seestack.io/sdk/latest/seestack.min.js"></script>This exposes a global SeeStack object you can use directly.
Verify Installation
import SeeStack from '@seestack/sdk';
SeeStack.init({
apiKey: 'seestack_live_your_key_here',
host: 'https://your-seestack-instance.com',
debug: true,
});
SeeStack.captureLog('info', 'SeeStack SDK installed successfully');import seestack
seestack.init(
api_key="seestack_live_your_key_here",
host="https://your-seestack-instance.com",
debug=True,
)
seestack.capture_log("info", "SeeStack SDK installed successfully")package main
import "github.com/seestack/seestack-go"
func main() {
seestack.Init(seestack.Config{
APIKey: "seestack_live_your_key_here",
Host: "https://your-seestack-instance.com",
Debug: true,
})
defer seestack.Flush()
seestack.CaptureLog("info", "SeeStack SDK installed successfully", nil)
}If debug: true is set, you should see outgoing payloads logged to your console or stderr.