Contributing
Use Node.js 22.12+ for development and tests (Vitest 5 requires it). The published library continues to support Node.js 18+.
First clone the repository and install dependencies with pnpm install.
The repository pins pnpm@12.11.2 for local, CI, and Vercel builds.
Vercel installs the docs package with pnpm install --frozen-lockfile.
Building release artifacts uses Rolldown and requires Node.js 20.19+ or 22.12+.
pnpm buildRun pnpm test:unit for the unit suite; it does not require provider credentials.
Also run pnpm typecheck, pnpm lint, pnpm test:consumer, and pnpm test:examples.
For live provider integration tests, configure a .env file from .env.example:
cp .env.example .envand fill in the missing values.
If you did not add any new API, set MOCK_FETCH="true".
If you added a new API and need to test against cloud providers, set
MOCK_FETCH="false" and RECORD_NETWORK_REQUESTS="true" to update recorded network fixtures.
Documentation site (Astro Starlight)
Section titled “Documentation site (Astro Starlight)”The documentation site lives under docs/ and is built with Astro Starlight:
pnpm --dir docs dev # Local dev serverpnpm --dir docs typecheck # Astro + TypeScript checkspnpm --dir docs build # Production build to docs/dist/pnpm --dir docs test # Post-build link, HTML, LLM route, and converter checksWebDAV quick guide
Section titled “WebDAV quick guide”WebDAV uses XML for all metadata communication. The basic element is an object, multiple objects form a collection, a WebDAV server has accounts, each account has a principal resource (the user’s main resource), and under that principal we discover the home set where calendars or address books live.
syncToken and ctag act like change tokens for a collection: whenever its contents change, the token changes.
For CalDAV, calendar data uses the RFC 5545 iCalendar format. You can parse and serialize iCalendar data with libraries such as ical.js or pretty-jcal.
Here is a cheat sheet comparing WebDAV operations with REST:
| Operation | WebDAV | REST |
|---|---|---|
| Create collection |
|
|
| Create entity |
|
|
| Update entity body |
|
|
| Update entity attributes |
|
|
| Delete entity |
|
|
| List entities |
|
|
| Get entity |
|
|
| Get entity attributes |
|
|
| Notes |
|
|