Files
hub-monorepo/packages/hub-nodejs/examples/replicate-data-postgres/package.json
Shane da Silva 5fee6b4f25 chore: Optimize replication example (#955)
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.
2023-05-09 22:07:25 -07:00

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"
}
}