algoflow
the Agent driven deployment #Web3Vercel
The problem algoflow solves
The Problem It Solves
Building and shipping Web3 frontends is still too manual for most teams.
Developers often have to stitch together cloning, building, environment setup, IPFS upload, gateway verification, and deployment tracking across multiple tools.
This project simplifies that process into one deployment workflow.
What You Can Use It For
- Deploy static dApps from a GitHub repository directly to IPFS.
- Handle React and static HTML projects with minimal configuration.
- Stream live deployment logs for faster debugging.
- Track deployment history by project and wallet identity.
- Support webhook-style auto deploys after repo updates.
Why It Is Easier and Safer
- Removes repetitive deployment steps and manual handoffs.
- Reduces build/output misconfiguration with automatic detection and sensible defaults.
- Protects secrets by rejecting non-public environment variable keys for static IPFS output.
- Improves reliability with deployment concurrency limits and cleanup of temp workspaces.
- Produces immutable, shareable IPFS release artifacts with recorded metadata.
Typical Users
- Web3 founders shipping landing pages or lightweight dApps.
- Teams that want Vercel-like deployment flow for IPFS-hosted apps.
- Builders who need wallet-linked deployment auditability and reproducible releases.
Challenges we ran into
1. Monorepo root detection kept picking the wrong folder
At first, deployments failed because the build was running in the repo root instead of the actual frontend directory.
I fixed this by adding smarter root selection: explicit rootDirectory support first, then fallback scoring based on frontend dependencies, React file markers, and folder naming hints.
2. npm install broke on peer dependency conflicts
Some projects failed with ERESOLVE during install, even though the app itself was valid.
I solved this by retrying npm install with --legacy-peer-deps only when a peer conflict is detected, so normal installs stay strict while problematic ones still succeed.
3. Build output assumptions were too rigid
Early on, the pipeline expected one output folder and would fail if frameworks used a different one.
I handled this by supporting configurable outputDirectory and scanning common build outputs (dist, build, out) before failing.
4. Static sites broke on IPFS because of absolute asset URLs
Some HTML sites loaded locally but failed on IPFS because assets used root-absolute paths like /assets/app.js.
I added a rewrite step that converts root-absolute asset paths to relative paths during deployment so the site works from CID-based routes.
5. Risk of leaking secrets into static bundles
Users sometimes provided backend-only env vars during deploy. Exposing those in static output is unsafe.
I introduced a strict allowlist (NEXT_PUBLIC_*, VITE_*, REACT_APP_*, PUBLIC_*) and hard-blocked everything else with a clear error message.
6. Gateway URL reliability after upload
A successful IPFS upload did not always mean the first gateway URL was immediately usable.
I added gateway reachability probing and canonical URL normalization so users get a working, stable link more consistently.
7. Debugging long deploys was painful without live feedback
Silent waits during clone/build/upload made failures hard to diagnose.
I switched to streaming logs over SSE end-to-end, so each stage reports progress and errors in real time.
Tracks Applied (6)
Web3
AI/ML
Open Innovation
Smolify AI track
Smolify AI
Requestly
Requestly
Algorand
Algorand
Technologies used

