Title: Add CardDAV plugin for contact sync with phones and desktops · Issue #157 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Add CardDAV plugin for contact sync with phones and desktops · Issue #157 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Add CardDAV plugin for contact sync with phones and desktops · Issue #157 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Motivation JSS already stores contacts as JSON-LD using the W3C vCard vocabulary (vcard:AddressBook, vcard:Individual, vcard:fn, vcard:hasEmail, etc.). Web apps can read and write this data natively. But right now, these contacts live on...
Open Graph Description: Motivation JSS already stores contacts as JSON-LD using the W3C vCard vocabulary (vcard:AddressBook, vcard:Individual, vcard:fn, vcard:hasEmail, etc.). Web apps can read and write this data nativel...
X Description: Motivation JSS already stores contacts as JSON-LD using the W3C vCard vocabulary (vcard:AddressBook, vcard:Individual, vcard:fn, vcard:hasEmail, etc.). Web apps can read and write this data nativel...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/157
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add CardDAV plugin for contact sync with phones and desktops","articleBody":"## Motivation\n\nJSS already stores contacts as JSON-LD using the W3C vCard vocabulary (`vcard:AddressBook`, `vcard:Individual`, `vcard:fn`, `vcard:hasEmail`, etc.). Web apps can read and write this data natively. But right now, these contacts live only in the browser — they can't sync to your phone, desktop mail client, or any other app.\n\n**CardDAV is the missing bridge.** It's the universal standard (RFC 6352) that every contact app already speaks. By adding a CardDAV plugin, every contact stored on a JSS pod becomes instantly accessible from:\n\n- **iOS/macOS** Contacts (built-in, zero config)\n- **Android** (via DAVx⁵ or built-in)\n- **Thunderbird** (built-in CardDAV support)\n- **GNOME/KDE** Contacts\n- **Nextcloud** (can federate with external CardDAV)\n- **Outlook** (via CalDav Synchronizer plugin)\n\nThis turns JSS from a web-only data store into a **real personal data hub** — your contacts live on your pod, and every device syncs to it.\n\n## What this enables\n\n1. **Phone sync** — Add a contact in a web app, it appears on your iPhone/Android. Edit on your phone, it syncs back to your pod.\n2. **Desktop integration** — Thunderbird, Apple Contacts, GNOME Contacts all become Solid-aware without knowing it.\n3. **Migration path** — Users can export contacts from Google/iCloud and import them into their pod via any CardDAV client.\n4. **Interop with Nextcloud** — Nextcloud can mount external CardDAV sources, making JSS pods federatable.\n5. **Solid ecosystem value** — Demonstrates that Solid pods aren't just for web apps; they integrate with the tools people already use.\n\n## Architecture\n\nJSS already has the right patterns — this follows the same plugin approach as ActivityPub (`src/ap/`) and Nostr relay (`src/nostr/`).\n\n### What already works\n\n- File-based storage with `GET`/`PUT`/`DELETE` on any path\n- Auth (WAC, NIP-98)\n- Content negotiation (JSON-LD ↔ Turtle)\n- The vCard RDF vocabulary is already the data model used by SolidOS contacts-pane\n\n### What needs to be added (~300-500 lines)\n\n```\nsrc/carddav/index.js ← Fastify plugin registration + route setup\nsrc/carddav/xml.js ← WebDAV XML request/response helpers\nsrc/carddav/vcf.js ← JSON-LD vcard ↔ .vcf text conversion\n```\n\n### New HTTP methods\n\n| Method | Purpose | Notes |\n|---|---|---|\n| `PROPFIND` | Discover address books and list contacts | WebDAV XML envelope |\n| `REPORT` | Query contacts (multiget, sync-collection) | CardDAV-specific queries |\n| `MKCOL` | Create new address book collection | Simple container creation |\n\n`GET`, `PUT`, `DELETE` for individual `.vcf` resources already work via existing handlers — CardDAV reuses standard HTTP for the actual contact CRUD.\n\n### Data flow\n\n```\nPhone/Desktop ←→ CardDAV (vCard .vcf) ←→ JSS Plugin ←→ JSON-LD (vcard vocab) ←→ Filesystem\n ↑\n Web apps (contacts pane) read/write\n the same JSON-LD files directly\n```\n\nThe conversion between JSON-LD vcard and `.vcf` text is mechanical — it's the same fields:\n\n```\nvcard:fn → FN:Alice Wonderland\nvcard:hasEmail → EMAIL:alice@example.org\nvcard:hasTelephone → TEL:+1-555-0101\nvcard:hasPhoto → PHOTO;VALUE=URI:https://...\nvcard:organization-name → ORG:Acme Corp\n```\n\n### Server config\n\nFollowing the existing pattern:\n\n```js\ncreateServer({\n carddav: true, // Enable CardDAV plugin\n carddavPath: '/contacts/' // Mount point (default)\n})\n```\n\nCLI: `--carddav --carddav-path /contacts/`\n\n## Prior art\n\n- **Radicale** (Python) — minimal CardDAV in ~2000 lines, stores as flat .vcf files\n- **Baikal** (PHP) — wraps SabreDAV\n- **SolidOS contacts-pane** — already uses vcard vocabulary, which is the same data model\n\n## Size estimate\n\nSmall. The WebDAV XML wrapping is the most verbose part, but the actual logic is straightforward. The plugin should be comparable in size to the ActivityPub plugin.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-03-09T09:46:17Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/157"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:327dbd2d-6db0-7c2d-03e0-81f43a423819 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C942:2A44FE:2911ECD:3644FEF:6B038343 |
| html-safe-nonce | 78deed0c39bfb2bd67075d0ad46287e7db0e2673c2f33da132660ffc85dcbdc4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQyOjJBNDRGRToyOTExRUNEOjM2NDRGRUY6NkIwMzgzNDMiLCJ2aXNpdG9yX2lkIjoiNDk5MzM1Nzc4MjE3NTY3OTI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a80cc2616b2473f502ecf1ef924351b31ba9b91db9202732599d7b03c9b25408 |
| hovercard-subject-tag | issue:4044530240 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4eb4274367d5461deb938f11e1ff02e272990387606f1e98f89635d0101b6fb1/JavaScriptSolidServer/JavaScriptSolidServer/issues/157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4eb4274367d5461deb938f11e1ff02e272990387606f1e98f89635d0101b6fb1/JavaScriptSolidServer/JavaScriptSolidServer/issues/157 |
| og:image:alt | Motivation JSS already stores contacts as JSON-LD using the W3C vCard vocabulary (vcard:AddressBook, vcard:Individual, vcard:fn, vcard:hasEmail, etc.). Web apps can read and write this data nativel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width