GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing f-droid.org — All our APIs | F-Droid - Free and Open Source Android App Repository For F-Droid to be trusted, we need to be transparent. Making it easy for people to pay attention to all the processes and systems we use helps us stay secure. These are the APIs with key information about the publishing process. Active packagesThere is a per-app API accessible via Note: This API is intended for use in the pure display of information, e.g. showing badges. It is not intended to be used for fetching or verifying apps. For any use cases that have potential security concerns, we recommend using the signed index files and verifying the signature based on the pinned repo signer before using that information for signing. Example request: Example response: This API is already used by shields.io project to provide F-Droid badges, like this. The repo indexF-Droid is built around a signed index of all the apps and packages that are available. This is a JSON file, though more of an index than an API since all the information is distributed via a single file.
As of index-v2, there is support for files that only contain the changes, known as “diff” files. There is also a separate entry point, which is signed by a JAR and a GPG signature and lists the available index and diff files.
The v1 repo index formats come in the form of a signed JAR file that
contains index-v1.json. The best method is to verify the JAR signature, then
extract index-v1.json if it validates. The fdroidserver Python library
provides There are also GPG signatures for verifying the JSON files:
Signer indexThere is a simple index file that lists the SHA-256 fingerprint of each signer used by f-droid.org to sign each package. This is the source of truth for determining the official f-droid.org signer for any given APK. In order to know whether a given APK signed by f-droid.org, check the signer index: https://f-droid.org/repo/signer-index.json It is also signed via the signatures on entry.json, or direct JAR and GPG signatures. App Search APIWe’ve got a basic web API for performing a full-text searches on the f-droid.org repository. App build metadataEvery app in f-droid.org has a corresponding
build metadata file in
fdroiddata. In order to encourage
more creative reuse, we keep our data in standard formats in easy to find
places. The whole app collection is in YAML format. The file can be directly accessed
by Application ID using the GitLab Raw URL
f-droid.org build server statusThe four main steps of the build cycle are: checkupdates, build, update, and deploy. There is a JSON file for each one of those with status information. It is posted once that step completes running. The step that is currently running is posted to running.
Two examples of how these JSON APIs can be used are the F-Droid Monitor website and the F-Droid Build Status app. Mirror and repo monitoringmirror-monitor and repo-monitor are automated jobs that check various stats about f-droid.org mirrors and third party repos respectively. They each provide a single, large JSON log of all the times the checks where run:
The list of official mirrors is in each index file. It is also available directly via a GitLab raw URL: https://gitlab.com/fdroid/fdroiddata/-/raw/master/config/mirrors.yml Reproducible buildsverification.f-droid.org is a rebuilder that rebuilds the official releases from f-droid.org, then checks to see if they were reproducibly built. There is an entry point for each package based on the package name: https://verification.f-droid.org/org.fdroid.fdroid.json Then there is a JSON file per APK that has been checked, where the filename
follows the pattern There is also a list of all the successfully verified APKs: https://verification.f-droid.org/verified.json Binary transparency logsBinary transparency is the idea that all released packages should be logged as they are published. This provides a way to check if a given binary was produced by the publisher, or came from somewhere else, e.g. as an exploit. fdroidserver has built in tools for managing a binary transparency log of the index files as part of the release process. This has been enabled on f-droid.org: https://gitlab.com/fdroid/f-droid.org-transparency-log Since Gradle and the Google Android Tools team does not publish one, F-Droid has done it. The basic API is a JSON file with a listing of all URLs known to have be published. Each URL then contains a list of SHA-256 checksums that the log process has seen. There are also other files tracked, based on what the publisher provides.
issuebotissuebot runs on app merge requests and requests for packaging (RFP) to provide information to reviewers about the app. Much of that information is also published in JSON format. Each report is made of data from modules that run on a specific app. There are two entry points:
MetricsUsage data is gathered from various F-Droid websites and published with no personally identifiable information (PII). It is published with one JSON file per-week, with a JSON index file per website. For example, here is a week of search metrics: https://fdroid.gitlab.io/metrics/search.f-droid.org/2021-01-18.json Though not really an API, some of the mirrors do provide some metrics: It is important to understand what this data is before trying to generate metrics from it. F-Droid does not track users, so it is not currently possible to accurately report how many people use it. It is possible to make estimates and to find certain trends in the data. Throwing this data into standard web metrics systems will give you pretty pictures, but those results will be far from the truth. Much of the data is missing due to privacy concerns, and the rest is quite uneven. Git statsEach git repo has lots of interesting metadata. The GitStats project generates nice charts from that data. This is not quite an API, but it is related since it is using public project data. Pre-generated pages for each of the central git repos are visible here: https://fdroid.gitlab.io/. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |