@issue-reporter/core
v0.1.9
Published
Shared contracts, schemas, and formatting helpers for IssueReporter
Maintainers
Readme
@issue-reporter/core
Shared contracts, schemas, and formatting helpers for IssueReporter.
Install
npm install @issue-reporter/coreWhat It Includes
- request and response contracts
- shared error codes
- Zod-backed schemas
- issue title/body formatting helpers
- asset URL helpers
Smallest Useful Example
import {
buildIssueReportBody,
buildIssueReportTitle,
issueReportSubmissionSchema,
} from '@issue-reporter/core';
const parsed = issueReportSubmissionSchema.parse(input);
const title = buildIssueReportTitle(parsed);
const body = buildIssueReportBody({
submission: parsed,
screenshotUrl: 'https://cdn.example.com/report.png',
});Limitations
This package is meant to support the @issue-reporter/react and @issue-reporter/fastify packages. It is not intended as a general-purpose issue-tracking toolkit.
More
- Repo docs: https://github.com/AndyK888/IssueReporter
- React package:
@issue-reporter/react - Fastify package:
@issue-reporter/fastify
