{"id":20127592,"url":"https://github.com/cube-js/cube-playground-templates","last_synced_at":"2026-03-06T16:30:51.090Z","repository":{"id":46602193,"uuid":"278714462","full_name":"cube-js/cube-playground-templates","owner":"cube-js","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-06T12:22:52.000Z","size":470,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-08-20T16:02:21.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cube-js.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":"2020-07-10T19:14:41.000Z","updated_at":"2024-12-18T11:58:17.000Z","dependencies_parsed_at":"2023-01-23T08:00:22.436Z","dependency_job_id":null,"html_url":"https://github.com/cube-js/cube-playground-templates","commit_stats":null,"previous_names":["cube-js/cubejs-playground-templates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cube-js/cube-playground-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fcube-playground-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fcube-playground-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fcube-playground-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fcube-playground-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cube-js","download_url":"https://codeload.github.com/cube-js/cube-playground-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fcube-playground-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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-13T20:22:37.087Z","updated_at":"2026-03-06T16:30:51.054Z","avatar_url":"https://github.com/cube-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://cube.dev\"\u003e\u003cimg src=\"https://i.imgur.com/zYHXm4o.png\" alt=\"Cube.js\" width=\"300px\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n[Website](https://cube.dev) • [Docs](https://cube.dev/docs) • [Examples](#examples) • [Blog](https://cube.dev/blog) • [Slack](https://slack.cube.dev) • [Twitter](https://twitter.com/thecubejs)\n\n# Cube.js Playground Templates\n\nThis repository contains the templates used by the Cube Playground to scaffold various Dashboard Apps.\n\n## Contributing\n\nYou can contribute to this repository by creating new templates or extending the existing ones.\n\n### Structure overview\n\nTo better understand the structure, you can look at the `manifest.json` file containing the information about templates and packages. It also describes the way these components interact with each other.\n\n### Packages\n\nEach package contains the information on where it can be installed to (`installsTo`) and what it can receive (`receives`).\n\nFor example, a root package may look like this:\n\n```json\n{\n  \"name\": \"create-react-app\",\n  \"version\": \"0.0.1\",\n  \"installsTo\": null,\n  \"receives\": {\n    \"react-ui-framework\": \"0.0.1\"\n  }\n}\n```\n\nThe `installsTo` and `receives` fields represent interfaces. That means that the concrete package implementation (e.g., `create-react-app`) can receive any package that can be installed to the `react-ui-framework` interface.\n\nFor example:\n\n```json\n{\n  \"name\": \"react-antd-dynamic\",\n  \"version\": \"0.0.1\",\n  \"installsTo\": {\n    \"react-ui-framework\": \"0.0.1\"\n  },\n  \"receives\": {}\n}\n```\n\n### Templates\n\nEach template contains the comprehensive information required for template installation. The following fields `name`, `description` and `coverUrl` will be used to display the template in the Cube Playground on the [Dashboard App](https://cube.dev/docs/dashboard-app) page.\n\nThe `templatePackages` field describes all the packages the template consists of. During template installation, all packages defined in `templatePackages` will be downloaded and resolved accordingly.\n\n```json\n{\n  \"name\": \"Dynamic Dashboard with React, AntD, and Recharts\",\n  \"description\": \"Use this template to create a dynamic dashboard application with React, AntD, and Chart.js. It comes with a dynamic query builder and Apollo GraphQL client. Use it when you want to allow users to edit dashboards.\",\n  \"coverUrl\": \"https://cube.dev/downloads/template-react-dashboard.png\",\n  \"templatePackages\": [\n    \"create-react-app\",\n    \"react-antd-dynamic\",\n    \"react-credentials\",\n    \"recharts-charts\",\n    \"antd-tables\"\n  ],\n  \"version\": \"0.0.1\"\n}\n```\n\n### Development \u0026 Testing\n\nIn production, the `manifest.json` file, along with all the packages, are fetched from the [https://github.com/cube-js/cubejs-playground-templates]() master branch.\n\nYou can avoid this behavior and make the `server` \"fetch\" those packages from a local folder. To do so, go through the next steps:\n\n1. run the server using the `TEST_TEMPLATES` env variable\n\n```bash\nTEST_TEMPLATES=true yarn start\n```\n\n2. create a `.tmp` folder, where the `cubejs-playground-templates` will be stored\n\n```bash\nmkdir /Users/username/Projects/cubejs-app/node_modules/.tmp\n```\n\n3. create a symlink to the local repository\n\n```bash\nln -s /Users/username/Projects/cubejs-playground-templates /Users/username/Projects/cubejs-app/node_modules/.tmp/cubejs-playground-templates\n```\n\nNow, when you open the templates gallery in the Playground (by default at [http://localhost:4000/#/template-gallery]()), you'll see the templates you're developing locally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Fcube-playground-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcube-js%2Fcube-playground-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Fcube-playground-templates/lists"}