shaun8149

    shaun8149/sdf-js

    Chainable JS SDF library + 基于 SDF 的离散结构生成器层 (form × generator decoupling). Port & extension of fogleman/sdf.

    web
    JavaScript
    NOASSERTION
    412 stars
    30 forks
    412 GitHub watchers
    Updated Oct 24, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 2 contributors on GitHub.

    Use Cases & Benefits

    • Provides a chainable JavaScript library for signed distance functions (SDF) enabling exact, editable geometric shape generation and manipulation.
    • Ensures provably correct, dimension-agnostic vector geometry with deterministic rendering, surpassing diffusion models in structural precision and editability.
    • Use for creating precise, plotter-ready vector art and architectural diagrams requiring exact geometric correctness.
    • Use for developing interactive 2D and 3D spatial narratives and presentations with seamless lift from pseudo-3D slides to real 3D scenes.
    • Use for building LLM-driven world simulators and symbolic physics rule systems with savegame-native, forkable, and multiplayer-shareable state.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.
    • Owned by an individual account with only 2 contributors on GitHub; plan for bus-factor risk.
    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Prompt: 海边的灯塔 (5 characters). Same prompt + same 2D code, lifted twice — once with the v1 lift prompt (no semantic types taught) and once with the v2 prompt (18 named atom + component types). v1 emit: 0 atoms (the original 3D had no moon and no stars). v2 emit: moon × 1, star × 15, plus the tower shown here. The library expansion → prompt rewrite → atom emission is a fully quantified loop — scripts/regression reproduces the result for $0.07 per demo.

    → Try the live gallery · no API key needed, click any of 8 pre-lifted scenes and fly through with WASD.

    Prompt: 一座哥特式大教堂 (6 characters). 2D code: emitted but failed to render (closing-vertex bug in one polygon call). 3D scene: read by the lift LLM as semantic structure (twin towers + rose window + lancet portals + flying buttresses + crossing tower), compiled into editable SceneData, rendered via BOB GPU. Two parallel pipelines from prompt to viewer — only one needs to succeed. Diffusion has one.

    Atlas — the LLM-native illustration platform. An atlas in differential geometry is a collection of charts covering a manifold. Here it's a collection of forms × renderers × patterns × scenes — composed via four orthogonal input sources (LLM prompt, generator, 2D editor, 3D editor) into a single renderer pool. Built on sdf-js — the underlying open-source SDF library. Signed distance functions are a paradigm where diffusion models structurally cannot compete.

    Excerpt from the shaun8149/sdf-js README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 14: +9

    +143 stars over 46 days across 5 snapshot days; best day +9 on Sep 14.

    Forks

    30+22

    Open issues

    16+2

    Compared with peers in Web

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    shaun8149/sdf-js compared with Web repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    pingdotgg/t3code48.4K+16.6K40today
    pbakaus/impeccable104.0K+8.7K5410 days ago
    HunYiSage/dsh-purge19.2K+6.2K13today
    Renhuai123/ziwei-doushu16.2K+6.1K4421 days ago
    paperclipai/paperclip111.5K+2.8K5913 days ago
    shaun8149/sdf-js412—7—
    Category median48.4K+6.2K44—

    Discover Repositories

    Search across tracked repositories by name or description