Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Microck/glob

Repository files navigation

logo

glb/gltf optimizer. i got tired of spammy online compressors, so i built my own.

license node react polar

glob.mp4

features

glob is a logic engine for shrinking 3d assets. i built it because 50mb glb files shouldn't exist on the web.

  • mesh decimation: removes polygons using meshoptimizer. drops weight without losing silhouette.
  • draco compression: google's geometry compression for minimal footprint.
  • model sharing: generate persistent share links with interactive 3D previews and stats.
  • texture resizing: auto-scale textures to 1k/2k/4k limits. saves vram.
  • bulk processing: queue 10 files. get them back optimized.
  • globber tier: 8ドル/mo via polar. 500mb limits, 48h retention, persistent vault.

how it works

flowchart LR
 A[Upload] --> B(Welding)
 B --> C(Decimation)
 C --> D(Quantization)
 D --> E(Draco)
 E --> F[Optimized GLB]
Loading
  1. ingest: parses buffer into document object.
  2. weld: merges duplicate vertices. essential before simplification.
  3. decimate: collapses edges based on target ratio.
  4. quantize: reduces bit-depth of attributes.
  5. compress: applies draco for final reduction.

stack

  • frontend: react, vite, tailwind, shadcn, three.js
  • backend: express, node, gltf-transform
  • deploy: vercel (frontend + /api)
  • infra: supabase (db), cloudflare r2 (model storage), clerk (auth), polar (billing)
  • note: render.yaml exists if you want a long-running api

self-hosting

you can run glob on your own infrastructure. it's a standard node/vite stack.

  1. clone: git clone https://github.com/microck/glob.git
  2. deps: npm install
  3. env: rename .env.example to .env and fill in the blanks.
  4. run: npm run dev and npm run api:dev

you'll need accounts for:

  • supabase: database. run migrations in api/supabase.
  • clerk: auth. create an app and get keys.
  • cloudflare r2: object storage. create a bucket.
  • polar: payments. strictly optional if you strip the billing code.

license

o'saasy license. use it for internal tools or personal projects. don't use this code to launch a competing 3d optimization service.

About

high-performance glb compressor for aggressive mesh decimation and geometry optimization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /