{"id":15630591,"url":"https://github.com/afeld/sparkle","last_synced_at":"2025-03-08T13:33:40.492Z","repository":{"id":20418580,"uuid":"23694975","full_name":"afeld/sparkle","owner":"afeld","description":"API for generating sparklines","archived":false,"fork":false,"pushed_at":"2016-03-17T22:29:07.000Z","size":28,"stargazers_count":4,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-25T04:11:25.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/afeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-05T07:56:29.000Z","updated_at":"2019-08-21T09:01:53.000Z","dependencies_parsed_at":"2022-07-26T06:46:55.079Z","dependency_job_id":null,"html_url":"https://github.com/afeld/sparkle","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/afeld%2Fsparkle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeld%2Fsparkle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeld%2Fsparkle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeld%2Fsparkle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeld","download_url":"https://codeload.github.com/afeld/sparkle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242557637,"owners_count":20149127,"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-03T10:33:30.989Z","updated_at":"2025-03-08T13:33:40.160Z","avatar_url":"https://github.com/afeld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sparkle\n\nAPI for generating [sparklines](https://en.wikipedia.org/wiki/Sparkline) as images.\n\n## Usage\n\nExample:\n\nhttps://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5\n\n![Sparkline Example](https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5)\n\nUse the file extension of your desired file type in the URL (`.png`, `.jpg`, or `.gif`). The following query string parameters are available:\n\nparameter | default | unit | purpose\n--- | --- | --- | ---\n`values` | | | (required) comma-separated list of values to graph\n`background_color` | `FFFFFF` | [color](https://rmagick.github.io/imusage.html#color_names) | background color (hex, `rgb(R,G,B)`, `transparent`, etc.)\n`dot_size` | `4` | pixels | width of the line\n`height` | `30` | pixels | height of image\n`line_color` | `4A8FED` | [color](https://rmagick.github.io/imusage.html#color_names) | color of line\n`step` | `30` | pixels | distance between steps\n`width` | | pixels | fixed width of total graph (overrides step distance)\n\nExample:\n\nhttps://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5\u0026height=150\u0026line_color=F3F\n\n![Sparkline Example](https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5\u0026height=150\u0026line_color=F3F)\n\n## Development\n\nRequires [ImageMagick](http://www.imagemagick.org/) \u003e= 6.4.9.\n\nRequires Ruby \u003e=1.9.1\n```bash\nbundle\nbundle exec shotgun\n```\n\nThen open [http://localhost:9393/api/v1.png?values=1,4,5,3,2,5](http://localhost:9393/api/v1.png?values=1,4,5,3,2,5).\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n## Troubleshooting\n\nFor Ubuntu (and other [Linux variants](http://stackoverflow.com/a/16775397/1476898)), the development packages are required in addition to the binaries for ImageMagick.                                                                                                        \n ```bash                                                                         \n apt-get install libmagickwand-dev imagemagick                                   \n ```                \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeld%2Fsparkle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeld%2Fsparkle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeld%2Fsparkle/lists"}