{"id":28912591,"url":"https://github.com/christophecvb/strapi-plugin-generic-custom-fields","last_synced_at":"2026-02-03T10:04:29.831Z","repository":{"id":297831959,"uuid":"997390390","full_name":"ChristopheCVB/strapi-plugin-generic-custom-fields","owner":"ChristopheCVB","description":"This plugin allows you to easily add custom fields to Strapi","archived":false,"fork":false,"pushed_at":"2026-01-30T16:15:46.000Z","size":3483,"stargazers_count":10,"open_issues_count":5,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T06:05:03.466Z","etag":null,"topics":["plugin","strapi","strapi-plugin"],"latest_commit_sha":null,"homepage":"","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/ChristopheCVB.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-06-06T12:55:27.000Z","updated_at":"2026-01-30T16:15:38.000Z","dependencies_parsed_at":"2025-08-06T03:18:42.245Z","dependency_job_id":"4219c940-394f-4f29-8019-19bad7fce9c4","html_url":"https://github.com/ChristopheCVB/strapi-plugin-generic-custom-fields","commit_stats":null,"previous_names":["christophecvb/strapi-plugin-generic-custom-fields"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ChristopheCVB/strapi-plugin-generic-custom-fields","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopheCVB%2Fstrapi-plugin-generic-custom-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopheCVB%2Fstrapi-plugin-generic-custom-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopheCVB%2Fstrapi-plugin-generic-custom-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopheCVB%2Fstrapi-plugin-generic-custom-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristopheCVB","download_url":"https://codeload.github.com/ChristopheCVB/strapi-plugin-generic-custom-fields/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristopheCVB%2Fstrapi-plugin-generic-custom-fields/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29040800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:57:37.951Z","status":"ssl_error","status_checked_at":"2026-02-03T09:55:14.920Z","response_time":96,"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":["plugin","strapi","strapi-plugin"],"created_at":"2025-06-21T20:12:07.327Z","updated_at":"2026-02-03T10:04:29.810Z","avatar_url":"https://github.com/ChristopheCVB.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" width=\"150px\"\u003e\n  \u003cimg style=\"width: 150px; height: auto;\" src=\"assets/logo.png\" alt=\"Logo - Strapi Plugin Generic Custom Fields\" /\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eStrapi v5 - Plugin Generic Custom Fields\u003c/h1\u003e\n  \u003cp\u003ePowerful Strapi Plugin to easily create Custom Fields\u003c/p\u003e\n  \u003ca href=\"https://www.npmjs.org/package/strapi-plugin-generic-custom-fields\"\u003e\n    \u003cimg alt=\"GitHub package.json version\" src=\"https://img.shields.io/github/package-json/v/ChristopheCVB/strapi-plugin-generic-custom-fields?label=npm\u0026logo=npm\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.org/package/strapi-plugin-generic-custom-fields\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/strapi-plugin-generic-custom-fields.svg\" alt=\"Monthly download on NPM\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n\u003cdiv style=\"margin: 20px 0\" align=\"center\"\u003e\n  \u003cimg style=\"width: 100%; height: auto;\" src=\"assets/preview.png\" alt=\"UI preview\" /\u003e\n\u003c/div\u003e\n\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides a powerful and easy way to add custom fields to your Strapi entities.\n\n## Features\n- Add custom fields to entities with a simple configuration.\n\n### What can it be used for?\n- Create an Enum field with labels\n- Fetch items from an API (with or without authentication)\n- Fetch items from a local source (json file, database, etc.)\n\n## Roadmap\n- Support pagination for fetching items\n- Support for different field types (text, number, date, etc.)\n- Validation rules for custom fields\n- Any idea? [Open an issue](https://github.com/ChristopheCVB/strapi-plugin-generic-custom-fields/issues)\n\n## Usage\n\nTo configure the Generic Custom Fields plugin, add your custom fields configuration to the plugin settings. Each custom field should follow this structure:\n\n```typescript\ntype Config = {\n  customFields: Array\u003c{\n    name: string;         // The unique name of the custom field.\n    description?: string; // A description for the custom field.\n    icon?: string;        // One of the supported StrapiIcon names, e.g. 'Alien', 'Archive', 'ArrowDown', etc.\n    inputSize?: {\n      default: 4 | 6 | 8 | 12; // Default input size.\n      isResizable: boolean;    // Whether the input size can be changed.\n    };\n    searchable?: boolean; // Whether the custom field is searchable (calls fetchItems with query).\n    fetchItems: ({ query: string | undefined }): { items: Item[] } | Promise\u003c{ items: Item[] }\u003e; // Function to fetch multiple items. This function is called on server-side.\n    fetchItem: ({ value: string }): Item | Promise\u003cItem\u003e; // Function to fetch a single item. This function is called on server-side.\n  }\u003e,\n}\ntype Item = {\n    value: string; // Unique identifier for the item. This is used to store the value of the custom field.\n    label: string; // Label of the item.\n    icon?: {\n      src: string; // URL of the icon.\n      colorMask?: boolean; // Whether the icon should be masked with the color of the field.\n    }\n};\n```\nThis configuration allows you to define custom fields that can fetch items either synchronously or asynchronously. The `fetchItems` function is used to retrieve a list of items based on a query string that can be empty, while the `fetchItem` function retrieves a single item based on its value.\n\n### Example Configuration\n\nCheck Wiki page for [Example Implementations](https://github.com/ChristopheCVB/strapi-plugin-generic-custom-fields/wiki/Example-implementations)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophecvb%2Fstrapi-plugin-generic-custom-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophecvb%2Fstrapi-plugin-generic-custom-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophecvb%2Fstrapi-plugin-generic-custom-fields/lists"}