{"id":45084856,"url":"https://github.com/pheralb/code-blocks","last_synced_at":"2026-02-19T15:36:17.508Z","repository":{"id":337917490,"uuid":"922743235","full_name":"pheralb/code-blocks","owner":"pheralb","description":"🍪 A set of UI components \u0026 utilities to show your code beautifully.","archived":false,"fork":false,"pushed_at":"2026-02-11T23:51:36.000Z","size":3185,"stargazers_count":60,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T09:28:19.528Z","etag":null,"topics":["code-block","mdx","nextjs","react","shiki","sugar-high","turborepo","typescript"],"latest_commit_sha":null,"homepage":"https://code-blocks.pheralb.dev","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/pheralb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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-01-27T00:58:44.000Z","updated_at":"2026-02-12T03:32:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pheralb/code-blocks","commit_stats":null,"previous_names":["pheralb/code-blocks"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pheralb/code-blocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fcode-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fcode-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fcode-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fcode-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pheralb","download_url":"https://codeload.github.com/pheralb/code-blocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fcode-blocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29620144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"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":["code-block","mdx","nextjs","react","shiki","sugar-high","turborepo","typescript"],"created_at":"2026-02-19T15:36:17.440Z","updated_at":"2026-02-19T15:36:17.494Z","avatar_url":"https://github.com/pheralb.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://code-blocks.pheralb.dev\"\u003e\n    \u003cimg\n      src=\"https://code-blocks.pheralb.dev/images/code-blocks-svg.svg\"\n      alt=\"@pheralb/code-blocks\"\n      height=\"60\"\n    /\u003e\n  \u003c/a\u003e\n  \u003cp /\u003e\n  \u003cp\u003e\n    \u003cb\u003e\n      A code-block UI component. Copy-Paste. Customizable.\n    \u003c/b\u003e\n  \u003c/p\u003e\n\n\u003ca href=\"http://code-blocks.pheralb.dev/docs\"\u003eGet Started\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;✦\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"http://code-blocks.pheralb.dev/components\"\u003eComponents\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;✦\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"http://code-blocks.pheralb.dev/blocks\"\u003eBlocks\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;✦\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#-contributing\"\u003eContributing\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;✦\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"#-license\"\u003eLicense\u003c/a\u003e\n\n\u003cimg\n  src=\"./apps/website/public/images/screenshot-2.png\"\n  alt=\"@pheralb/code-blocks screenshot\"\n/\u003e\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Next.js Badge](https://img.shields.io/badge/Docs-000?logo=nextdotjs\u0026logoColor=fff\u0026style=flat)\n![Tailwind CSS Badge](https://img.shields.io/badge/Styles-06B6D4?logo=tailwindcss\u0026logoColor=fff\u0026style=flat)\n![React Badge](https://img.shields.io/badge/Components-61DAFB?logo=react\u0026logoColor=000\u0026style=flat)\n![TypeScript Badge](https://img.shields.io/badge/Utilities-3178C6?logo=typescript\u0026logoColor=fff\u0026style=flat)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fpheralb%2Fcode-blocks%2Fbadge%3Fref%3Dmain\u0026style=flat)](https://actions-badge.atrox.dev/pheralb/code-blocks/goto?ref=main)\n![GitHub stars](https://img.shields.io/github/stars/pheralb/code-blocks)\n![GitHub issues](https://img.shields.io/github/issues/pheralb/code-blocks)\n\n\u003c/div\u003e\n\n## Features\n\n- 📋 **Copy-Paste**: Copy code with a single click, it's 100% yours.\n- 🎨 **Customizable**: Styled with Tailwind CSS, easily customize it to fit your design.\n- 📦 **Components \u0026 Blocks**: Basic structure and blocks for building your own code-block UI.\n- 🖌️ **[Shiki](https://github.com/shikijs/shiki) \u0026 [Sugar-High](https://github.com/huozhi/sugar-high/)**: Choose your syntax highlighter.\n- ⚙️ [**shadcn/ui**](https://ui.shadcn.com) compatible: Add components and utilities using shadcn/ui CLI.\n\n## Contributing\n\nWe welcome contributions to enhance the functionality, design, and documentation of this project. To contribute, please read our [Contributing Guide](https://github.com/pheralb/code-blocks/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://github.com/pheralb/code-blocks/blob/main/CODE_OF_CONDUCT.md).\n\n### Development Setup\n\n1. Clone the repository:\n\n```bash\ngit clone git@github.com:pheralb/code-blocks.git\ncd code-blocks\n```\n\n2. Install dependencies:\n\n```bash\n# Install pnpm globally if you haven't already:\nnpm i pnpm@latest -g\n\n# Install project dependencies:\npnpm install\n```\n\n3. Start the development server:\n\n```bash\npnpm dev\n```\n\n### Commands\n\n- `pnpm dev`: Start the development server for the docs website.\n- `pnpm website:build`: Build the docs website for production.\n- `pnpm website:build-cc`: Build content using content-collections CLI.\n- `pnpm website:build-registry`: Build the component and block registry.\n\n### Contributors\n\n\u003ca href=\"https://github.com/pheralb/code-blocks/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=pheralb/code-blocks\" /\u003e\n\u003c/a\u003e\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/pheralb/code-blocks/blob/main/LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheralb%2Fcode-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpheralb%2Fcode-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheralb%2Fcode-blocks/lists"}