bughq/sdk
publicClone
Push over the same URL. A password will not work: create a token under access tokens and use it in place of one.
bughq error-tracking SDKs — core, Vue, Nuxt, Stacks/stx
- .github
- packages
- scripts
- .gitignore 91 B
- bun.lock 188.7 KB
- LICENSE 1.0 KB
- package.json 1.4 KB
- README.md 1.5 KB
- tsconfig.json 449 B
bughq SDKs
Official JavaScript / TypeScript SDKs for bughq error tracking. Add error tracking to any app in one line, with framework-aware capture (Vue component errors, Nuxt SSR, Stacks server errors) on top of window error + unhandled-rejection handling.
Packages
| Package | For | Install |
|---|---|---|
@bughq/sdk | Any JS/TS app (core) | bun add @bughq/sdk |
@bughq/vue | Vue 3 | bun add @bughq/vue |
@bughq/nuxt | Nuxt 3/4 | bun add @bughq/nuxt |
@bughq/stx | Stacks / stx (client + server) | bun add @bughq/stx |
Quick start
import { bughq } from '@bughq/sdk'
bughq.init({
project: 'acme-web-9f2c1a',
key: 'your-public-ingest-key', // safe to ship: a revocable identifier, not a secret
release: '1.4.0',
environment: 'production',
})Vue:
import BugHQ from '@bughq/vue'
app.use(BugHQ, { project: 'acme-web', key: 'pk_...' })Nuxt:
export default defineNuxtConfig({
modules: ['@bughq/nuxt'],
bughq: { project: 'acme-web', key: 'pk_...' },
})You can also pass a single dsn: 'https://<key>@<host>/<project>'. See each
package's README for details.
Develop
bun install
bun run build # builds all packages (sdk first)
bun test # runs all package testsRelease
bun run publish:packages # builds, then publishes each package to npmCI publishes on a v* tag (needs an NPM_TOKEN secret). See .github/workflows.
License
MIT