{"id":18646765,"url":"https://github.com/metabase/metabase-nodejs-static-embedding-sample","last_synced_at":"2025-11-05T05:30:32.332Z","repository":{"id":214516240,"uuid":"736656590","full_name":"metabase/metabase-nodejs-static-embedding-sample","owner":"metabase","description":"Metabase Static Embedding Sample for Node.js (Express)","archived":false,"fork":false,"pushed_at":"2023-12-29T15:56:07.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-27T12:09:18.021Z","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":"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-28T13:56:01.000Z","updated_at":"2024-06-18T13:58:02.000Z","dependencies_parsed_at":"2023-12-28T17:57:01.777Z","dependency_job_id":"0f588998-d1ad-4539-a8d5-326375997d70","html_url":"https://github.com/metabase/metabase-nodejs-static-embedding-sample","commit_stats":null,"previous_names":["metabase/metabase-nodejs-static-embedding-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-nodejs-static-embedding-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-nodejs-static-embedding-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-nodejs-static-embedding-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-nodejs-static-embedding-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metabase","download_url":"https://codeload.github.com/metabase/metabase-nodejs-static-embedding-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449588,"owners_count":19640535,"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":[],"created_at":"2024-11-07T06:22:29.542Z","updated_at":"2025-11-05T05:30:32.304Z","avatar_url":"https://github.com/metabase.png","language":"JavaScript","funding_links":[],"categories":["Metabase Examples"],"sub_categories":["Official Examples"],"readme":"# Metabase Node.js static embedding sample\n\nThis sample code demonstrates using Metabase static embedding in Node.js using Express.\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: `$ npm install`\n4. Start the server: `$ node index.js`\n5. Open the app in your browser at http://localhost:8080\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-nodejs-static-embedding-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetabase%2Fmetabase-nodejs-static-embedding-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fmetabase-nodejs-static-embedding-sample/lists"}