Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 tests

Release

bun run publish:packages   # builds, then publishes each package to npm

CI publishes on a v* tag (needs an NPM_TOKEN secret). See .github/workflows.

License

MIT

About

bughq error-tracking SDKs — core, Vue, Nuxt, Stacks/stx

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages