Status: FULLY OPERATIONAL
Date: January 22, 2026
API URL: https://admension-api.admension.workers.dev
- ✅ Installed wrangler CLI v3.22.0 (Node 18 compatible)
- ✅ Authenticated with Cloudflare (workaround for TLS cert issue)
- ✅ Created KV namespace:
cad2d001ea9a42009b58cc57c9911f35 - ✅ Configured wrangler.toml with KV binding
- ✅ Deployed worker to:
admension-api.admension.workers.dev - ✅ Health check passing:
{"status":"ok","timestamp":...}
- ✅ Added API client configuration to
index.html - ✅ Added API client configuration to
interstitial.html - ✅ Updated link creation to use API (with localStorage fallback)
- ✅ Updated wallet management to use API
- ✅ Interstitial now fetches links from API
- ✅ Pageview tracking via API
Files Modified:
index.html- API client integration, link creation using APIinterstitial.html- API client integration, link fetching using APIwrangler.toml- KV namespace ID configured.gitignore- Added .DS_Store
Commits:
- Commit:
6f5b3b8- "Integrate Cloudflare Workers API for global link sharing" - Pushed to GitHub:
GareBear99/ADMENSION
- ✅ API health check: PASSING
- ✅ Link creation via API: SUCCESS
- ✅ Link retrieval via API: SUCCESS
- ✅ Test link code:
A4AGRZ(working) - ✅ Pageview tracking: WORKING
- Links only worked in creator's browser
- Could not share links with others
- No cross-device functionality
- Limited to local storage capacity
- ✅ Links work globally across all devices/browsers
- ✅ Full link shortener functionality
- ✅ Automatic 90-day expiration with activity refresh
- ✅ Traffic tracking per link
- ✅ Falls back to localStorage if API is offline
- ✅ Free tier supports 100K requests/day
GET https://admension-api.admension.workers.dev/api/healthResponse: {"status":"ok","timestamp":1769056649322}
POST https://admension-api.admension.workers.dev/api/links
Content-Type: application/json
{
"linkName": "My Link",
"destUrl": "https://example.com",
"message": "Optional custom message",
"chain": "ethereum",
"addr": "0x..."
}Response:
{
"success": true,
"code": "ABC123",
"shortLink": "interstitial.html?code=ABC123",
"fullLink": "interstitial.html?code=ABC123&adm=ABC123"
}GET https://admension-api.admension.workers.dev/api/links/{CODE}Response:
{
"success": true,
"data": {
"code": "ABC123",
"linkName": "My Link",
"destUrl": "https://example.com",
"message": "Optional custom message",
"chain": "ethereum",
"addr": "0x...",
"created": 1769056860105,
"lastPageview": 1769056869798,
"totalPageviews": 1
}
}PUT https://admension-api.admension.workers.dev/api/links/{CODE}
Content-Type: application/json
{
"addr": "0x...",
"chain": "polygon"
}POST https://admension-api.admension.workers.dev/api/links/{CODE}/viewCloudflare Workers Free Tier:
- ✅ 100,000 API requests/day
- ✅ 1 GB KV storage
- ✅ Unlimited KV read operations
- ✅ 1,000 KV write operations/day
Capacity:
- Create 1,000 links/day
- 100K link views/day
- Enough for most use cases
Rate Limits (per IP):
- 10 requests/min
- 100 requests/hour
- 500 requests/day
- Visit: https://garebear99.github.io/ADMENSION/
- Go to "Create" page
- Fill in:
- Link name
- Destination URL
- Custom message (optional)
- Wallet address (optional)
- Click "Generate Short Link"
- Link is created via API and can be shared globally!
Short link format:
https://garebear99.github.io/ADMENSION/interstitial.html?code=ABC123
Anyone clicking this link will:
- See the 3-step interstitial flow
- View your custom message
- Be redirected to your destination URL
- Pageviews are tracked automatically
- Go to "Manage" page
- See all your links (cached in localStorage)
- Update wallet address for any link
- Changes sync via API
- Automatically falls back to localStorage if API is offline
- Handles timeouts (10 second default)
- Caches API responses in localStorage
- Graceful error handling
- User creates link → API stores in KV → localStorage cache updated
- Visitor clicks link → API fetches from KV → Interstitial displays
- Visitor completes flow → API tracks pageview → localStorage updated
If API is unavailable:
- Link creation saves to localStorage only (works in same browser)
- Warning shown: "
⚠️ Link created locally (API offline)" - When API reconnects, next API call will work normally
Before considering complete:
- Cloudflare Worker deployed
- KV namespace created and configured
- API health check passing
- Frontend can create links via API
- Frontend can fetch links via API
- Interstitial works with API-created links
- Pageview tracking working
- Wallet updates sync via API
- Offline fallback working
- Changes committed and pushed to GitHub
- GitHub Pages will auto-deploy updated frontend
The changes are already pushed and will be live at:
https://garebear99.github.io/ADMENSION/
GitHub Pages will automatically deploy the updated index.html and interstitial.html within 1-2 minutes.
- Wait for GitHub Pages deployment (check: https://github.com/GareBear99/ADMENSION/deployments)
- Visit the live site
- Create a test link
- Open in incognito/different browser → Should work!
- Check browser console for "[ADMENSION] API Client initialized"
- API Usage: https://dash.cloudflare.com → Workers & Pages → admension-api
- KV Storage: https://dash.cloudflare.com → Workers & Pages → KV → ADMENSION_LINKS
- Metrics: Requests/min, success rate, errors, CPU time
- Wait for GitHub Pages deployment to complete
- Hard refresh the page (Cmd+Shift+R / Ctrl+Shift+R)
- Check that api-client.js is loaded in Network tab
- Check that link was created after API deployment
- Old links (created before API) only work in creator's browser
- Create a new test link to verify API is working
- Worker includes CORS headers by default
- Should not occur, but if it does, check worker.js deployment
- Free tier has 10ms CPU limit per request
- KV reads are usually <5ms
- Check Cloudflare status page: https://www.cloudflarestatus.com/
ADMENSION is now a fully functional link shortener!
✅ Links work globally across all devices
✅ API deployed and operational
✅ Frontend integrated with API
✅ Offline fallback working
✅ Free tier capacity: 100K requests/day
✅ Ready for production use
Test Link:
Code: A4AGRZ
URL: https://garebear99.github.io/ADMENSION/interstitial.html?code=A4AGRZ
API Issues:
- Check Cloudflare Dashboard for errors
- Run
wrangler tailto see real-time logs - Check KV namespace for stored links
Frontend Issues:
- Check browser console for errors
- Verify api-client.js is loaded
- Check Network tab for API requests
Deployment Issues:
- To redeploy worker:
wrangler deploy - To redeploy frontend: Push to GitHub (auto-deploys)
🎊 CONGRATULATIONS! The ADMENSION link shortener is complete and ready to use! 🎊