Install the CLI. Point it at a running Synapse. Inspect rules, evaluate requests, manage blocks — from the terminal or a TypeScript program. Four steps from npm install to first managed block.
$ npm install -g \ @atlascrew/synapse-client
$ export SYNAPSE_URL=\ https://synapse.example.com
$ synapse health
{"ok":true}
$ synapse status --json $ synapse evaluate GET /api/
synapse health synapse status synapse metrics # prom
synapse entities synapse blocks synapse release <ip> synapse release-all
synapse rules synapse rule-add <json> <ttl> synapse rule-remove <id> synapse reload
synapse evaluate GET \ "/api/users?id=1" # dry-run against loaded rules
synapse config synapse config-set \ risk_decay=15
--json # JSON output --debug # verbose --timeout # ms --url # override
// install: npm install @atlascrew/synapse-api import { SynapseClient } from '@atlascrew/synapse-api'; const client = new SynapseClient({ baseUrl: process.env.SYNAPSE_URL!, timeout: 30_000, }); // health & status await client.health(); const status = await client.getStatus(); console.log(status.totalRequests, status.blockedRequests); // manage rules at runtime await client.addRule({ id: 9001, matches: [/* ... */] }, { ttlSec: 3600 }); // dry-run a request against the loaded rule set const verdict = await client.evaluate('GET', '/api/users?id=1'); if (verdict.blocked) console.log('would block:', verdict.matched_rule);