mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-02-11 13:35:05 -05:00
Provide a working end-to-end example of syncing data from hubs to a Postgres database. This should work with no additional dependencies besides what you install with `yarn install` and Docker.
Examples
A collection of Typescript examples showcasing the things you can do with hub-nodejs. Each example is a self-
contained repository that includes a StackBlitz link to run it in a cloud REPL.
- Generate a chronological feed
- Writing data for a user
- Building casts correctly
- Replicating data into Postgres
Other examples that should be added:
- Subscribe to updates about a user
- Rotating signers without losing messages
Contributions for these examples and more are welcome!