Universal bug reporting SDK — captures evidence, synthesizes reports, submits to HaskyOS
  • TypeScript 99.3%
  • JavaScript 0.4%
  • Dockerfile 0.3%
Find a file
john b14908ca91
Some checks failed
CI / Backend (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Detect Changes (push) Has been cancelled
Docs Gate / docs-ok (pull_request) Has been cancelled
CI / Backend (pull_request) Has been cancelled
CI / Docker Build (pull_request) Has been cancelled
CI / Detect Changes (pull_request) Has been cancelled
Merge pull request 'fix: capture XMLHttpRequest and console.error (v0.6.0)' (#36) from feat/fix-xhr-and-console-error-capture into dev
2026-07-30 01:09:56 +00:00
.forgejo/workflows fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00
.workstream docs: add 4 scaffolding files [skip cd] (#31) 2026-06-24 16:39:27 +00:00
docs fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00
src fix: do not repeat Error message alongside its stack 2026-07-30 08:26:11 +08:00
tests/integration test: ENG-BUG-REPORTER-011 — build artifact integration test 2026-06-13 17:36:12 +00:00
.gitignore feat: scaffold bug-reporter TypeScript library with Vite 2026-06-09 22:50:32 +00:00
AGENTS.md chore: add AGENTS.md symlink for cross-harness invariance [skip cd] (#34) 2026-06-28 06:45:51 +00:00
CLAUDE.md feat: scaffold TypeScript library for dispatch readiness 2026-06-09 18:26:48 +08:00
Dockerfile fix: ENG-BUG-REPORTER-001 — copy pnpm-workspace.yaml in Dockerfile for esbuild allowlist 2026-06-10 12:27:41 +00:00
eslint.config.mjs feat: scaffold TypeScript library for dispatch readiness 2026-06-09 18:26:48 +08:00
package-lock.json feat: scaffold bug-reporter TypeScript library with Vite 2026-06-09 22:50:32 +00:00
package.json fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00
pnpm-lock.yaml fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00
pnpm-workspace.yaml fix: ENG-BUG-REPORTER-001 — sync lockfile and allow esbuild build scripts 2026-06-09 23:08:07 +00:00
README.md fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00
tsconfig.json feat: scaffold TypeScript library for dispatch readiness 2026-06-09 18:26:48 +08:00
vite.config.ts fix: capture XMLHttpRequest and console.error (v0.6.0) 2026-07-30 08:22:41 +08:00

@haskytech/bug-reporter

Universal bug reporting SDK — captures browser evidence, synthesizes reports, submits to HaskyOS.

Install

npm install @haskytech/bug-reporter

Usage

import { initBugReporter } from '@haskytech/bug-reporter'

initBugReporter({
  endpoint: 'https://api.example.com/bugs',
  workstream: 'my-app',
})

Capture channels

Channel Module Covers
Errors ErrorBuffer window.onerror, unhandledrejection
Console ConsoleBuffer console.log / warn / info / error
Network NetworkInterceptor fetch and XMLHttpRequest (axios and any other XHR-based client)

NetworkInterceptor patches both network transports, so an axios-based app needs no application-level error-logging workaround. Both transports feed the same getFailures() and getRequestLog() buffers.

Build

npm run build

Outputs ESM (dist/index.js) and CJS (dist/index.cjs) bundles with type declarations (dist/index.d.ts).

License

MIT