{"_id":"@danielpetrica/n8n-nodes-cozjp","name":"@danielpetrica/n8n-nodes-cozjp","dist-tags":{"next":"1.0.0-0","latest":"1.0.0-0"},"versions":{"1.0.0-0":{"name":"@danielpetrica/n8n-nodes-cozjp","version":"1.0.0-0","description":"n8n community node for the coz.jp URL shortener (create, get, update, delete, list, expand)","license":"MIT","homepage":"https://github.com/danielpetrica/n8n-nodes-cozjp","keywords":["n8n-community-node-package"],"author":{"name":"Daniel, Andrei-Daniel Petrica","email":"andrei@danielpetrica.com"},"repository":{"type":"git","url":"git+https://github.com/danielpetrica/n8n-nodes-cozjp.git"},"scripts":{"build":"n8n-node build","build:watch":"tsc --watch","dev":"n8n-node dev","lint":"n8n-node lint","lint:fix":"n8n-node lint --fix","release":"n8n-node release","prepublishOnly":"n8n-node prerelease"},"n8n":{"n8nNodesApiVersion":1,"strict":true,"credentials":["dist/credentials/DanielpetricaCozjpApi.credentials.js"],"nodes":["dist/nodes/DanielpetricaCozjp/DanielpetricaCozjp.node.js"]},"devDependencies":{"@n8n/node-cli":"*","eslint":"9.32.0","prettier":"3.6.2","release-it":"^19.0.4","typescript":"5.9.2","n8n-workflow":"*"},"peerDependencies":{"n8n-workflow":"*"},"_id":"@danielpetrica/n8n-nodes-cozjp@1.0.0-0","gitHead":"9ed3b076993bb784cba067f68cea57814a68f3fe","bugs":{"url":"https://github.com/danielpetrica/n8n-nodes-cozjp/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-6duyBvAn2NwC/3p5ji/4Q+L2dQXPs5L2v9xoOYEhuaExeNJhJ9Bt22tMBeocVmE92e7CcSQaNhzQiQ/7++RkQw==","shasum":"9674b56af28ce3cada94e1e9e98618f9ec049371","tarball":"https://registry.npmjs.org/@danielpetrica/n8n-nodes-cozjp/-/n8n-nodes-cozjp-1.0.0-0.tgz","fileCount":18,"unpackedSize":55977,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCzXf9OqV3iBdJBdDez4JlwthuQKeBZN25w0sL+al6rNgIhAPEa6cXtbkwYUO0C21gfxyXf82jiEtcKyGAmTP0G5NA8"}]},"_npmUser":{"name":"daniel_petrica","email":"andrei@danielpetrica.com"},"directories":{},"maintainers":[{"name":"daniel_petrica","email":"andrei@danielpetrica.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/n8n-nodes-cozjp_1.0.0-0_1762519973928_0.33144654493505654"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-07T12:52:53.821Z","1.0.0-0":"2025-11-07T12:52:54.128Z","modified":"2025-11-07T12:52:54.424Z"},"maintainers":[{"name":"daniel_petrica","email":"andrei@danielpetrica.com"}],"description":"n8n community node for the coz.jp URL shortener (create, get, update, delete, list, expand)","homepage":"https://github.com/danielpetrica/n8n-nodes-cozjp","keywords":["n8n-community-node-package"],"repository":{"type":"git","url":"git+https://github.com/danielpetrica/n8n-nodes-cozjp.git"},"author":{"name":"Daniel, Andrei-Daniel Petrica","email":"andrei@danielpetrica.com"},"bugs":{"url":"https://github.com/danielpetrica/n8n-nodes-cozjp/issues"},"license":"MIT","readme":"# @danielpetrica/n8n-nodes-cozjp\n\nCommunity node for n8n to create and manage short links on coz.jp.\n\ncoz.jp is a URL shortener. This node lets you shorten URLs, retrieve, update, delete, and list your short links directly in your n8n workflows.\n\n[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.\n\nNote: This community node and its n8n integration are currently in beta. Functionality may change, and you may encounter bugs or incomplete features. Please report any issues or suggestions via the repository Issues page to help us improve.\n\n- [Installation](#installation)\n- [Operations](#operations)\n- [Credentials](#credentials)\n- [Compatibility](#compatibility)\n- [Usage](#usage)\n- [Local development](#local-development)\n- [Resources](#resources)\n- [Version history](#version-history)\n\n## Installation\n\nInstall via n8n Community Nodes. See the official guide: [Install community nodes](https://docs.n8n.io/integrations/community-nodes/installation/).\n\nSearch for the package name `@danielpetrica/n8n-nodes-cozjp` in the n8n Editor UI when adding a Community Node.\n\n## Operations\n\nResource: Link\n\nSupported operations (declarative):\n- Create — Create a short link for a target URL (`POST /links`).\n- Get — Retrieve a short link by ID (`GET /links/{id}`).\n- List — List your links (`GET /links`).\n- Update — Update a link's target URL (`PATCH /links/{id}`).\n- Delete — Delete a link (`DELETE /links/{id}`).\n\nCommon parameters and options:\n- Link ID — Required for Get/Update/Delete.\n- URL — Required for Create and Update.\n- Simplify Response — When enabled (default), the node returns only the `data` payload from the API response.\n\n## Credentials\n\nThis node uses a bearer token to authenticate with coz.jp.\n\n- Credential name in n8n: `Danielpetrica Coz.jp API` (internal: `danielpetricaCozjpApi`).\n- Fields:\n  - API Token (required): your personal API token from your coz.jp account profile.\n  - Base URL (optional): defaults to `https://coz.jp/api`; override for self-hosted/local testing.\n\nThe credential sends the header `Authorization: Bearer <token>` with every request.\n\nDocumentation link: https://github.com/danielpetrica/n8n-nodes-coz.jp\n\n## Compatibility\n\n- n8n Community Nodes API: v1\n- Node.js: >= 18.17.0\n- Built with `@n8n/node-cli`\n\nThis package ships as ES modules compiled to `dist/` and referenced by the `n8n` block in `package.json`.\n\nBeta status: This node and its n8n integration are in active development and considered beta. Expect changes and occasional rough edges. Please report issues and feature requests in the repo.\n\n## Usage\n\n1) Add the \"Danielpetrica Coz.jp\" node in your workflow.\n2) Select Resource = Link and choose an Operation (Create/Get/List/Update/Delete).\n3) Configure Credentials with your coz.jp API token.\n4) For Create/Update, set the `URL` field; for Get/Update/Delete, set `Link ID`.\n5) Optionally leave \"Simplify Response\" turned on to receive a concise payload.\n\nTips:\n- You can use expressions to build URLs dynamically from previous nodes.\n- The node sets default headers `Accept: application/json` and `Content-Type: application/json`.\n\n## Local development\n\nIf you want to build or modify this node locally and try it in n8n:\n\n- Prerequisites: Node.js >= 18.17.0, npm or yarn.\n- Install deps: `npm i`\n- Build: `npm run build`\n- Link for local testing:\n  1. From this repo: `npm run build && npm link`\n  2. In your n8n custom nodes directory (e.g., `~/.n8n/custom/`): `npm link @danielpetrica/n8n-nodes-cozjp`\n  3. Start n8n: `n8n start` and search for the node by name: \"Danielpetrica Coz.jp\".\n\nTroubleshooting:\n- If `~/.n8n/custom` doesn’t exist, create it and run `npm init -y` inside it.\n- Ensure the node class and filenames match (e.g., `DanielpetricaCozjp.node.ts` exporting class `DanielpetricaCozjp`).\n\n## Resources\n\n- n8n Community Nodes docs: https://docs.n8n.io/integrations/#community-nodes\n- coz.jp website: https://coz.jp/\n- Package repository and issues: https://github.com/danielpetrica/n8n-nodes-coz.jp\n\n## Version history\n\n- 0.1.0 — Initial release: Link resource with Create, Get, List, Update, Delete; API token credentials; declarative routing.\n","readmeFilename":"README.md","_rev":"1-467ae9bae39ac4c66be28ea6f09127fe"}