@krediwall/core
v0.2.2
Published
Core evaluation loop and verdict state machine for the Krediwall Credit-on-UPI fraud firewall.
Maintainers
Readme
@krediwall/core
The evaluation loop and verdict types for Krediwall, an open-source in-process fraud firewall for credit-funded UPI payments.
Zero runtime dependencies. FirewallEngine runs Rules in registration
order, folds their hits into ALLOW/REVIEW/BLOCK, isolates rules that
throw, and exposes audit hooks, metrics counters and
exportState/restoreState for restart warm-up.
import { FirewallEngine } from '@krediwall/core';
const engine = new FirewallEngine(rules, {
onEvaluation: (evaluation) => auditQueue.push(evaluation),
});
const verdict = engine.evaluate(txn); // synchronous, microsecondsDocs: repository README · integration guide
Apache-2.0 — see LICENSE. Copyright 2026 Kapil.
