{"id":24989299,"url":"https://github.com/githubnext/blocks-examples","last_synced_at":"2025-04-12T01:06:12.225Z","repository":{"id":38189647,"uuid":"426677638","full_name":"githubnext/blocks-examples","owner":"githubnext","description":"A set of example custom Blocks.","archived":false,"fork":false,"pushed_at":"2023-10-07T03:17:35.000Z","size":2552,"stargazers_count":93,"open_issues_count":14,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T01:06:06.162Z","etag":null,"topics":["github-blocks"],"latest_commit_sha":null,"homepage":"https://blocks.githubnext.com","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/githubnext.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}},"created_at":"2021-11-10T15:35:04.000Z","updated_at":"2025-03-10T08:10:45.000Z","dependencies_parsed_at":"2023-02-15T07:31:17.924Z","dependency_job_id":null,"html_url":"https://github.com/githubnext/blocks-examples","commit_stats":null,"previous_names":[],"tags_count":202,"template":false,"template_full_name":"githubnext/blocks-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fblocks-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fblocks-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fblocks-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubnext%2Fblocks-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubnext","download_url":"https://codeload.github.com/githubnext/blocks-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501862,"owners_count":21114683,"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":["github-blocks"],"created_at":"2025-02-04T12:56:57.443Z","updated_at":"2025-04-12T01:06:12.200Z","avatar_url":"https://github.com/githubnext.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Blocks Examples\n\nThe [GitHub Blocks](https://github.com/githubnext/blocks) app depends on a set of \"blocks\" that handle how to render files and folders. This repo contains a set of example blocks that can serve as inspiration for you to create your own.\n\n## Example blocks\n\nBlocks come in two types: file blocks and folder blocks.\n\nAll blocks require an object within [`blocks.config.json`](https://github.com/githubnext/blocks-examples/blob/main/blocks.config.json#L32) to describe their intended use. For example:\n\n```json\n{\n  \"type\": \"file\",\n  \"id\": \"css-block\",\n  \"title\": \"Styleguide block\",\n  \"description\": \"View selectors in a css file\",\n  \"sandbox\": false,\n  \"entry\": \"blocks/file-blocks/css.tsx\",\n  \"matches\": [\"*.css\"],\n  \"example_path\": \"https://github.com/githubnext/blocks-tutorial/blob/main/global.css\"\n}\n```\n\n\u003e 👀 Preview these example blocks by going to [`blocks.githubnext.com`](https://blocks.githubnext.com/githubnext/blocks)!\n\n### File blocks\n\n| Block name | Description                  | Supported extensions |\n| ---------- | ---------------------------- | -------------------- |\n| Code       | Simple block for code        | all extensions       |\n| 3D Files   | 3D model block with Three.js | gltf, glb            |\n| Css        | View selectors in a css file | css                  |\n| Excalidraw | A drawing/whiteboard block   | excalidraw           |\n| Flat       | A block for flat data files  | csv, json            |\n| Html       | Render html                  | html                 |\n\n### Folder blocks\n\n| Block name | Description                               |\n| ---------- | ----------------------------------------- |\n| Minimap    | A visualization of your folders and files |\n\n## Create your own custom blocks\n\nFollow the instructions in our [custom blocks template](https://github.com/githubnext/blocks-template) repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubnext%2Fblocks-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubnext%2Fblocks-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubnext%2Fblocks-examples/lists"}