dpsv is a web application that lets you view sources for Debian packages online.
As of now, it supports the main
component of stable, testing,
unstable and experimental.
dpsv is made up of 4 parts:
- updater
- http
- static
- deleter
The updater is a command that will fetch the sources from Debian servers and build up a local database of them.
The http server is made up of 2 parts:
- frontend
- api
The frontend is a very simple controller that returns 2 pages: the search page and the packages page. It is only there to return the HTML.
The API is made up of 2 parts:
- search
- packages
The search API searches through the packages in the local database and returns all the information stored about them, such as version or which distribution they belong to.
The packages API is responsible for downloading the sources, extracting them, and returning the contents of the files/folders.
The static part is mainly 2 scripts executed in the browser. One is handling the search, the other is handling the packages.
The deleter is a command that deletes extracted folders of sources that are older than a certain threshold.
$ npm start # Builds the assets and starts the web server
$ npm run web # Start the web server
$ npm run updater # Run the updater
$ npm run deleter # Run the deleter
$ npm run build # Builds the assets
- Define and implement API caching
- Refactor to be consistent in usage of HTTP status codes
MIT License.