mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-04-18 03:00:22 -04: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.
23 lines
465 B
JSON
23 lines
465 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",
|
|
"kysely": "^0.24.2",
|
|
"kysely-postgres-js": "^1.1.1",
|
|
"pino": "^8.12.1",
|
|
"postgres": "^3.3.4",
|
|
"tiny-typed-emitter": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^3.12.5",
|
|
"typescript": "^5.0.0"
|
|
}
|
|
}
|