Idea: f-droid badge

There are many badges available on shields.io. I would like to see the latest published f-droid version of the app in there as a shield.

Possible implementations

  1. the f-droid server has an API which gives information about a build app e.g. as JSON
  2. the website of the app has this information available e.g. with XML idetifiers
  3. the f-droid server or website creates badges itself

Evaluation:

  1. this is the official way to build the badges from shields.io: one json request which can be eveuated
  2. this may be a good alternative if no API is given: something that is embedded in the website like by https://schema.org Currently, we can see this:
    <div class="package-version-header">
        <a name="1.0"></a>
        <a name="1"></a>
        <b>Version 1.0</b> (1) - Added on 2018-08-20
    </div>
    We can transform it to this source code, using the MobileApplication schema
    <div class="package-version-header" itemscope itemtype="https://schema.org/MobileApplication">
        <a name="1.0"></a>
        <a name="1"></a>
        <b>Version <span itemprop="softwareVersion">1.0</span></b> (1) - Added on 2018-08-20
    </div>
    There is more like license, dateCreated, dateModified, datePublished, ... which can be added once someone needs it.
  3. This may not be useful so much in case the badges are generated statically. Almost no app uses them so packaging them is a waste of space. Evaluation: about 385 Bytes/shield x 2000 is about 800kb unneeded svg

What would be the preferred way to go about this? Is solution (1) desirable?

Assignee Loading
Time tracking Loading