-
Notifications
You must be signed in to change notification settings - Fork 1
Internal packages
Shu-Wei Hsu edited this page Jan 6, 2025
·
3 revisions
This page cover the internal packages under /libs/
recnet-api-model
is basically the protocol of how recnet
and recnet-api
communicate. It defines
- The APIs request body, query parameters, and the response type for all available API endpoints in
recnet-api
. - The type of common objects in
recnet
such as "user", "rec", and "article".
This package use zod
to define the types and schemas. This is always the first place to update if you want to create a new recnet-api
API.
The "cutoff" and "time" are the core concept of RecNet. To ensure consistency across recnet
and recnet-api
, we created this package to unify the methods to get next cutoff, latest cutoff, and calculating time.
Just like what we discuss in Authentication Wiki, we have different JWTs such as "Firebase JWT" and "RecNet JWT". This package define these two types of JWTs and is mainly used by recnet-api
to verify/validate JWTs at backend.
See GitHub Actions Wiki.