No description
  • JavaScript 94.5%
  • HTML 5.5%
Find a file
2026-10-23 15:48:54 +00:00
fixtures/api feat: basics 2026-10-23 14:43:44 +00:00
site feat: make frame generator standalone 2026-10-23 15:41:00 +00:00
.gitignore feat: basics 2026-10-23 14:43:44 +00:00
package.json feat: basics 2026-10-23 14:43:44 +00:00
README.md docs: translate README to English 2026-10-23 15:45:25 +00:00
server.mjs feat: make frame generator standalone 2026-10-23 15:41:00 +00:00

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-*.js and the OCCT worker, the https://git-cdn.bitbybit.dev/v1.1.0 URL is replaced with the local vendor/occt copy. Without this, generation waits for an unavailable CDN and fails with OcctBootTimeout.
  • three.js typeface fonts are loaded from local vendor/fonts instead of jsdelivr.
  • In site/_next/static/chunks/1904-*.js, lifetimePricingGate, saveDesignCapture, proceduralTextures, devTools and personaSwitcher are disabled. downloadGate is 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 in 1151-*.js and 2466-*.js return null. 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, and sf_cookie_consent is set to declined.

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/patterns and /api/geo.
  • Accepts telemetry POSTs (/api/analytics and similar) without errors.
  • Falls back to index.html for unknown paths so the client app still boots.
  • Sends no-cache headers 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, /join and similar pages are not mirrored, and links to them are removed from the UI;
  • procedural textures powered by the external engine-texture.vercel.app are 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.