Zebratic
b34c1102d6
feat: integrate Pulse Analytics tracking for APK Forge
...
- Add Pulse Analytics script tag to root layout (data-domain=forge.xmr.network)
- Add server-side tracking events: build_started, build_completed, user_registered
- Add lib/pulse.ts tracking utility (fire-and-forget)
2026-03-20 13:14:50 +00:00
Zebratic
dcdb3069a8
fix: increase build timeouts (120s→300s) and improve error messages
...
- npm install: 120s → 300s (cold cache can be slow)
- expo prebuild: 120s → 300s
- Better error reporting when steps fail
2026-03-17 00:13:26 +00:00
Zebratic
d5ee698555
fix: sync build status from worker to MongoDB on download and list
...
- Download route now checks worker status if DB says queued/building
- Builds list endpoint syncs stale builds with worker on fetch
- Fixes: download button showing but APK 'not downloadable'
- Fixes: builds staying stuck as 'queued' in DB after completion
2026-03-16 22:54:12 +00:00
Zebratic
c76eda9109
fix: hide form answer messages from chat, stream progress during generation
2026-03-16 04:52:55 +00:00
Zebratic
26fefd623a
perf: pre-warm Gradle cache in Docker image
...
Run a dummy build during docker build to download all Gradle/Maven
dependencies. This cuts first user build from ~15 min to ~3-5 min.
Docker image is bigger but builds are dramatically faster.
2026-03-15 17:14:55 +00:00
Zebratic
80f9c9bcdc
feat: APK download progress bar + fix APK/source separation
...
- Download APK shows progress bar with percentage
- APK download no longer silently falls back to source ZIP
- APK button disabled during download with spinner
- Both header and in-chat buttons show progress
2026-03-15 17:05:04 +00:00
Zebratic
d6696bf99f
fix: increase Gradle timeout to 20 min (first build downloads deps)
2026-03-15 16:59:23 +00:00
Zebratic
3a7393bc4c
feat: mobile tabs for Files/Preview + fix header wrapping
...
- Added Chat/Files/Preview tab bar on mobile (md:hidden)
- Files tab shows full file tree and code viewer on mobile
- Preview tab shows phone mockup on mobile
- Header buttons use shorter labels on mobile (nowrap)
- Source and Snapshots buttons hidden on mobile header
- No more line breaks in header on small screens
2026-03-15 16:54:48 +00:00
Zebratic
d68661c809
fix: mobile keyboard handler breaks when page is zoomed in
...
When zoomed (visualViewport.scale > 1), the viewport height shrinks
from zoom, not from keyboard. This caused the page to add phantom
keyboard padding. Now skips keyboard offset when scale > 1.05.
2026-03-15 16:18:32 +00:00
Zebratic
8c6f405888
fix: add maxBuffer to execSync calls to prevent Gradle crash
...
Gradle outputs 10-50MB of text. Default Node.js maxBuffer is 1MB.
Without this, execSync crashes the process instead of throwing.
2026-03-15 16:13:04 +00:00
Zebratic
9c1932be71
security: fix XSS in chat messages + harden system prompt
...
- Escape HTML entities before applying markdown formatting
(dangerouslySetInnerHTML was rendering raw LLM output)
- Add anti-prompt-injection rules to system prompt
- Refuse to reveal system prompt, env vars, or non-app requests
2026-03-15 16:10:42 +00:00
Zebratic
eb403856aa
fix: detect orphaned builds in WebSocket handler
...
When build worker returns 404 for >30s or >10 polls, send failed
status to client instead of polling forever. Also handled in status API.
2026-03-15 15:58:40 +00:00
Zebratic
d3dd51675a
fix: security hardening - stripe webhook verification, remove token logging, sanitize inputs
...
- Implement Stripe webhook signature verification (was accepting unverified payloads)
- Remove password reset token from console.log (security risk)
- Escape regex in admin project search (ReDoS prevention)
- Sanitize user input in LLM suggestion prompt (prompt injection mitigation)
2026-03-15 15:58:40 +00:00
Zebratic
e60a91ec25
docs: replace boilerplate README with proper project documentation
2026-03-15 04:20:35 +00:00
Zebratic
54369206d4
fix: auto-mark orphaned builds as failed after server restart
...
When build worker returns 404 for a build older than 5 minutes,
automatically mark it as failed with a helpful retry message.
2026-03-15 01:58:49 +00:00
Zebratic
1916eb15f5
style: replace emoji checkmarks with polished circle checkmarks
...
- Streaming steps: CheckCircle2 icon from Lucide
- Build history: clean ✓/✗/○ symbols
- Landing page: green circle badges for pricing features
- More professional look for investor demos
2026-03-15 01:43:03 +00:00
Zebratic
e7e437187a
feat: use Claude Opus 4.6 as primary coding model
...
Better code quality for generated apps. Fallback chain:
claude-opus-4-6 → claude-sonnet-4-6 → gpt-4.1-mini → gpt-4o-mini → deepseek-chat → gpt-5-mini
2026-03-15 01:32:38 +00:00
Zebratic
d5b39864af
fix: robust LLM fallback with retries + fix template message not triggering AI
...
- LLM: retry each model up to 2x with backoff on provider_unavailable
- LLM: added claude-sonnet-4-6 and gpt-5-mini to fallback chain
- Templates: pass prompt via query param instead of fire-and-forget fetch
- Project page auto-sends template prompt on load, ensuring streaming works
2026-03-15 01:12:09 +00:00
Zebratic
498d996f60
fix: only install ws package, not all deps in runner stage
2026-03-15 00:33:41 +00:00
Zebratic
80cb8dd802
feat: replace SSE with WebSocket for real-time build progress
...
- Custom server wrapper monkey-patches http.createServer to add WS upgrade
- WebSocket endpoint: /ws/build/:buildId polls build worker every 1s
- Frontend connects via WebSocket with polling fallback
- Smoother progress updates, no Cloudflare SSE buffering issues
2026-03-15 00:17:51 +00:00
Zebratic
81fb6a9a7e
fix: combine Next.js + build worker into single container for Coolify
...
Build worker was a separate docker-compose service that Coolify never ran.
Now uses supervisord to run both processes in one container with Android SDK.
2026-03-14 23:35:48 +00:00
Zebratic
3d54a32260
fix: build SSE fallback polling, show download on refresh, update project name from answers
2026-03-14 20:22:01 +00:00
Zebratic
fe0295c22b
fix: remove expo-font/haptics/linear-gradient plugins that cause prebuild failures
...
These plugins fail during expo prebuild with requirePluginFile errors.
Stripped from template package.json, app.json plugins, and system prompt.
2026-03-14 20:13:38 +00:00
Zebratic
4f4fc442b5
feat: SSE streaming chat with live progress checklist
2026-03-14 19:06:49 +00:00
Zebratic
74a46db4d9
feat: base build template, free plan with usage limits
2026-03-14 18:16:22 +00:00
Zebratic
5b9a1f90f3
fix: patch build.gradle with Compose compiler Kotlin suppression
...
gradle.properties alone wasn't enough - the Compose compiler plugin
needs the suppression passed as a freeCompilerArg. Also added comprehensive
build worker logging.
2026-03-14 18:11:03 +00:00
Zebratic
6726ab87e9
feat: comprehensive build worker logging for debugging
...
Structured logs with timestamps, build IDs, and level tags.
Logs every stage: setup, npm install, prebuild, gradle, completion/failure.
2026-03-14 18:03:59 +00:00
Zebratic
413b9207d4
fix: suppress Kotlin/Compose version compatibility check in Gradle
2026-03-14 18:02:54 +00:00
Zebratic
ca31deca55
fix: set NODE_ENV=production for Gradle build step
2026-03-14 18:01:37 +00:00
Zebratic
8490b6d5e3
feat: replace polling with SSE for real-time build and chat progress
2026-03-14 17:56:19 +00:00
Zebratic
492fadf42c
fix: force compatible Expo 52 deps, better prebuild error handling
...
LLM often generates ancient Expo SDK 45 with React 17. Build worker
now overrides core deps to known-working versions (Expo 52, React 18.3,
RN 0.76). Also catches expo prebuild errors properly.
2026-03-14 17:50:26 +00:00
Zebratic
9f68f2d24c
feat: live progress steps, collapsible form, lightning quick actions
2026-03-14 17:37:53 +00:00
Zebratic
33bac15604
feat: build versioning system and builds history page
2026-03-14 17:15:00 +00:00
Zebratic
d2d2e604cc
feat: inline compile/download APK button, parallel builds, async build polling
2026-03-14 17:10:51 +00:00
Zebratic
73a0e19685
fix: font loading - add display swap, apply font-family directly on body
2026-03-14 16:51:13 +00:00
Zebratic
262e591797
feat: redesign landing page - no mock data, real messaging
...
- Removed fake testimonials and fake showcase apps
- Hero: 'Idea to Android App in Under 5 Minutes'
- Stats bar: <5 min, 0 lines of code, 100% yours
- Updated FAQ to reflect APK builds are working
- Demo preview shows realistic chat flow
- Honest copy throughout - no fake social proof
2026-03-14 16:46:24 +00:00
Zebratic
a88937b9c7
fix: font-sans CSS variable was self-referencing instead of using geist font
2026-03-14 16:40:45 +00:00
Zebratic
a1af26b68f
fix: replace all invalid PNG files in assets, not just missing ones
...
Handles LLM-generated '<binary placeholder>' text in .png files.
Checks all .png files in assets dir for valid PNG header (89504e47).
2026-03-14 16:23:56 +00:00
Zebratic
f9de5aca6f
fix: build worker - valid PNG check, splash config, adaptive icon defaults
...
- Overwrite LLM-generated fake PNG files with valid placeholder PNGs
- Auto-add splash backgroundColor, image, resizeMode if missing
- Auto-add adaptive icon config if missing
- Fixes 'Could not find MIME for Buffer' and 'splashscreen_background not found' errors
2026-03-14 16:18:22 +00:00
Zebratic
eb79d78770
fix: input validation, ZIP folder names, consistent error messages
2026-03-14 15:59:39 +00:00
Zebratic
7364745afb
security: fix NoSQL injection, add auth rate limiting, harden JWT and token generation
2026-03-14 15:57:34 +00:00
Zebratic
13d8f69627
fix: ensure android.package and slug in app.json before expo prebuild
2026-03-14 15:01:42 +00:00
Zebratic
b5a4e99b9e
fix: force file generation after answers, no more follow-up questions
2026-03-14 14:55:29 +00:00
Zebratic
1a06498501
fix: register empty body 500, invalid ObjectId validation, npm --legacy-peer-deps for builds
2026-03-14 14:51:39 +00:00
Zebratic
035b4dd0cd
fix: switch primary model to gpt-4.1-mini, handle temp-sensitive models, better fallbacks
2026-03-14 14:42:46 +00:00
Zebratic
4f79e977ad
debug: log LLM response length
2026-03-14 14:32:42 +00:00
Zebratic
5658be2c2d
fix: revenue display fallback for undefined
2026-03-14 14:24:41 +00:00
Zebratic
f3106de5ac
fix: admin layout auth check, set [email protected] as admin
2026-03-14 14:20:32 +00:00
Zebratic
5ba36245ba
fix: plan fallback for unknown tiers, LLM model retry with fallbacks
...
- checkBuildLimit falls back to starter limits for unknown plan tiers
- LLM calls try primary model, then gpt-4.1-mini, gpt-5-mini, deepseek-chat
- 90s timeout per model attempt
- Fixes 'Cannot read buildsPerMonth' crash for users with legacy plans
2026-03-14 14:14:34 +00:00
Zebratic
cd50d9a226
fix: mobile-first chat UI polish
...
- Questions UI: cards with borders, inline toggles, larger color pickers with ring selection, gradient submit button
- Mobile keyboard: visualViewport API for keyboard-aware input positioning
- Input: sticky bottom, auto-resize textarea, safe-area padding, removed Shift+Enter hint
- Layout: dvh viewport height, sticky header, 90% message width on mobile, overscroll-behavior contain
- Auto-scroll: delayed scroll for questions visibility
- Touch targets: minimum 44px on interactive elements
2026-03-14 14:12:07 +00:00