mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-04-18 03:00:22 -04:00
Fetch data in batches and execute jobs concurrently. This reduces the time estimate from ~4 hours to under 1 hour on my machine. We could probably make this even faster by implementing a `getAllMessages` endpoint on the hubs.
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!