{"id":18646762,"url":"https://github.com/metabase/metabase-ruby-static-embedding-sample","last_synced_at":"2026-06-25T03:31:35.884Z","repository":{"id":214374546,"uuid":"736364246","full_name":"metabase/metabase-ruby-static-embedding-sample","owner":"metabase","description":"Metabase Static Embedding Sample for Ruby (Sinatra)","archived":false,"fork":false,"pushed_at":"2023-12-29T15:56:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-13T08:04:33.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/metabase.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":"2023-12-27T17:37:03.000Z","updated_at":"2023-12-29T15:43:44.000Z","dependencies_parsed_at":"2023-12-27T18:45:07.230Z","dependency_job_id":"af9a172a-3554-40bc-9493-953bf0a8749a","html_url":"https://github.com/metabase/metabase-ruby-static-embedding-sample","commit_stats":null,"previous_names":["metabase/metabase-ruby-static-embedding-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metabase/metabase-ruby-static-embedding-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-ruby-static-embedding-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-ruby-static-embedding-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-ruby-static-embedding-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-ruby-static-embedding-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metabase","download_url":"https://codeload.github.com/metabase/metabase-ruby-static-embedding-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-ruby-static-embedding-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34758773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-07T06:22:28.904Z","updated_at":"2026-06-25T03:31:35.866Z","avatar_url":"https://github.com/metabase.png","language":"Ruby","funding_links":[],"categories":["Metabase Examples"],"sub_categories":["Official Examples"],"readme":"# Metabase Ruby static embedding sample\n\nThis sample code demonstrates using Metabase static embedding in Ruby using Sinatra.\n\n# Running this sample\n\n## Pre-requisites\n* Have a running instance of Metabase. If you don't have one\n  * [download the free open source version](https://www.metabase.com/start/oss/) or\n  * [sign up for a free trial of Metabase Cloud](https://www.metabase.com/pricing/).\n* A dashboard to embed. If you don't have one, use X-Rays to let Metabase create one for you. Note down the dashboard id.\n\n## Preparing the embed\n1. Sign in to your Metabase instance as an admin. \n2. Go to admin settings and enabling embedding.\n3. Under admin settings/embedding, click on static embedding and copy the embedding secret key.\n\n## Configure the app\n\n1. Paste the secret key into an env var: `$ export METABASE_EMBEDDING_SECRET=\"PASTE_SECRET_HERE\"`\n2. Create an env var pointing to your Metabase site URL, if it's not on http://localhost:3000 `$ export METABASE_SITE_URL=\"http://localhost:4000\"`\n3. Create an env var with the ID of the dashboard to embed: `$ export METABASE_EMBED_DASHBOARD_ID=\"8\"`\n3. Install dependencies: `$ bundle install`\n\n## Embed the dashboard\n1. Go to your dashboard, click on the share/embed button at the top\n2. Click on the \"Publish\" button\n3. Install the dependencies: `$ bundle install`\n4. Start the server: `$ ruby app.rb`\n5. Open the app in your browser at http://localhost:4567\n\n## Reporting issues\n\nPlease report bugs or feature requests as issues in this repository. Please do not report security vulnerabilities on the public GitHub issue tracker. Our Security Policy describes [the procedure](https://github.com/metabase/metabase/security#reporting-a-vulnerability) for disclosing security issues.\n\n## Author\n\n[Metabase](https://metabase.com)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fmetabase-ruby-static-embedding-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetabase%2Fmetabase-ruby-static-embedding-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fmetabase-ruby-static-embedding-sample/lists"}