mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-02-11 21:45:09 -05: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.
26 lines
546 B
JSON
26 lines
546 B
JSON
{
|
|
"name": "example-replicate-data-postgres",
|
|
"private": true,
|
|
"type": "module",
|
|
"version": "0.0.0",
|
|
"main": "index.ts",
|
|
"scripts": {
|
|
"start": "tsx index.ts"
|
|
},
|
|
"dependencies": {
|
|
"@farcaster/hub-nodejs": "^0.7.1",
|
|
"fastq": "^1.15.0",
|
|
"kysely": "^0.24.2",
|
|
"kysely-postgres-js": "^1.1.1",
|
|
"pino": "^8.12.1",
|
|
"pino-pretty": "^10.0.0",
|
|
"postgres": "^3.3.4",
|
|
"pretty-ms": "^8.0.0",
|
|
"tiny-typed-emitter": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^3.12.5",
|
|
"typescript": "^5.0.0"
|
|
}
|
|
}
|