https://github.com/capjamesg/mediawiki-sparkline-generator
Create a sparkline showing your MediaWiki contributions.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.7%) to scientific vocabulary
Keywords
Repository
Create a sparkline showing your MediaWiki contributions.
Basic Info
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
MediaWiki Sparkline Generator
Create a sparkline to visualise your MediaWiki contributions.
Screenshot

How it Works
This project is a web server that:
- Retrieves your MediaWiki contributions from the API of your MediaWiki instance.
- Plots your contributions on a timeline over the last 90 days.
- Renders an SVG file with a sparkline. a. The line chart sparkline was made by kryogenix.org (used with permission). b. The bar chart sparkline was made by me.
Using the Service
A hosted version of the sparkline service is available at sparkline.jamesg.blog.
The root endpoint for the service is:
https://sparkline.jamesg.blog
The following query string parameters are required:
api_url: The root URL for your MediaWiki API.username: Your MediaWiki username.
The following values are optional:
days: Number of days in history for which you want to retrieve stats. Min 1. Max 120.only_image: By default, the API returns a text page with some meta information and the sparkline embedded. Specify anonly_imagevalue to retrieve only an image.is_bar: Return a bar chart. This option is experimental.
Please note the username attribute is case sensitive.
Here is an example query to the endpoint:
https://sparkline.jamesg.blog/?username=Jamesg.blog&api_url=https://indieweb.org/wiki/api.php&only_image=true
This query returns a line sparkline graph my IndieWeb wiki contributions. The result is an SVG file.
Getting Started
First, install the required dependencies for this project. You can do this using the following command:
bundle install
Next, run the sparkline server:
ruby sparkline.rb
Language
This project is built in Ruby.
License
This project is licensed under an MIT 0 license.
Acknowledgements
Thank you to Stuart Langridge for allowing me to use his simple SVG sparkline file for the line graph chart.
Author
- capjamesg
Owner
- Name: James
- Login: capjamesg
- Kind: user
- Location: Scotland
- Company: @Roboflow
- Website: jamesg.blog
- Repositories: 320
- Profile: https://github.com/capjamesg
from words, wonder.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0