Loops House




FOC-Mock-Proxy
A local dev proxy for Filecoin Onchain Cloud that lets you toggle instant mocks and deliberate chaos, so you can build fast and ship apps that survive real network failures.

FilecoinTLDR Builder Challenge - Cycle 3
Links
Team
1 member- NAOwner
Nathaniel Beshane
Overview
What we built: FOC-Mock-Proxy is a lightweight local development proxy for developers building on Filecoin Onchain Cloud. It sits between your app and the network, and lets you flip instantly, with no restart between three modes:
Live - transparent passthrough to a real REST-shaped backend, for normal development Mock - instantly returns realistic canned responses instead of hitting the network, so you can build and test your UI at full speed without waiting on real storage or blockchain calls Chaos -deliberately injects delays and failures (timeouts, 500s, 429s) into responses, so you can see — on demand, on your own machine whether your app gracefully handles a slow or broken network before your users ever do
Mode switching happens live via a simple API, and a bundled demo web app lets you trigger requests and watch the behavior change in real time, right alongside the proxy's own logs.
Who it's for: Developers building applications on Filecoin Onchain Cloud or any decentralized storage/blockchain network — who are tired of the normal dev loop being throttled by real network latency, and who want an easy way to deliberately test how their app behaves when things go wrong, instead of finding out in production.
What it does: It removes two common pain points at once: slow iteration (by mocking responses instantly) and untested failure handling (by making failure injectable and repeatable on demand). Both are things every team eventually needs, but almost nobody builds tooling for early FOC-Mock-Proxy makes them a one-line config change away.