Universal bug reporting SDK — captures evidence, synthesizes reports, submits to HaskyOS
- TypeScript 99.3%
- JavaScript 0.4%
- Dockerfile 0.3%
|
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
|
||
|---|---|---|
| .forgejo/workflows | ||
| .workstream | ||
| docs | ||
| src | ||
| tests/integration | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
@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