Reputation DAO JS client + CLI wrapper (no dfx runtime)
npm install repdao> š The Ultimate Reputation DAO Platform - Enterprise-grade features, zero-config setup!
Transform your reputation management with AI-powered insights, real-time monitoring, and predictive analytics. What used to require enterprise solutions costing $100k+/year is now available through simple CLI commands.
- š¬ Deep Analytics - Predictive modeling and user behavior analysis
- š§ AI-Powered Insights - Automatic optimization recommendations
- šļø Real-Time Monitoring - 24/7 health tracking with Slack/Discord alerts
- š§ Event Streaming - Live reputation events with webhook integration
- š Batch Operations - CSV processing with atomic transactions
- š¤ Data Export - Complete backup and migration tools
- š§ Interactive Wizards - Zero-config setup in 30 seconds
- š”ļø Bulletproof - Enterprise-grade error handling
---
bash
npm install -g repdao
`$3
`bash
repdao setup # 30-second configuration wizard
`$3
`bash
repdao wizard # Interactive command builder
repdao insights # AI-powered system analysis
repdao monitor # Real-time health monitoring
repdao analyze --days 30 # Predict user behavior
`---
š„ Legendary Commands
$3
`bash
Get AI insights and optimization recommendations
repdao insights Analyze specific user behavior patterns
repdao insights --user Deep user analysis with 30-day predictions
repdao analyze --days 30
`$3
`bash
24/7 health monitoring with alerts
repdao monitor --webhook https://hooks.slack.com/...Advanced health assessment
repdao healthcheck Live event streaming
repdao stream --filter award
`$3
`bash
Batch award from CSV file
repdao batch-award users.csv --atomicExport all canister data
repdao export-data --format csvInteractive setup wizard
repdao setupCommand builder wizard
repdao wizard
`$3
`bash
Award points with reason
repdao awardRep 100 --reason "Great work!"Check user balance
repdao getBalance View leaderboard
repdao leaderboard 10 0Check system health
repdao health
`---
š¬ Advanced Analytics
$3
`typescript
import { predictDecay, analyzeUserComplete } from 'repdao/analytics';// Predict user balance in 30 days
const prediction = await predictDecay(canisterId, userPrincipal, 30, opts);
console.log(
Current: ${prediction.currentBalance});
console.log(Projected: ${prediction.projectedBalance});// Complete user analysis
const analysis = await analyzeUserComplete(canisterId, userPrincipal, opts);
console.log(
Transactions: ${analysis.transactions.length});
console.log(Awarder Sources: ${analysis.awarderBreakdown.length});
`$3
`typescript
import { generateInsights, prioritizeInsights } from 'repdao/insights';// Get system optimization recommendations
const insights = await generateInsights(canisterId, opts);
const prioritized = prioritizeInsights(insights);
prioritized.forEach(insight => {
console.log(
${insight.title}: ${insight.description});
if (insight.recommendation) {
console.log(š” ${insight.recommendation});
}
});
`---
šļø Real-Time Monitoring
$3
`typescript
import { createMonitor } from 'repdao/monitor';const monitor = createMonitor(canisterId, {
...opts,
webhook: 'https://hooks.slack.com/your-webhook'
});
await monitor.start();
// Monitors: cycles, health score, activity patterns
// Alerts: Slack, Discord, custom webhooks
`$3
`typescript
import { createEventStream } from 'repdao/events';const stream = createEventStream(canisterId, opts);
stream.onEvent((event) => {
console.log(
${event.type}: ${JSON.stringify(event.data)});
});await stream.start();
// Streams: awards, revokes, decay, top-ups in real-time
`---
š Batch Operations
$3
`bash
Create users.csv:
principal,amount,reason
2vxsx-fae,100,Great contribution
rdmx6-jaaaa,50,Good work
Preview before execution
repdao batch-award users.csv --dry-runExecute with atomic transactions
repdao batch-award users.csv --atomic
`$3
`bash
Export all data as JSON
repdao export-data --output backup.jsonExport transactions as CSV
repdao export-data --format csv --output transactions.csv
`---
š§ Interactive Mode
Never remember command syntax again!
`bash
First-time setup wizard
repdao setupInteractive command builder
repdao wizard
`The wizard walks you through:
- šÆ Award reputation points
- š° Check balances and stats
- š View leaderboards
- š„ Manage trusted awarders
- š„ Health monitoring setup
- āļø System configuration
---
š SDK Usage
$3
`typescript
import { awardRep, getBalance, health } from 'repdao';
import { identityFromPemFile } from 'repdao/identity';const identity = identityFromPemFile('~/.repdao/admin.pem');
const opts = { identity, network: 'ic' as const };
// Award points
await awardRep('canister-id', 'user-principal', 100n, 'Great work!', opts);
// Check balance
const balance = await getBalance('canister-id', 'user-principal', opts);
console.log(
Balance: ${balance} points);// System health
const status = await health('canister-id', opts);
console.log(
Status: ${status.paused ? 'Paused' : 'Active'});
`$3
`typescript
import {
getCanisterMetrics,
assessSystemHealth,
createMonitor,
generateInsights
} from 'repdao/analytics';// Comprehensive metrics
const metrics = await getCanisterMetrics('canister-id', opts);
console.log(
Health Score: ${metrics.health.score}/100);// AI insights
const insights = await generateInsights('canister-id', opts);
insights.forEach(insight => {
console.log(
š” ${insight.title}: ${insight.description});
});// Real-time monitoring
const monitor = createMonitor('canister-id', opts);
await monitor.start();
`---
āļø Configuration
$3
`bash
Setup saves your preferences
repdao setupCreates ~/.repdao/config.json:
{
"network": "ic",
"canisterId": "your-default-canister-id"
}Now commands work without repetition:
repdao health # Uses default canister
repdao insights # Uses default canister
`$3
`bash
export REPDAO_NETWORK=ic
export REPDAO_CANISTER_ID=your-canister-id
export REPDAO_PEM=/path/to/identity.pem
`---
š„ Health Monitoring
$3
`bash
Get detailed health report
repdao healthcheck Output:
šÆ Health Score: 95/100
š Status: HEALTHY
#
š Metrics:
Cycles: 5.2T
Users: 1,234
Transactions: 45,678
Version: 1.0.1
`$3
`bash
Monitor with Slack alerts
repdao monitor --webhook https://hooks.slack.com/...Monitors and alerts on:
- Low cycles balance
- Performance issues
- Unusual activity patterns
- Health score changes
`---
šÆ Identity Management
`bash
Create new identity
repdao id:new adminList all identities
repdao id:listSwitch identity
repdao id:use adminImport from file
repdao id:import partner ./partner.pemSync with dfx
repdao id:syncShow current principal
repdao id:whoami
`---
š Examples
Check out
/examples/ for complete working examples:
- basic-usage.js - Simple SDK operations
- batch-operations.js - Advanced batch processing
- legendary-features.js - Complete feature showcase---
š What Makes This Legendary
This isn't just another CLI tool - it's a complete reputation management platform that:
ā
Saves 40+ hours/month of manual monitoring
ā
Prevents system failures through predictive alerts
ā
Reduces onboarding from days to minutes
ā
Provides enterprise insights without the enterprise cost
Features that used to require:
- Dedicated data science team ā AI-powered insights
- Custom monitoring infrastructure ā Real-time alerts
- Manual batch processing ā CSV automation
- Complex setup procedures ā 30-second wizard
Now available through simple commands like
repdao insights and repdao monitor.---
š Support
- š Documentation: This README +
repdao --help
- š§ Interactive Help: repdao wizard`---
MIT Ā© Reputation DAO Contributors
---
Made with ā¤ļø for the Internet Computer community
Transform your reputation management from basic to legendary in 30 seconds.