Nitroglycerin Pickle Machine

    three-stdlib

    2.8.0 • Public • Published

    three-stdlib

    Version Downloads Twitter Discord release

    Stand-alone version of threejs/examples/jsm written in Typescript & built for ESM & CJS.

    Basic usage

    npm install three-stdlib
    
    // Export collection
    import * as STDLIB from 'three-stdlib'
    // Flatbundle
    import { OrbitControls, ... } from 'three-stdlib'
    // Pick individual objects
    import { OrbitControls } from 'three-stdlib/controls/OrbitControls'

    Problem

    threejs/examples were always considered as something that you need to copy/paste into your project and adapt to your needs. But that's not how people use them. This causes numerous issues & little support.

    Solution

    • Real, npm/node conform esm modules with marked dependencies
    • Class based, optimized for tree-shaking, no global pollution, exports instead of collections
    • A build system for esm and cjs
    • Single flatbundle as well as individual transpiles
    • Typesafety with simple annotation-like types
    • CI, tests, linting, formatting (prettier)

    But most importantly, allowing the people that use and rely on these primitives to hold a little stake, and to distribute the weight of maintaining it.

    Let's give jsm/examples the care it deserves!

    How to contribute

    If you want to get involved you could do any of the following:

    • Create amazing stories for these examples for our dedicate storybook
    • Convert some of the files to Typescript
    • Add new examples for the library you think could be awesome for others

    Keywords

    none

    Install

    npm i three-stdlib

    DownloadsWeekly Downloads

    48,584

    Version

    2.8.0

    License

    MIT

    Unpacked Size

    7.37 MB

    Total Files

    1113

    Last publish

    Collaborators

    • drcmda
    • onirenaud
    • tdfka_rick