Hey r/Devvit! I built Inner Self, a daily dual-self 3D puzzle, and installed test version v0.0.9 in our development subreddit. The app remains PRIVATE (not published), as permitted by the hackathon; the test community itself is now Public. A clean November 27 test post was created through the installed moderator menu, and the BSD-3-Clause source is public. These notes distinguish measured build/upload results and 8 passing local/headless regression checks from native-device/CDN checks still to be completed.
1. Inspect the serialized upload request, not only the server file
Our account checks were valid, but large uncompressed AppVersion/Create requests failed with a misleading login message or timeout. In a measured deployment test, gzip reduced the JSON request from 7,751,632 to 833,310 bytes and the server returned HTTP 200. The final npm upload command was tested end-to-end.
Keep minify: true and sourcemap: false, but do not claim that minification alone fixed authentication. A transport-only preloader can preserve auth and JSON while compressing this specific upload:
import { gzipSync } from 'node:zlib';
const originalFetch = globalThis.fetch;
const uploadPath = '/api/appVersion/devvit.dev_portal.AppVersion/Create';
globalThis.fetch = (input, init) => {
const url = new URL(input instanceof Request ? input.url : String(input));
if (
url.hostname === 'developers.reddit.com' &&
url.pathname === uploadPath &&
init?.method?.toUpperCase() === 'POST' &&
typeof init.body === 'string'
) {
const headers = new Headers(init.headers);
if (!headers.has('content-encoding')) {
headers.set('content-encoding', 'gzip');
headers.delete('content-length');
init = { ...init, headers, body: gzipSync(init.body) };
}
}
return originalFetch(input, init);
};
Load it through the project upload command using NODE_OPTIONS; do not paste or print auth tokens. This is a tested workaround for our connection/request path, not a universal fix for real login expiry.
2. Use single-threaded exports and direct bridge calls
Our Web preset disables threads and PWA, uses the supplied single-threaded template, and keeps Web MSAA off. That avoids a SharedArrayBuffer requirement; it does not prove compatibility on every mobile device. Replace string eval bridges with direct interfaces:
var win = JavaScriptBridge.get_interface("window")
if win and win.innerSelfPostToHost:
win.innerSelfPostToHost(JSON.stringify(payload))
3. Treat the feed preview and full game as separate budgets
The three splash files are 34.36 KiB raw / 7.15 KiB in a local Brotli-q11 calculation. All 14 Web files are 18.16 MiB raw / 4.46 MiB local Brotli. Those numbers are not production Network-panel transferred bytes.
The feed uses DOM/SVG, prewarms only small helpers, and calls requestExpandedMode(event, "game"). The full game distinguishes download, instantiation, and first-frame timing, and shows a shader-compilation pulse rather than leaving a silent 100% bar. Real CDN and native-device timing must be checked separately.
4. Provide explicit mobile sharing fallbacks and check asset rights
Embedded clients do not all expose the same download/save UX. We implemented a 1080×1440 image preview with long-press instructions and a dual audio-unlock strategy: early pointer/key gesture unlocking plus the explicit launch gesture, so the Level-1 warm-up can start BGM without waiting until the daily puzzle. Native iOS/Android save behavior remains a real-device acceptance item, not a result inferred from a mobile user-agent.
Also separate glyph coverage from licensing: subsetting a system/commercial font does not prove redistribution permission. In v0.0.9, the three bundled UI font subsets are derived from Google Noto under SIL OFL 1.1, with attribution in assets/fonts/OFL.txt and third-party notices. The project source is BSD-3-Clause.
5. Never test fairness only as a moderator
Guest defaults, comment fallback, flair settings, and UGC counters need a real non-moderator run. An Auto Solve demo should keep its Assisted Clear label and stay out of manual histograms, streaks, awards, and Ghost paths.
Dragging orbits the view; D-Pad taps move the characters. Test that distinction on actual touch devices instead of assuming desktop input emulation proves native behavior.
The code/configuration described here is real; pending phone/CDN tests are deliberately not claimed as completed. Happy to compare reproducible traces and improve these integration patterns.