{"id":46566965,"url":"https://github.com/directus/n8n-nodes-directus","last_synced_at":"2026-03-07T07:32:51.127Z","repository":{"id":325333517,"uuid":"1062871688","full_name":"directus/n8n-nodes-directus","owner":"directus","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-05T20:37:29.000Z","size":498,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-07T05:40:17.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/directus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T21:07:45.000Z","updated_at":"2025-12-05T20:37:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/directus/n8n-nodes-directus","commit_stats":null,"previous_names":["directus/n8n-nodes-directus"],"tags_count":3,"template":false,"template_full_name":"n8n-io/n8n-nodes-starter","purl":"pkg:github/directus/n8n-nodes-directus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/directus%2Fn8n-nodes-directus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/directus%2Fn8n-nodes-directus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/directus%2Fn8n-nodes-directus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/directus%2Fn8n-nodes-directus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/directus","download_url":"https://codeload.github.com/directus/n8n-nodes-directus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/directus%2Fn8n-nodes-directus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-07T07:32:50.556Z","updated_at":"2026-03-07T07:32:51.107Z","avatar_url":"https://github.com/directus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n-nodes-directus\n\nA comprehensive n8n community node package for integrating with Directus CMS.\n\n[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.\n\n## Installation\n\nFollow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.\n\n### Package Name\n\nThe package is published as `@directus/n8n-nodes-directus` on npm.\n\n### From npm (when published)\n\n```bash\nnpm install @directus/n8n-nodes-directus\n```\n\n## Usage\n\n### Getting Started\n\n1. **Install the package** (when published):\n\n   ```bash\n   npm install @directus/n8n-nodes-directus\n\n   # Or using pnpm\n   pnpm add @directus/n8n-nodes-directus\n   ```\n\n2. **Configure credentials** in n8n:\n   - Add your Directus URL (e.g., `https://your-directus.app`)\n   - Add your Directus API token with appropriate permissions\n\n3. **Use the nodes** in your workflows:\n   - **Directus Node**: For CRUD operations on items, users, and files\n   - **Directus Trigger Node**: For webhook-based automation\n\n### Available Operations\n\n#### Directus Node\n\n- **Items**:\n  - Create, Create (Raw JSON)\n  - Get, Get (Raw JSON)\n  - Get Many, Get Many (Raw JSON)\n  - Update, Update (Raw JSON)\n  - Delete\n- **Users**:\n  - Invite\n  - Get, Get (Raw JSON)\n  - Get Many, Get Many (Raw JSON) with Simplify option\n  - Update, Update (Raw JSON)\n  - Delete\n- **Files**:\n  - Upload a File (using binary data from a previous node)\n  - Import a File (from a URL)\n  - Get, Get (Raw JSON)\n  - Get Many, Get Many (Raw JSON) with Simplify option\n  - Update, Update (Raw JSON)\n  - Delete\n\n#### Directus Trigger Node\n\n- **Item Events**: Trigger on create, update, delete operations in collections\n- **User Events**: Trigger on user creation, updates, and deletions\n- **File Events**: Trigger on file uploads and updates\n\n## Features\n\n- **Dynamic Field Loading**: Automatically loads available collections and fields from your Directus instance\n- **Smart Field Processing**: Handles complex field types and relationships\n- **Simplify Option**: Returns essential fields only for Users and Files \"Get Many\" operations\n- **Raw JSON Operations**: Full support for raw JSON data/query parameters for advanced use cases (available for all CRUD operations)\n- **Robust Error Handling**: Comprehensive error handling with detailed error messages\n- **Webhook Management**: Automatic webhook creation and cleanup for trigger nodes\n- **Type Safety**: Full TypeScript support with proper type definitions\n- **UX Compliance**: Follows n8n community node UX guidelines with proper naming and placeholders\n\n## Credentials\n\n### Directus API\n\nConfigure your Directus instance connection:\n\n- **Directus URL**: Your Directus instance URL (e.g., `https://your-directus.app`)\n- **Token**: Your Directus API token with appropriate permissions\n\n## Compatibility\n\n- **Directus Cloud**: Fully supported\n- **Self-hosted Directus**: Fully supported\n- **Directus Versions**: Compatible with Directus 10.0+\n\n## Development\n\nThis project uses the official n8n-node CLI tool for development and follows n8n community node standards.\n\n### Prerequisites\n\n- **Node.js 22+**\n- **npm 10+**\n- **Directus instance** for testing (cloud or self-hosted)\n- **ngrok** (for webhook testing) - install from [ngrok.com](https://ngrok.com/)\n\n### Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/directus/n8n-nodes-directus.git\ncd n8n-nodes-directus\n\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n```\n\n### Quick Start\n\n1. **Start n8n with your node loaded**:\n\n   ```bash\n   npm run dev:n8n\n   ```\n\n   This will:\n   - Link your custom node to n8n\n   - Start n8n development server\n   - Make your Directus nodes available in n8n\n\n2. **Access n8n**: Open http://localhost:5678 in your browser\n\n3. **Configure credentials**:\n   - Add your Directus API credentials\n   - Test the connection\n\n4. **Create workflows**: Use the Directus nodes in your workflows\n\n### Testing\n\n#### Webhook Testing (Requires ngrok)\n\nFor testing the **Directus Trigger** node, you need to expose n8n via a public URL since Directus cannot reach localhost:\n\n1. **Install ngrok** (if not already installed):\n\n   ```bash\n   # macOS with Homebrew\n   brew install ngrok\n\n   # Or download from https://ngrok.com/\n   ```\n\n2. **Start n8n** (in one terminal):\n\n   ```bash\n   npm run dev:n8n\n   ```\n\n3. **Start ngrok** (in another terminal):\n\n   ```bash\n   ngrok http 5678\n   ```\n\n   This will give you a public URL like `https://abc123.ngrok-free.dev`\n\n4. **Create a webhook workflow**:\n   - Add a **Directus Trigger** node\n   - Configure the trigger (resource, event, collection)\n   - Activate the workflow\n   - Copy the webhook URL from n8n\n\n5. **Update Directus webhook**:\n   - In Directus, go to **Settings → Flows**\n   - Find the created flow and edit it\n   - Replace `localhost:5678` with your ngrok URL\n   - Save the flow\n\n6. **Test the webhook**:\n   - Create/update items in Directus\n   - Check if the webhook triggers in n8n\n\n**Note**: The manual URL replacement step is required because Directus cannot reach localhost URLs directly.\n\n### Getting Help\n\n- Check the [GitHub Issues](https://github.com/directus/n8n-nodes-directus/issues) for known problems\n- Run `pnpm test` to verify everything works\n- Use `pnpm test:coverage` to see test coverage\n\n## Contributing\n\nWe welcome feedback and suggestions! Please help us improve this community node:\n\n### Reporting Issues\n\n- **Bug Reports**: Use the [GitHub Issues](https://github.com/directus/n8n-nodes-directus/issues) page to report bugs\n- **Feature Requests**: Submit enhancement ideas through GitHub Issues\n- **Documentation**: Help improve our documentation by reporting unclear sections\n\n### Issue Guidelines\n\nWhen reporting issues, please provide:\n\n- Detailed description of the problem or feature request\n- Steps to reproduce (for bugs)\n- Expected vs actual behavior\n- Your Directus version and n8n version\n- Any relevant error messages or logs\n\n### Code Contributions\n\nWhile we appreciate community interest, we maintain this node internally to ensure:\n\n- Consistent code quality and style\n- Proper testing and validation\n- Alignment with Directus and n8n best practices\n- Timely maintenance and updates\n\nIf you have specific code improvements or bug fixes, please:\n\n1. **Open an issue first** describing the problem or improvement\n2. **Wait for our team to review** and potentially implement the change\n3. **Provide detailed information** to help us understand the requirement\n\nThis approach ensures the node remains reliable, well-tested, and follows n8n community node verification guidelines.\n\n## Resources\n\n- [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/installation/)\n- [Directus API Documentation](https://directus.io/docs/api)\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor issues and questions:\n\n- [GitHub Issues](https://github.com/directus/n8n-nodes-directus/issues)\n- [Directus Community](https://community.directus.io/)\n- [n8n Community](https://community.n8n.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirectus%2Fn8n-nodes-directus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirectus%2Fn8n-nodes-directus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirectus%2Fn8n-nodes-directus/lists"}