3draft 0.0.0-stage → 0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vívó Péter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,39 @@
1
- # Temporary Holding Version
1
+ # 3Draft
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Minimalist AI first 3D engine.
4
+
5
+ > Status: **pre-alpha**. The `0.0.x` releases reserve the package name and
6
+ > pin down the direction; the engine itself is built step by step in this repo.
7
+
8
+ ```sh
9
+ npm install 3draft
10
+ ```
11
+
12
+ ```js
13
+ import { info } from '3draft';
14
+
15
+ console.log(info());
16
+ ```
17
+
18
+ ## Idea
19
+
20
+ - **One material, one palette texture.** Every face's UV points at a single
21
+ texel of a small palette texture, so a whole scene is one pipeline, one bind
22
+ group and instanced draw calls.
23
+ - **Thin WASM core.** Transforms, culling and animation live in a WASM module
24
+ (HEXAW and/or Rust) behind a small, documented ABI. JS only uploads buffers.
25
+ - **WebGPU first, WebGL2 fallback** behind a minimal `Renderer` interface.
26
+ - **AI first.** A deterministic SVG preview and structured `inspect` reports
27
+ (plus an MCP server) let an AI build and verify models from text.
28
+
29
+ ## Roadmap
30
+
31
+ 1. ABI description + reference JS kernel + spinning instanced cube
32
+ 2. SVG/PNG preview renderer and MCP `render` / `inspect`
33
+ 3. Text modelling language + palette/UV validator
34
+ 4. HEXAW kernel next to the JS reference, with differential tests
35
+ 5. Rust core only if the logic outgrows HEXAW
36
+
37
+ ## License
38
+
39
+ MIT
package/package.json CHANGED
@@ -1,6 +1,54 @@
1
1
  {
2
2
  "name": "3draft",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "Minimalist AI first 3D engine: palette-texture, WASM core, WebGPU/WebGL2 renderer.",
5
+ "type": "module",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./src/index.d.ts",
11
+ "default": "./src/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "!src/**/*.test.js",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "test": "node --test"
23
+ },
24
+ "keywords": [
25
+ "3d",
26
+ "webgpu",
27
+ "webgl2",
28
+ "wasm",
29
+ "hexaw",
30
+ "minimalist",
31
+ "engine",
32
+ "ai-first",
33
+ "mcp"
34
+ ],
35
+ "author": {
36
+ "name": "Vívó Péter",
37
+ "url": "https://github.com/Pengeszikra"
38
+ },
39
+ "license": "MIT",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/Pengeszikra/3Draft.git"
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/Pengeszikra/3Draft/issues"
46
+ },
47
+ "homepage": "https://github.com/Pengeszikra/3Draft#readme",
48
+ "engines": {
49
+ "node": ">=18"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ }
54
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export const name: '3draft';
2
+ export const version: string;
3
+
4
+ export interface Info {
5
+ name: string;
6
+ version: string;
7
+ stage: 'pre-alpha';
8
+ goals: string[];
9
+ }
10
+
11
+ export function info(): Info;
package/src/index.js ADDED
@@ -0,0 +1,19 @@
1
+ // 3Draft: minimalist AI first 3D engine.
2
+ // Early placeholder release: the real engine (palette-texture meshes,
3
+ // WASM core, WebGPU/WebGL2 renderer, SVG preview) is built on top of this.
4
+
5
+ export const name = '3draft';
6
+ export const version = '0.0.1';
7
+
8
+ /** Short, machine-readable description of the current state of the package. */
9
+ export const info = () => ({
10
+ name,
11
+ version,
12
+ stage: 'pre-alpha',
13
+ goals: [
14
+ 'single palette texture, UVs point at one texel per face',
15
+ 'WASM core (HEXAW / Rust) behind a thin ABI',
16
+ 'WebGPU renderer with WebGL2 fallback',
17
+ 'deterministic SVG preview for AI feedback loops',
18
+ ],
19
+ });