npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-carddav-rest

v0.1.2

Published

n8n community node for CardDAV REST — manage Baïkal contacts from n8n workflows

Readme

n8n-nodes-carddav-rest

n8n community node for the CardDAV REST adapter. Manage contacts stored in Baïkal from n8n workflows — no hand-crafted HTTP Request nodes required.

Installation

From n8n

Settings → Community Nodes → Install → package name: n8n-nodes-carddav-rest

Local testing with Docker

The n8n-node/ directory includes a Dockerfile and docker-compose.yml that build a custom n8n image with the node baked in. Build the TypeScript first, then build and start the image:

cd n8n-node
npm install
npm run build
docker compose build
docker compose up -d

n8n will be available at http://localhost:5678. The CardDAV REST node will appear in the node picker without any additional installation step — do not use Settings → Community Nodes → Install.

After changing the node source, rebuild and restart:

npm run build
docker compose build
docker compose up -d

Existing workflows and credentials are preserved — only the image is replaced. The n8n-data volume is not touched.

To test against a running CardDAV REST adapter (started via the root docker-compose.yml), set the credential Base URL to:

http://host.docker.internal:8000

This works on macOS and Windows out of the box. On Linux, extra_hosts: host.docker.internal:host-gateway is already set in the compose file — no extra configuration needed.

Full local stack (both compose files):

# Terminal 1 — adapter + Baïkal
docker compose up -d          # from repo root

# Terminal 2 — n8n with the community node
cd n8n-node
npm run build
docker compose build
docker compose up -d

Local development (hot reload)

cd n8n-node
npm install
npm run dev

This starts an n8n instance with the node loaded at http://localhost:5678 and rebuilds automatically on file changes.

Authentication

The node uses the CardDAV REST API credential with two fields:

| Field | Description | |-------|-------------| | Base URL | URL of the CardDAV REST adapter (e.g. http://localhost:8000) | | API Key | Sent as the X-API-Key header on every request |

Resources and Operations

Contact

All contact operations require selecting an Address Book (dynamic dropdown populated from the server).

| Operation | Description | |-----------|-------------| | List | List contacts with pagination and optional quick search | | Get | Retrieve a single contact by UID | | Create | Create a new contact | | Update (Full Replace) | Replace all fields of an existing contact | | Update Fields | Update only the specified fields (PATCH) | | Delete | Delete a contact | | Search | Search by name, email, or phone with AND/OR logic | | Merge Duplicates | Merge two contacts — keeps the primary, deletes the duplicate | | Move to Addressbook | Move a contact to a different address book | | Download vCard | Download a contact as a .vcf file (binary output) |

Addressbook

| Operation | Description | |-----------|-------------| | List | List all available address books |

Stats

| Operation | Description | |-----------|-------------| | Get | Return contact count, last/oldest modification date, and total size per address book |

Config

| Operation | Description | |-----------|-------------| | Get | Return active server configuration (name_format, default_region, required_fields) |

Contact Fields

Core fields (Create / Update)

| Field | Required | Notes | |-------|----------|-------| | First Name | yes* | *At least one of First Name or Last Name must be provided | | Last Name | no | | | Phone Numbers | no | Multiple entries, each with type (cell/home/work/other) and number | | Email Addresses | no | Multiple entries, each with type (home/work/other) and address | | Addresses | no | Multiple entries with street, city, ZIP, state, country | | Additional Fields | no | Birthday, categories, note, organization, title, photo URL, URLs, etc. |

The server's REQUIRED_FIELDS configuration may make additional fields mandatory (e.g. phones, emails). The server returns a 422 error if a required field is missing.

Update Fields (PATCH) — only listed fields are changed

Add fields to the Fields to Update collection. Fields not listed remain untouched on the server.

Search parameters

  • Name — partial match, word-order independent for multi-word queries
  • Email — exact match
  • Phone — partial match
  • Match ConditionAll Of (AND) / Any Of (OR)

Error Handling

| HTTP status | Behavior | |-------------|----------| | 401 | Invalid API key | | 404 | Contact not found | | 409 | Duplicate contact detected or concurrent modification conflict | | 422 | Validation error (e.g. missing required field) | | 502 | Baïkal server unreachable — check that Baïkal is running |

Development

cd n8n-node
npm install
npm test          # Run Jest test suite (34 tests)
npm run build     # Compile TypeScript to dist/
npm run dev       # Start n8n with hot reload
npm run lint      # Run ESLint
npm run lint:fix  # Auto-fix linting issues

Publishing to npm

npm run build
npm publish --access public

Related

License

MIT