{"id":18888061,"url":"https://github.com/codex-team/codex-surveys","last_synced_at":"2025-10-18T21:23:01.671Z","repository":{"id":65110260,"uuid":"560516596","full_name":"codex-team/codex-surveys","owner":"codex-team","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-15T12:51:41.000Z","size":199,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-31T05:28:31.146Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codex-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-01T17:12:32.000Z","updated_at":"2023-03-14T15:51:27.000Z","dependencies_parsed_at":"2024-01-23T21:16:04.196Z","dependency_job_id":"f9b17596-8743-4866-996a-035caab9566d","html_url":"https://github.com/codex-team/codex-surveys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fcodex-surveys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fcodex-surveys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fcodex-surveys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fcodex-surveys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codex-team","download_url":"https://codeload.github.com/codex-team/codex-surveys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859562,"owners_count":19708863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-08T07:41:57.575Z","updated_at":"2025-10-18T21:23:01.603Z","avatar_url":"https://github.com/codex-team.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeX Surveys\n\nA simple widget to collect users' feedback.\n\n\u003cimg width=\"648\" alt=\"surveys\" src=\"https://user-images.githubusercontent.com/26390210/213229181-5bc1e5b2-65b5-4ee6-80f6-1bfcbc9b45ea.png\"\u003e\n\n## How to use Surveys\n\n1.  Create Notion [integration](https://www.notion.so/my-integrations)\n2.  Create Notion [database](https://www.notion.so/help/guides/creating-a-database)\n3.  Add connection to database\n    Right menu \u003e Connections \u003e Add connection\n\n4.  Install the package\n\n```bash\n  yarn add @codexteam/surveys\n```\n\n5.  Add widget to your page\n\n```javascript\nimport { CodeXSurveys } from '@codexteam/surveys';\n\nconst widget = new CodeXSurveys({\n  notion: {\n    databaseId: '\u003cNotion Database ID\u003e',\n    clientSecret: '\u003cNotion Client ID\u003e',\n  },\n  form: {\n    description:\n      'We want to better understand your goals and requirements. Please, provide us some insights.',\n    items: [\n      {\n        label: 'Product type',\n        field: {\n          name: 'product_type',\n          type: 'select',\n          options: ['B2B', 'B2C'],\n        },\n      },\n      {\n        label: 'Your product size',\n        field: {\n          type: 'select',\n          name: 'product_size',\n          options: ['\u003c100 DAU', '100 DAU - 1000 DAU', '\u003e 1000 DAU'],\n        },\n      },\n      {\n        label: 'Your software license',\n        field: {\n          name: 'software_license',\n          type: 'select',\n          options: ['Freeware / Open-Source', 'Permissive', 'Proprietary'],\n        },\n      },\n      {\n        label: 'Your suggestions to the Editor.js',\n        field: {\n          name: 'suggestions',\n          type: 'textarea',\n          placeholder: 'Enter your ideas, requests or issues',\n        },\n      },\n    ],\n  },\n  widget: {\n    title: 'Using Editor.js?',\n    description: 'Take a 2-minutes survey🙏',\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fcodex-surveys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-team%2Fcodex-surveys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fcodex-surveys/lists"}