Guides

Reliability & simulation

Beyond security, Riscly scores the reliability of your architecture and can simulate failures to estimate business impact before they happen in production.

Reliability analysis

Send an architecture graph to get a reliability score, weighted findings (single points of failure, missing redundancy, no backups, etc.) and prioritized recommendations with an estimated risk reduction.

const report = await riscly("/analyze/reliability", {
  method: "POST",
  body: JSON.stringify({ graph }),
}).then((r) => r.json());

console.log(report.score);
for (const r of report.recommendations) {
  console.log(r.priority, r.title, `-${r.riskReductionPct}% risk`);
}

Business context

Provide revenue and usage so impact is expressed in money, not abstractions. This sharpens both the security report and simulations.

await riscly(`/projects/${projectId}/business`, {
  method: "PUT",
  body: JSON.stringify({
    monthlyRevenue: 120000,
    activeUsers: 8000,
    currency: "EUR",
  }),
});

Auto-fill from Stripe

If Stripe is connected, fetch a live MRR / active-user suggestion from /projects/{id}/business/stripe-suggestion and pre-fill the form.

Failure simulation

Simulate an outage of a component or dependency over a time window to estimate downtime and revenue impact.

const result = await riscly("/analyze/simulate", {
  method: "POST",
  body: JSON.stringify({
    graph,
    type: "node-outage",
    params: { nodeId: "db-primary" },
    durationHours: 2,
  }),
}).then((r) => r.json());

AI failure prediction

For a scanned project, get model-driven predictions of likely future failures (the model tier depends on your plan):

curl -X POST \
  https://api.riscly.com/api/projects/PROJECT_ID/scans/predict \
  -H "Authorization: Bearer $RISCLY_TOKEN" \
  -H "x-org-id: $RISCLY_ORG_ID"