├── .gitignore ├── LICENSE ├── README.md ├── knexfile.js ├── migrations ├── 20220524_152512_enable_uuid_ossp_ext.js ├── 20220524_153400_create_events_table.js ├── 20220524_221800_add_events_table_indexes.js ├── 20220809_190400_add_replaceable_events_unique_index.js ├── 20220825_204900_add_delegator_to_events_table.js └── 20220827_212200_add_is_deleted_to_events_table.js ├── package.json ├── seeds ├── 0000-events.js └── events.json ├── src ├── @types │ ├── base.ts │ └── event.ts ├── constants │ └── base.ts ├── database │ ├── client.ts │ └── insert.ts ├── index.ts ├── nostr │ ├── event.js │ ├── filter.js │ ├── pool.js │ └── relay.js └── utils │ ├── sleep.ts │ └── transform.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .env 3 | dist 4 | node_modules 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/knexfile.js -------------------------------------------------------------------------------- /migrations/20220524_152512_enable_uuid_ossp_ext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220524_152512_enable_uuid_ossp_ext.js -------------------------------------------------------------------------------- /migrations/20220524_153400_create_events_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220524_153400_create_events_table.js -------------------------------------------------------------------------------- /migrations/20220524_221800_add_events_table_indexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220524_221800_add_events_table_indexes.js -------------------------------------------------------------------------------- /migrations/20220809_190400_add_replaceable_events_unique_index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220809_190400_add_replaceable_events_unique_index.js -------------------------------------------------------------------------------- /migrations/20220825_204900_add_delegator_to_events_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220825_204900_add_delegator_to_events_table.js -------------------------------------------------------------------------------- /migrations/20220827_212200_add_is_deleted_to_events_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/migrations/20220827_212200_add_is_deleted_to_events_table.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /seeds/0000-events.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/seeds/0000-events.js -------------------------------------------------------------------------------- /seeds/events.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/seeds/events.json -------------------------------------------------------------------------------- /src/@types/base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/@types/base.ts -------------------------------------------------------------------------------- /src/@types/event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/@types/event.ts -------------------------------------------------------------------------------- /src/constants/base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/constants/base.ts -------------------------------------------------------------------------------- /src/database/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/database/client.ts -------------------------------------------------------------------------------- /src/database/insert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/database/insert.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/nostr/event.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/nostr/event.js -------------------------------------------------------------------------------- /src/nostr/filter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/nostr/filter.js -------------------------------------------------------------------------------- /src/nostr/pool.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/nostr/pool.js -------------------------------------------------------------------------------- /src/nostr/relay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/nostr/relay.js -------------------------------------------------------------------------------- /src/utils/sleep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/utils/sleep.ts -------------------------------------------------------------------------------- /src/utils/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/src/utils/transform.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenAgentsInc/ndxstr-nodejs/HEAD/yarn.lock --------------------------------------------------------------------------------