Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements Replit integration reliability patterns: circuit breakers, idempotency, retries, fallbacks, and bulkheads.
91% 95%+5 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
3 of 3 safety checks passed
17 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Production-grade reliability patterns for Replit integrations.
import CircuitBreaker from 'opossum';
const replitBreaker = new CircuitBreaker(
async (operation: () => Promise<any>) => operation(),
{
timeout: 30000,
errorThresholdPercentage: 50,
resetTimeout: 30000,
volumeThreshold: 10,
}
);
// Events
replitBreaker.on('open', () => {
console.warn('Replit circuit OPEN - requests failing fast');
alertOps('Replit circuit breaker opened');
});
replitBreaker.on('halfOpen', () => {
console.info('Replit circuit HALF-OPEN - testing recovery');
});
replitBreaker.on('close', () => {
console.info('Replit circuit CLOSED - normal operation');
});
Next to this one in the catalogue, plus more from the same author.