#github-api #api-server #mocking #layer #object

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

#429 in HTTP server

Download history 99/week @ 2024-09-18 350/week @ 2024-09-25 128/week @ 2024-10-02 381/week @ 2024-10-09 17/week @ 2024-10-16 2/week @ 2024-10-30 3/week @ 2024-11-06 1/week @ 2024-11-13 6/week @ 2024-12-04 6/week @ 2024-12-11 70/week @ 2025-01-01

81 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

~15–27MB
~395K SLoC