1.4.2 • Published 2 years ago
zkitter-js v1.4.2
ZkitterJS
Javascript implementation of a standalone Zkitter node
CLI Usage
To install CLI:
npm i -g zkitter-js
To sync:
# either https or wss provider will work
zkitter init -a wss://arb-mainnet.g.alchemy.com/v2/[api-key]
zkitter sync
zkitter timeline --limit=5
CLI options:
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
init [options] initialize zkitter
status display status
timeline [options] display timeline
sync [options] sync with arbitrum and group
fetch [options] fetch historical data (30 days max) from waku
whois <address> sync with arbitrum and group
up start zkitter and subscribe to all global events
write [options] publish a post
list [options] list all groups or users
help [command] display help for command
NPM Usage
import { Zkitter } from 'zkitter-js';
const zkitter = await Zkitter.initialize({
arbitrumHttpProvider: 'https://...',
});
// Sync with arbitrum registrar
await zkitter.syncUsers();
// Sync with zk groups on zkitter
await zkitter.syncGroup();
// Get all historical messages (30 days) from Waku store
await zkitter.queryAll();
// Subscribe to all future messages from everyone
await zkitter.subscribe();
Development
# node v16
npm install
# build a dev cli to build/cli.js
npm run dev
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.0
2 years ago
1.2.9
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago