{"id":16994744,"url":"https://github.com/znerol/grafana-pdf-proxy","last_synced_at":"2026-04-10T22:34:04.733Z","repository":{"id":136255707,"uuid":"420155280","full_name":"znerol/grafana-pdf-proxy","owner":"znerol","description":"Connects to a Grafana instance and renders a PDF for the given URL","archived":false,"fork":false,"pushed_at":"2021-12-12T11:11:58.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-27T06:28:22.395Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znerol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2021-10-22T15:44:43.000Z","updated_at":"2022-06-22T11:22:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b35dd10-6973-4876-a7ec-40949814ba29","html_url":"https://github.com/znerol/grafana-pdf-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fgrafana-pdf-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fgrafana-pdf-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fgrafana-pdf-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fgrafana-pdf-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/grafana-pdf-proxy/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913005,"owners_count":20530769,"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-10-14T03:46:25.634Z","updated_at":"2026-04-10T22:33:59.686Z","avatar_url":"https://github.com/znerol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Grafana PDF Proxy\n=================\n\nConnects to a Grafana instance and renders a PDF for the given URL.\n\nThis work is based on [a gist by svet-b](https://gist.github.com/svet-b/1ad0656cd3ce0e1a633e16eb20f66425).\n\nInstallation\n------------\n\n```\nnpm install\n```\n\nOptionally skip installation of `chromium` by puppeteer.\n\n```\nPUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install\n```\n\nEnvironment\n-----------\n\n`GRAFANA_PDF_BIND_PORT`: Specify the port on which the proxy is listening. No\ndefault, the operation system will pick a random port if this variable is not\ndefined.\n\n`GRAFANA_PDF_BIND_HOST`: Specify the IP address on which the proxy is\nlistening. Defaults to `::1`. Use `::` in order to expose the proxy to the\nworld.\n\n`GRAFANA_PDF_BACKEND_URL`: URL prefix of grafana. Trailing slash should be\nomitted. Defaults to `http://localhost:3000`.\n\n`GRAFANA_PDF_BACKEND_USER`: Name of a user with `view` privileges to the\ndesired dashboard. No authentication is attempted if omitted.\n\n`GRAFANA_PDF_BACKEND_PASS`: Password of the user. No authentication is\nattempted if omitted.\n\n`GRAFANA_PDF_CHROME_PATH`: Path to a chrome/chromium executable. Puppeteer uses\na builtin chrome if omitted.\n\nRunning\n-------\n\n```\nnode index.js\n```\n\nTest using curl (assuming the server is running on localhost, on port 38269,\nand the path to the dashboard is `/d/GN7k2MI3D/nodes?orgId=1`):\n\n```\ncurl -o /tmp/test.pdf 'http://[::1]:38269/d/GN7k2MI3D/nodes?orgId=1'\n```\n\nLicense\n-------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fgrafana-pdf-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fgrafana-pdf-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fgrafana-pdf-proxy/lists"}