@bitbybit-dev/manifold 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +77 -45
  2. package/package.json +11 -7
package/README.md CHANGED
@@ -1,67 +1,99 @@
1
- ## Bit By Bit Developers Manifold based CAD library
1
+ # @bitbybit-dev/manifold
2
2
 
3
- Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
4
- Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5
- Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6
- Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
3
+ [Manifold](https://github.com/elalish/manifold) 3D mesh boolean engine integration for [Bitbybit](https://bitbybit.dev) - fast union, intersection, difference, and mesh operations for watertight geometry.
7
4
 
8
5
  <img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
9
6
 
10
- This project exposes 3D algorithms based on manifold-3d 3D CAD kernel, developed by Emmett Lalish and Chun Kit LAM, which you can find on https://github.com/elalish/manifold. Bit By Bit Developers platform integrates this kernel into it's platform via this library. Currently we try to expose Manifold library 1:1 in terms of functionality through our structured API, but as time goes we will have more unique algorithms in this package, which will be tuned specifically to our users.
7
+ ## Overview
11
8
 
12
- This package should work in Node and browser based applications. If you want to use this package in your browser based applications we highly suggest to use @bitbybit-dev/manifold-webworker npm package, which wraps this lib into promisified non-blocking API.
9
+ This package wraps the [manifold-3d](https://github.com/elalish/manifold) CAD kernel (by Emmett Lalish and Chun Kit LAM) with additional algorithms from Bitbybit. Manifold is optimized for lightning-fast mesh boolean operations on guaranteed-watertight geometry - ideal for 3D printing and game asset creation.
13
10
 
14
- ## Github
15
- https://github.com/bitbybit-dev/bitbybit/tree/master/packages/dev/manifold
16
- ## NPM
17
- https://www.npmjs.com/package/@bitbybit-dev/manifold
11
+ Works in both **Node.js** and **browser** environments. For browser apps, we recommend [@bitbybit-dev/manifold-worker](https://www.npmjs.com/package/@bitbybit-dev/manifold-worker) which wraps this library in a non-blocking WebWorker.
18
12
 
19
- ## THREEJS Example Applications Using Manifold
20
- [Manifold Sliced Mesh](https://app-store.bitbybit.dev/manifold-sliced-mesh/)
21
- [Github Source Code](https://github.com/bitbybit-dev/app-examples/blob/main/webpack/threejs/src/code/manifold-sliced-mesh.ts)
13
+ ## Quick Start
22
14
 
23
- ## Other THREEJS Applications
24
- [Vase](https://app-store.bitbybit.dev/vase)
25
- [Github source code](https://github.com/bitbybit-dev/app-examples/tree/main/react/threejs/vase)
15
+ The fastest way to scaffold a project with Manifold pre-configured:
26
16
 
27
- ## Other Example Applications
28
- [Laptop Holder](https://app-store.bitbybit.dev/laptop-holder)
29
- [Github Source Code Angular](https://github.com/bitbybit-dev/app-examples/tree/main/angular/laptop-holder)
30
- [Github Source Code React](https://github.com/bitbybit-dev/app-examples/tree/main/react/laptop-holder)
31
-
32
- [Cup Configurator](https://app-store.bitbybit.dev/cup)
33
- [Github Source Code](https://github.com/bitbybit-dev/app-examples/tree/main/react/cup)
17
+ ```bash
18
+ npx @bitbybit-dev/create-app my-project --engine threejs
19
+ cd my-project
20
+ npm install
21
+ npm run dev
22
+ ```
34
23
 
35
- ## Closed Source Example Applications
36
- [Terrace Furniture](https://app-store.bitbybit.dev/terrace-furniture)
24
+ This creates a complete Vite + TypeScript project with Manifold, OCCT, and JSCAD kernels ready to use. [Learn more about the CLI](https://learn.bitbybit.dev/learn/npm-packages/intro).
37
25
 
38
- ## Build package
26
+ ### Need Server-Side CAD?
27
+
28
+ The CLI first asks you to choose between a **Frontend** app or a **CAD Cloud** app. Select "cloud" to scaffold a full-stack project with a backend (Hono on Cloudflare Workers, Node.js Express, or ASP.NET Core) and a React + Three.js frontend. Your API key stays on the server and the frontend proxies requests through your backend:
29
+
30
+ ```bash
31
+ npx @bitbybit-dev/create-app my-cloud-project --type cloud
32
+ ```
33
+
34
+ Choose from 5 backend templates: Hono + SDK, Hono + REST, Node.js + SDK, Node.js + REST, or .NET + REST. Each includes ready-to-run examples with model generation, batch operations, and [CAD pipelines](https://learn.bitbybit.dev/api/sdk/typescript/pipelines). [Learn more](https://learn.bitbybit.dev/api/cloud-api).
35
+
36
+ ## Links
37
+
38
+ | Resource | URL |
39
+ |----------|-----|
40
+ | **GitHub** | https://github.com/bitbybit-dev/bitbybit/tree/master/packages/dev/manifold |
41
+ | **Monorepo** | https://github.com/bitbybit-dev/bitbybit |
42
+ | **NPM** | https://www.npmjs.com/package/@bitbybit-dev/manifold |
43
+ | **Documentation** | https://learn.bitbybit.dev/learn/npm-packages/intro |
44
+ | **Unit Test Coverage** | https://tests.bitbybit.dev/manifold |
45
+
46
+ ## Example Applications
47
+
48
+ | App | Source Code |
49
+ |-----|-------------|
50
+ | [Manifold Sliced Mesh](https://app-store.bitbybit.dev/manifold-sliced-mesh) | [GitHub](https://github.com/bitbybit-dev/app-examples/tree/main/react/threejs/vase) |
51
+ | [Hex Shell](https://learn.bitbybit.dev/learn/npm-packages/threejs/advanced-parametric-3d-model) | [GitHub](https://github.com/bitbybit-dev/bitbybit/tree/master/examples/vite/threejs/hex-shell) |
52
+ | [Terrace Furniture](https://app-store.bitbybit.dev/terrace-furniture) (BabylonJS) | Closed source |
53
+
54
+ ## Development
55
+
56
+ ```bash
57
+ # Build package
39
58
  npm run build-p
40
59
 
41
- ## Run unit tests and generate test coverage
60
+ # Run unit tests with coverage
42
61
  npm run test-c
43
62
 
44
- ## Run live unit tests and generate test coverage on save
63
+ # Run live unit tests with coverage on save
45
64
  npm run test-c-l
65
+ ```
66
+
67
+ ## Bitbybit Platform
68
+
69
+ Beyond NPM packages, Bitbybit offers:
70
+
71
+ - **[Visual Programming Editors](https://bitbybit.dev)** - Rete & Blockly drag-and-drop 3D modeling, plus a Monaco TypeScript editor
72
+ - **[CAD Cloud API](https://learn.bitbybit.dev/api/cloud-api)** - Build full [pipelines](https://learn.bitbybit.dev/api/sdk/typescript/pipelines) that compose all Bitbybit algorithms, where each step can reference outputs of previous steps. Supports parametric model generation, STEP-to-glTF conversion, and complex CAD workflows via HTTP
73
+ - **[Bitbybit Studio](https://studio.bitbybit.dev)** - A growing visual dashboard where API Key users can generate models, convert files, build [pipelines with a GUI](https://learn.bitbybit.dev/api/studio/intro), inspect tasks, and preview 3D results
74
+ - **[3D Bits for Shopify](https://apps.shopify.com/3d-bits-1)** - Interactive 3D product configurators for e-commerce
75
+ - **[Script Runners](https://learn.bitbybit.dev/learn/runners/intro)** - Execute visual scripts directly on your website
76
+ - **[AI-Assisted Development](https://learn.bitbybit.dev/learn/using-ai-with-bitbybit/intro)** - Context files for GitHub Copilot, Claude, and ChatGPT
77
+ - **[Business & Enterprise](https://bitbybit.dev/b2b)** - We help businesses and enterprises develop custom applications and spin up optimized CAD tenant workflows on our managed servers
46
78
 
47
- ## Unit test coverage report online
48
- https://tests.bitbybit.dev/threejs
79
+ ## Support the Project
49
80
 
50
- ## Media Channels
51
- Discord: https://discord.gg/GSe3VMe
52
- Youtube: https://www.youtube.com/@bitbybitdev?sub_confirmation=1
53
- Instagram: https://www.instagram.com/bitbybit.dev
54
- Twitter: https://twitter.com/bitbybit_dev
55
- LinkedIn: https://lnkd.in/gQjEQA2
56
- Facebook: https://www.facebook.com/bitbybitdev
57
- Medium: https://bitbybit-dev.medium.com/
81
+ This package is part of the open-source Bitbybit ecosystem. Your subscription helps fund continued development.
58
82
 
59
- ## Principles
60
- Bit By Bit Developers company will keep these core algorithms that you can find in this repository free and opensource for its users. These algorithms are based on other open-source projects, run and are deployed on the browser, thus there is no point of closing them down from public.
83
+ ⭐ **[Subscribe - Silver or Gold plan](https://bitbybit.dev/auth/pick-plan)** | **[Get API Key for CAD Cloud](https://bitbybit.dev/auth/pick-plan?api-keys=true)**
61
84
 
62
- ## About Bit By Bit Developers platform
63
- Bit By Bit Developers web platform allows creators to program geometry through simple visual programming language or choose monaco typescript editor with full intellisense of bitbybit API. This cloud platform can fulfil many practical, educational and artistic needs of its users. Through familiar programming interface used in tools such as Scratch and Blockly.Games we expose powerful 3D algorithms that make it easier to implement various parametric tasks. Our goal is to make it very simple for users to share their ideas and designs. We want to encourage everyone to engage in the future of this tool.
85
+ ## Community
86
+
87
+ - [Discord](https://discord.gg/GSe3VMe)
88
+ - [YouTube](https://www.youtube.com/@bitbybitdev?sub_confirmation=1)
89
+ - [LinkedIn](https://www.linkedin.com/company/bitbybit-dev)
90
+ - [X (Twitter)](https://x.com/bitbybit_dev)
91
+ - [Blog](https://learn.bitbybit.dev/blog)
64
92
 
65
93
  ## Major Dependencies
66
- Manifold
67
- https://github.com/elalish/manifold
94
+
95
+ [Manifold](https://github.com/elalish/manifold)
96
+
97
+ ## License
98
+
99
+ MIT © [Bit By Bit Developers](https://bitbybit.dev)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbybit-dev/manifold",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Bit By Bit Developers Manifold based CAD Library to Program Geometry",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -55,24 +55,28 @@
55
55
  },
56
56
  "author": "Bit by bit developers",
57
57
  "license": "MIT",
58
+ "funding": {
59
+ "type": "corporate",
60
+ "url": "https://bitbybit.dev/auth/pick-plan"
61
+ },
58
62
  "types": "./index.d.ts",
59
63
  "type": "module",
60
64
  "dependencies": {
61
65
  "manifold-3d": "3.3.2",
62
- "@bitbybit-dev/base": "1.0.0"
66
+ "@bitbybit-dev/base": "1.0.1"
63
67
  },
64
68
  "devDependencies": {
65
69
  "shx": "0.4.0",
66
70
  "@testing-library/jest-dom": "6.9.1",
67
71
  "mvdir": "1.0.22",
68
- "jest": "30.2.0",
72
+ "jest": "30.4.2",
69
73
  "ts-node": "10.9.2",
70
- "ts-jest": "29.4.6",
74
+ "ts-jest": "29.4.10",
71
75
  "typescript": "5.9.3",
72
76
  "@types/jest": "30.0.0",
73
- "babel-jest": "30.2.0",
74
- "@babel/core": "7.28.6",
75
- "@babel/preset-env": "7.28.6",
77
+ "babel-jest": "30.4.1",
78
+ "@babel/core": "7.29.0",
79
+ "@babel/preset-env": "7.29.5",
76
80
  "@babel/preset-typescript": "7.28.5",
77
81
  "babel-plugin-transform-import-meta": "2.3.3",
78
82
  "jest-html-reporters": "3.1.7"