@techstream/quark-core
v2.1.3
Published
Shared infrastructure for the Quark platform — authentication, job queues, error handling, and utilities.
Downloads
917
Readme
@techstream/quark-core
Shared infrastructure for the Quark platform — authentication, job queues, error handling, and utilities.
What's Included
- Authentication — Next-auth helpers (
createAuthConfig,requireAuth, password hashing) - Job Queue — BullMQ integration (
createQueue,createWorker,addJob) - Errors — Standardized error types (
ValidationError,NotFoundError,UnauthorizedError, etc.) - Utilities —
retryAsync,deepMerge,randomString,sanitizeId,measureTime,memoize - Validation — Zod-based request body validation
- Redis / Mail — Connection helpers for Redis and local mail (Mailpit)
Usage
import {
createAuthConfig,
requireAuth,
createQueue,
createWorker,
addJob,
ValidationError,
retryAsync,
} from "@techstream/quark-core";All modules are re-exported from the package root. See JSDoc comments on each function for options and usage details.
Testing
cd packages/core
pnpm testSupport
For issues, questions, and discussions:
