#github #github-api

fakehub-server

GitHub API Server Stub. Fully functional fake version of a GitHub API that supports all the features and works locally, with no connection to GitHub at all.

8 releases

0.0.10 Oct 9, 2024
0.0.9 Oct 9, 2024
0.0.7 Sep 25, 2024

#14 in #github-api

Download history 444/week @ 2024-09-23 7/week @ 2024-09-30 484/week @ 2024-10-07

935 downloads per month
Used in fakehub

MIT license

76KB
1K SLoC

Fakehub Server

Server is a fully runnable instance of fakehub, served through HTTP. Server consists of three main layers:

  • Web layer backed by Axum.
  • Object layer, where we operate on mock versions of GitHub objects, generated by github-mirror.
  • Storage layer, where we store and query objects as in memory data structures, like arrays, and hashmaps.

To test it, run this (make sure you are in /server directory):

cargo test

lib.rs:

Fakehub server and storage.

Dependencies

~14–26MB
~396K SLoC