Documentation website for @dfsync/client.
@dfsync/client is a Node.js and TypeScript HTTP client for service-to-service communication. It provides retries, auth, lifecycle hooks, request metadata, response validation, and structured errors.
Website repository:
Package monorepo:
- React
- TypeScript
- Vite
- Material UI
- React Router
react-markdownwithremark-gfm
docs/<package>/<version>/ Markdown documentation content
docs/client/v1/ @dfsync/client v1 documentation
src/content/docsContent.ts Package docs registry and markdown import map
src/content/docsNavigation.ts Default docs package/version constants
src/pages/Docs/ Documentation page renderer
src/components/ Shared UI components
src/services/analytics/ Analytics helpers
The current v1 docs include:
- Getting Started
- Installation
- Create Client
- Response Handling
- Auth
- Hooks
- Observability
- Retry
- Errors
- Examples
- API Reference
#/docs is the default documentation entry point for @dfsync/client.
Canonical documentation URLs use:
#/docs/<package>/<version>/<page>
For example:
#/docs/client/v1/getting-started
When adding a new markdown file under docs/<package>/<version>, also add it to the relevant package/version entry in:
src/content/docsContent.ts
To add documentation for another package:
- Create
docs/<package>/<version>. - Add the package to
docsPackagesinsrc/content/docsContent.ts. - Define the package label, default version, default page, navigation, and markdown imports.
- Verify routes under
#/docs/<package>/<version>/<page>.
Docs should match the current @dfsync/client source in the monorepo:
packages/client/src/index.tspackages/client/src/types/*packages/client/src/errors/*packages/client/src/core/*packages/client/tests
For release documentation, compare the release branch or PR against main before editing this site.
Install dependencies:
npm installStart the dev server:
npm run devBuild for production:
npm run buildPreview the production build:
npm run previewRun these before opening or merging documentation changes:
npm run format:check
npm run typecheck
npm run lint
npm run build- Use
baseUrl, notbaseURL. - Keep examples aligned with the public
@dfsync/clientAPI. - Do not document behavior unless it is confirmed by source or tests.
- If a behavior is release-specific, check the active release branch or PR.