{"id":22021512,"url":"https://github.com/peterbenoit/codepen-embed","last_synced_at":"2026-04-18T00:02:15.516Z","repository":{"id":255429659,"uuid":"849581134","full_name":"peterbenoit/codepen-embed","owner":"peterbenoit","description":"A highly configurable, customizable CodePen embed plugin for Next.js and React applications. ","archived":false,"fork":false,"pushed_at":"2024-08-29T22:02:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T10:19:31.641Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterbenoit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-08-29T21:17:46.000Z","updated_at":"2024-08-29T22:02:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e94f546-c9a4-4a9e-8b64-cfa5dbf338bc","html_url":"https://github.com/peterbenoit/codepen-embed","commit_stats":null,"previous_names":["peterbenoit/codepen-embed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterbenoit/codepen-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fcodepen-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fcodepen-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fcodepen-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fcodepen-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterbenoit","download_url":"https://codeload.github.com/peterbenoit/codepen-embed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterbenoit%2Fcodepen-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-30T06:12:23.388Z","updated_at":"2026-04-18T00:02:15.500Z","avatar_url":"https://github.com/peterbenoit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodePen Embed\n\nA customizable React component for embedding CodePen examples on your website. This component allows you to easily configure the embed settings using a `.codepen-config.json` file.\n\n## Features\n\n-   Fully configurable through a `.codepen-config.json` file.\n-   Supports different themes, editable embeds, and custom heights.\n-   Lightweight and easy to integrate with any React or Next.js project.\n\n## Getting Started\n\n### Installation\n\n1. **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/YOUR_USERNAME/codepen-embed.git\n    cd codepen-embed\n    ```\n\n2. **Install dependencies:**\n\n    Make sure you have `npm` or `yarn` installed. Run the following commands to install the necessary dependencies:\n\n    ```bash\n    npm install\n    # or\n    yarn install\n    ```\n\n3. **Run the project locally:**\n\n    Start the local development server:\n\n    ```bash\n    npm run dev\n    # or\n    yarn dev\n    ```\n\n    Open your browser and navigate to `http://localhost:5173` to see the project in action.\n\n### Configuration\n\nCreate a `.codepen-config.json` file in the project root to customize the embed settings:\n\n```json\n{\n    \"username\": \"YOUR_USERNAME\",\n    \"height\": 600,\n    \"themeId\": \"dark\",\n    \"defaultTab\": \"html,result\",\n    \"editable\": true,\n    \"preview\": false,\n    \"title\": \"Embedded CodePen Example\"\n}\n```\n\nYou can overwrite these settings directly in your `CodepenEmbed` component if needed.\n\n### Usage\n\nTo embed a CodePen in your project, import the `CodepenEmbed` component and use it like this:\n\n```jsx\nimport React from 'react';\nimport CodepenEmbed from './CodepenEmbed';\n\nfunction App() {\n    return (\n        \u003cdiv\u003e\n            \u003ch1\u003eMy CodePen Embeds\u003c/h1\u003e\n            \u003cCodepenEmbed penId=\"yourPenId\" /\u003e\n        \u003c/div\u003e\n    );\n}\n\nexport default App;\n```\n\n### Props\n\nThe `CodepenEmbed` component supports the following props specified in `.codepen-config.json` or directly on the component:\n\n-   **`UserName`** (optional): The account that the Pen is associated with.\n-   **`penId`** (required): The unique ID of the CodePen to embed.\n-   **`height`** (optional): Overrides the default height. (default: 600)\n-   **`themeId`** (optional): Overrides the default theme. (default: dark; options: light, dark)\n-   **`defaultTab`** (optional): Overrides the default tabs. (default: html, result)\n-   **`editable`** (optional): Sets whether the embed is editable. (default: true; options: true, false)\n-   **`preview`** (optional): Enables or disables preview mode. (default: true; options: true, false)\n-   **`title`** (optional): Overrides the embed title.\n\n### Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n### License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n### Issues\n\nIf you encounter any issues, please open an issue on GitHub.\n\n### Author\n\n-   [Peter Benoit](https://github.com/peterbenoit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbenoit%2Fcodepen-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterbenoit%2Fcodepen-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbenoit%2Fcodepen-embed/lists"}