- JavaScript 94.5%
- HTML 5.5%
| fixtures/api | ||
| site | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| server.mjs | ||
frame-crack
A local snapshot of the client side of SnapFrames — a generator for 3D-printable picture frames.
The repository contains the prebuilt Next.js bundle and all assets the generator needs to run without internet access. There is no build step: everything is already in site/.
Run
Only Node.js 18+ is required.
npm start
Open http://localhost:3000.
To change the port: PORT=8080 npm start.
Layout
site/ mirror of https://www.snapframes.app/
index.html generator HTML + local overrides (no header, no Meta Pixel)
_next/ Next.js JS/CSS/font chunks (with local patches)
default-models/ STL frame models (Rev 02012026)
texture-thumbs/ previews for 100 procedural textures
lite-teasers/ landing/help images
vendor/ three.js typeface fonts, manifold.js + manifold.wasm,
OCCT worker + wasm (local 3MF export)
fixtures/api/ local responses for server-side /api/* endpoints
server.mjs static server + API stubs
Local bundle patches
The original source code is not available, so the changes below are applied directly to the built bundle and HTML.
- In
site/_next/static/chunks/9779-*.jsand the OCCT worker, thehttps://git-cdn.bitbybit.dev/v1.1.0URL is replaced with the localvendor/occtcopy. Without this, generation waits for an unavailable CDN and fails withOcctBootTimeout. - three.js typeface fonts are loaded from local
vendor/fontsinstead of jsdelivr. - In
site/_next/static/chunks/1904-*.js,lifetimePricingGate,saveDesignCapture,proceduralTextures,devToolsandpersonaSwitcherare disabled.downloadGateis forced on because it is what allows anonymous users to open the generator. - The download gate itself is forced off in
2466-*.js(tv=!1), and the paywall, welcome/auth and save-offer modals in1151-*.jsand2466-*.jsreturnnull. Downloading 3MF files therefore requires neither sign-in nor a subscription. - In
site/index.html, the top header and links to other pages are hidden, the Meta Pixel is removed, andsf_cookie_consentis set todeclined.
After loading, the page makes no requests to external hosts: fonts, OCCT, manifold, STL models and API responses are all local.
Server behaviour
- Serves files while ignoring the
?dpl=...query string used by the bundle. - Returns correct MIME types for
.wasm,.stl, fonts and images. - Provides local responses for
/api/stl-lab-config,/api/popular-presets,/api/patternsand/api/geo. - Accepts telemetry POSTs (
/api/analyticsand similar) without errors. - Falls back to
index.htmlfor unknown paths so the client app still boots. - Sends
no-cacheheaders because the bundle is patched in place.
What works locally
- 3D preview with orbit/zoom controls.
- Frame generation (manifold CSG + local OCCT).
- Size, shape, profile, text and accessory controls.
- 3MF / Snap Kit downloads without registration or subscription; everything is computed in the browser.
Verified with all external hosts blocked and on a hostname that the app treats
as a production environment: the page loads without the header and auth
navigation, the frame generates (16/16 parts), and the .3mf file downloads
without a paywall. No external network requests are made.
Limitations
This is a standalone client-side generator. Anything that depends on the original backend is disabled or unavailable:
- sign-in/registration, Supabase, profile, history and cloud presets;
- community, ratings, AI generation and server-side export;
/community,/tutorials,/roadmap,/joinand similar pages are not mirrored, and links to them are removed from the UI;- procedural textures powered by the external
engine-texture.vercel.appare disabled; the remaining local Face Design presets and frame geometry work.
/api/veneer-presets is deliberately not stubbed: the app falls back to its
bundled presets when the endpoint is unavailable.
Source
The snapshot was taken from the publicly served production build of
www.snapframes.app (deployment dpl_EA8s1WHNYsn3qx5PAdZWLTCLXAA5). Rights to
the original code, models and artwork belong to their respective owners. This
repository is intended for local research and debugging.