This monorepo contains the Gunsole JavaScript SDK and test applications for various frameworks.
Repository: https://github.com/push1kb/gunsole-js
.
├── packages/
│ └── gunsole-js/ # Main SDK package
└── apps/
├── react-vite/ # React + Vite test app
├── solid-vite/ # Solid + Vite test app
├── nextjs-app/ # Next.js test app
└── angular-app/ # Angular test app
pnpm installpnpm buildThis builds the gunsole-js package which is then used by all test apps via the workspace protocol.
Each test app demonstrates the Gunsole SDK integration with different frameworks:
cd apps/react-vite
pnpm devVisit http://localhost:5173
cd apps/solid-vite
pnpm devVisit http://localhost:5173
cd apps/nextjs-app
pnpm devVisit http://localhost:3000
cd apps/angular-app
pnpm startVisit http://localhost:4200
Each test app includes:
- ✅ Logging with different levels (info, debug, warn, error)
- ✅ Counter with automatic logging
- ✅ User and session tracking
- ✅ Manual log flushing
- ✅ Error logging
- ✅ Global error handlers (browser + Node.js)
pnpm --filter gunsole-js buildpnpm --filter gunsole-js test# Check for issues
pnpm check
# Fix issues automatically
pnpm check:fix
# Or run separately
pnpm lint # Lint only
pnpm lint:fix # Lint and fix
pnpm format # Format onlyAll test apps are configured to use:
- Mode:
local(connects tohttp://localhost:8787) - Project ID:
test-project-{framework} - API Key:
test-api-key
To test with different endpoints, modify the createGunsoleClient configuration in each app's main component.
MIT
Copyright (c) 2025 @push1kb