Getting Started
Prerequisites
- Node.js + pnpm
- Rust toolchain (required by Tauri desktop app)
- macOS, Windows, or Linux
Run Gunsole Desktop locally
git clone https://github.com/push1kb/gunsole-monorepo.gitcd gunsole-monorepopnpm installcd apps/desktoppnpm tauri devProduction build:
cd gunsole-monorepo/apps/desktoppnpm tauri buildWire the SDK
git clone https://github.com/vijaypushkin/gunsole-js.gitcd gunsole-js/packages/gunsole-jspnpm installpnpm buildIn your app:
import { createGunsoleClient } from 'gunsole-js';
const gunsole = createGunsoleClient({ projectId: 'acme-frontend', apiKey: 'local-test-key', mode: 'desktop', env: 'development', appName: 'acme-web', appVersion: '1.0.0', defaultTags: { framework: 'react' }});Send a first batch
gunsole.setUser({ id: 'user-42', email: 'user@example.com' });gunsole.setSessionId('session-42');
gunsole.log({ bucket: 'app_lifecycle', message: 'App mounted'});
gunsole.error({ bucket: 'api_request', message: 'Fetch failed', context: { status: 500 }, tags: { api: 'users' }, traceId: 'req-500-abc'});
await gunsole.flush();Verify in desktop
- Open the auto-created project (
projectIdin SDK config). - Check new buckets created from
bucketvalues. - Filter by level/tag/search in the log viewer.
Local interfaces
GET /api/projectsGET /api/logsGET /api/logs/tailPOST /mcp(JSON-RPC, tools listed in Dynamic Tags + Power User docs)