@nexart/codemode-sdk 1.5.0 → 1.5.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/CHANGELOG.md +289 -0
- package/CODE_MODE_PROTOCOL.md +471 -0
- package/README.md +232 -55
- package/dist/builder-manifest.d.ts +79 -0
- package/dist/builder-manifest.d.ts.map +1 -0
- package/dist/builder-manifest.js +97 -0
- package/dist/core-index.d.ts +21 -0
- package/dist/core-index.d.ts.map +1 -0
- package/dist/core-index.js +26 -0
- package/dist/engine.d.ts +17 -39
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +52 -253
- package/dist/execute.d.ts +46 -0
- package/dist/execute.d.ts.map +1 -0
- package/dist/execute.js +282 -0
- package/dist/index.d.ts +24 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -16
- package/dist/noise-bridge.d.ts +44 -0
- package/dist/noise-bridge.d.ts.map +1 -0
- package/dist/noise-bridge.js +68 -0
- package/dist/noise-engine.d.ts +74 -0
- package/dist/noise-engine.d.ts.map +1 -0
- package/dist/noise-engine.js +132 -0
- package/dist/noise-sketches/fractalNoise.d.ts +11 -0
- package/dist/noise-sketches/fractalNoise.d.ts.map +1 -0
- package/dist/noise-sketches/fractalNoise.js +121 -0
- package/dist/noise-sketches/index.d.ts +21 -0
- package/dist/noise-sketches/index.d.ts.map +1 -0
- package/dist/noise-sketches/index.js +28 -0
- package/dist/sound-bridge.d.ts +89 -0
- package/dist/sound-bridge.d.ts.map +1 -0
- package/dist/sound-bridge.js +128 -0
- package/dist/soundart-engine.d.ts +87 -0
- package/dist/soundart-engine.d.ts.map +1 -0
- package/dist/soundart-engine.js +173 -0
- package/dist/soundart-sketches/chladniBloom.d.ts +3 -0
- package/dist/soundart-sketches/chladniBloom.d.ts.map +1 -0
- package/dist/soundart-sketches/chladniBloom.js +53 -0
- package/dist/soundart-sketches/dualVortex.d.ts +3 -0
- package/dist/soundart-sketches/dualVortex.d.ts.map +1 -0
- package/dist/soundart-sketches/dualVortex.js +67 -0
- package/dist/soundart-sketches/geometryIllusion.d.ts +3 -0
- package/dist/soundart-sketches/geometryIllusion.d.ts.map +1 -0
- package/dist/soundart-sketches/geometryIllusion.js +89 -0
- package/dist/soundart-sketches/index.d.ts +39 -0
- package/dist/soundart-sketches/index.d.ts.map +1 -0
- package/dist/soundart-sketches/index.js +72 -0
- package/dist/soundart-sketches/isoflow.d.ts +3 -0
- package/dist/soundart-sketches/isoflow.d.ts.map +1 -0
- package/dist/soundart-sketches/isoflow.js +60 -0
- package/dist/soundart-sketches/loomWeave.d.ts +3 -0
- package/dist/soundart-sketches/loomWeave.d.ts.map +1 -0
- package/dist/soundart-sketches/loomWeave.js +59 -0
- package/dist/soundart-sketches/noiseTerraces.d.ts +3 -0
- package/dist/soundart-sketches/noiseTerraces.d.ts.map +1 -0
- package/dist/soundart-sketches/noiseTerraces.js +53 -0
- package/dist/soundart-sketches/orb.d.ts +3 -0
- package/dist/soundart-sketches/orb.d.ts.map +1 -0
- package/dist/soundart-sketches/orb.js +50 -0
- package/dist/soundart-sketches/pixelGlyphs.d.ts +3 -0
- package/dist/soundart-sketches/pixelGlyphs.d.ts.map +1 -0
- package/dist/soundart-sketches/pixelGlyphs.js +72 -0
- package/dist/soundart-sketches/prismFlowFields.d.ts +3 -0
- package/dist/soundart-sketches/prismFlowFields.d.ts.map +1 -0
- package/dist/soundart-sketches/prismFlowFields.js +51 -0
- package/dist/soundart-sketches/radialBurst.d.ts +3 -0
- package/dist/soundart-sketches/radialBurst.d.ts.map +1 -0
- package/dist/soundart-sketches/radialBurst.js +60 -0
- package/dist/soundart-sketches/resonantSoundBodies.d.ts +3 -0
- package/dist/soundart-sketches/resonantSoundBodies.d.ts.map +1 -0
- package/dist/soundart-sketches/resonantSoundBodies.js +89 -0
- package/dist/soundart-sketches/rings.d.ts +11 -0
- package/dist/soundart-sketches/rings.d.ts.map +1 -0
- package/dist/soundart-sketches/rings.js +89 -0
- package/dist/soundart-sketches/squares.d.ts +3 -0
- package/dist/soundart-sketches/squares.d.ts.map +1 -0
- package/dist/soundart-sketches/squares.js +52 -0
- package/dist/soundart-sketches/waveStripes.d.ts +3 -0
- package/dist/soundart-sketches/waveStripes.d.ts.map +1 -0
- package/dist/soundart-sketches/waveStripes.js +44 -0
- package/dist/types.d.ts +41 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/package.json +24 -15
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const SQUARES_SKETCH = `
|
|
2
|
+
function setup() {
|
|
3
|
+
const bgMode = typeof backgroundMode !== 'undefined' ? backgroundMode : 'rgb';
|
|
4
|
+
if (bgMode === 'white') background(245, 245, 245);
|
|
5
|
+
else if (bgMode === 'black') background(10, 10, 10);
|
|
6
|
+
else {
|
|
7
|
+
const r = Math.floor((S.brightness / 100) * 255);
|
|
8
|
+
const g = Math.floor((S.rhythmicity / 100) * 255);
|
|
9
|
+
const b = Math.floor((S.harmonicity / 100) * 255);
|
|
10
|
+
background(r, g, b);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const numSquares = Math.floor(map(S.length, 0, 100, 40, 300));
|
|
14
|
+
let size = Math.min(width, height) * 0.9;
|
|
15
|
+
const shrinkFactor = map(S.dynamicRange, 0, 100, 0.92, 1.08);
|
|
16
|
+
const rotationStep = map(S.aggression, 0, 100, 0.01, 0.07);
|
|
17
|
+
const strokeMin = map(S.volume, 0, 100, 1.0, 6.0);
|
|
18
|
+
const strokeMax = map(S.bass, 0, 100, 2.0, 8.0);
|
|
19
|
+
|
|
20
|
+
const colors = [];
|
|
21
|
+
for (let i = 0; i < 5; i++) {
|
|
22
|
+
const baseHue = (S.hue + i * 60 + random() * 20) % 360;
|
|
23
|
+
const sat = constrain(map(S.treble, 0, 100, 60, 95), 50, 100);
|
|
24
|
+
const bri = constrain(map(S.brightness, 0, 100, 40, 85), 30, 90);
|
|
25
|
+
colors.push(hslColor(baseHue, sat, bri));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
noFill();
|
|
29
|
+
translate(width / 2, height / 2);
|
|
30
|
+
|
|
31
|
+
let angle = 0;
|
|
32
|
+
for (let i = 0; i < numSquares; i++) {
|
|
33
|
+
const strokeW = strokeMin + (i / numSquares) * (strokeMax - strokeMin);
|
|
34
|
+
strokeWeight(strokeW);
|
|
35
|
+
stroke(colors[i % colors.length]);
|
|
36
|
+
|
|
37
|
+
push();
|
|
38
|
+
rotate(angle);
|
|
39
|
+
rect(-size / 2, -size / 2, size, size);
|
|
40
|
+
pop();
|
|
41
|
+
|
|
42
|
+
angle += rotationStep;
|
|
43
|
+
size *= shrinkFactor;
|
|
44
|
+
if (size < 4) break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function hslColor(h, s, l) {
|
|
49
|
+
return 'hsl(' + h + ',' + s + '%,' + l + '%)';
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
export default SQUARES_SKETCH;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const WAVE_STRIPES_SKETCH = "\nfunction setup() {\n const bgMode = typeof backgroundMode !== 'undefined' ? backgroundMode : 'rgb';\n if (bgMode === 'white') background(245, 245, 245);\n else if (bgMode === 'black') background(10, 10, 10);\n else {\n const r = Math.floor((S.brightness / 100) * 255);\n const g = Math.floor((S.rhythmicity / 100) * 255);\n const b = Math.floor((S.harmonicity / 100) * 255);\n background(r, g, b);\n }\n\n const numLines = Math.floor(map(S.length, 0, 100, 5, 100));\n const amp = map(S.volume, 0, 100, 0.012, 0.09);\n const lineNoise = map(S.harmonicity, 0, 100, 0.1, 0.8);\n const freqNoise = map(S.aggression, 0, 100, 0.004, 0.02);\n const waveFreq = map(S.rhythmicity, 0, 100, 0.0003, 0.003);\n const strokeW = map(S.bass, 0, 100, 2, 6.0);\n const vividBoost = constrain(map(S.brightness, 0, 100, 0.6, 1.2), 0.6, 1.4);\n\n noFill();\n strokeWeight(strokeW);\n\n for (let j = 0; j < numLines; j++) {\n const yBase = map(j, 0, numLines - 1, 0.05 * height, 0.95 * height);\n const lineTreble = constrain(S.treble + noise(j, 99) * 20 - 10, 0, 100);\n const hue = ((map(lineTreble, 60, 100, 0, 360) + map(S.attack, 0, 100, 0, 120) + noise(j, 100) * 20 - 10) % 360 + 360) % 360;\n \n stroke('hsl(' + hue + ',85%,' + constrain(vividBoost * 55, 40, 70) + '%)');\n \n beginShape();\n const pointSpacing = constrain(map(S.harmonicity, 0, 100, 20, 4), 4, 20);\n for (let i = 0; i <= width; i += pointSpacing) {\n const shimmer = sin(i * 0.05 + j * 0.1) * 0.05;\n const offsetY = sin(i * waveFreq + j * 0.2 + shimmer) * amp * height;\n const localNoiseVal = (noise(i * freqNoise, j * lineNoise) - 0.5) * amp * height;\n const y = yBase + offsetY + localNoiseVal;\n vertex(i, y);\n }\n endShape();\n }\n}\n";
|
|
2
|
+
export default WAVE_STRIPES_SKETCH;
|
|
3
|
+
//# sourceMappingURL=waveStripes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waveStripes.d.ts","sourceRoot":"","sources":["../../soundart-sketches/waveStripes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,6vDA0C/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const WAVE_STRIPES_SKETCH = `
|
|
2
|
+
function setup() {
|
|
3
|
+
const bgMode = typeof backgroundMode !== 'undefined' ? backgroundMode : 'rgb';
|
|
4
|
+
if (bgMode === 'white') background(245, 245, 245);
|
|
5
|
+
else if (bgMode === 'black') background(10, 10, 10);
|
|
6
|
+
else {
|
|
7
|
+
const r = Math.floor((S.brightness / 100) * 255);
|
|
8
|
+
const g = Math.floor((S.rhythmicity / 100) * 255);
|
|
9
|
+
const b = Math.floor((S.harmonicity / 100) * 255);
|
|
10
|
+
background(r, g, b);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const numLines = Math.floor(map(S.length, 0, 100, 5, 100));
|
|
14
|
+
const amp = map(S.volume, 0, 100, 0.012, 0.09);
|
|
15
|
+
const lineNoise = map(S.harmonicity, 0, 100, 0.1, 0.8);
|
|
16
|
+
const freqNoise = map(S.aggression, 0, 100, 0.004, 0.02);
|
|
17
|
+
const waveFreq = map(S.rhythmicity, 0, 100, 0.0003, 0.003);
|
|
18
|
+
const strokeW = map(S.bass, 0, 100, 2, 6.0);
|
|
19
|
+
const vividBoost = constrain(map(S.brightness, 0, 100, 0.6, 1.2), 0.6, 1.4);
|
|
20
|
+
|
|
21
|
+
noFill();
|
|
22
|
+
strokeWeight(strokeW);
|
|
23
|
+
|
|
24
|
+
for (let j = 0; j < numLines; j++) {
|
|
25
|
+
const yBase = map(j, 0, numLines - 1, 0.05 * height, 0.95 * height);
|
|
26
|
+
const lineTreble = constrain(S.treble + noise(j, 99) * 20 - 10, 0, 100);
|
|
27
|
+
const hue = ((map(lineTreble, 60, 100, 0, 360) + map(S.attack, 0, 100, 0, 120) + noise(j, 100) * 20 - 10) % 360 + 360) % 360;
|
|
28
|
+
|
|
29
|
+
stroke('hsl(' + hue + ',85%,' + constrain(vividBoost * 55, 40, 70) + '%)');
|
|
30
|
+
|
|
31
|
+
beginShape();
|
|
32
|
+
const pointSpacing = constrain(map(S.harmonicity, 0, 100, 20, 4), 4, 20);
|
|
33
|
+
for (let i = 0; i <= width; i += pointSpacing) {
|
|
34
|
+
const shimmer = sin(i * 0.05 + j * 0.1) * 0.05;
|
|
35
|
+
const offsetY = sin(i * waveFreq + j * 0.2 + shimmer) * amp * height;
|
|
36
|
+
const localNoiseVal = (noise(i * freqNoise, j * lineNoise) - 0.5) * amp * height;
|
|
37
|
+
const y = yBase + offsetY + localNoiseVal;
|
|
38
|
+
vertex(i, y);
|
|
39
|
+
}
|
|
40
|
+
endShape();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
export default WAVE_STRIPES_SKETCH;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NexArt Code Mode Runtime SDK - Types
|
|
3
|
-
* Version: 1.5.
|
|
3
|
+
* Version: 1.5.1 (Protocol v1.2.0)
|
|
4
4
|
*
|
|
5
5
|
* Type definitions for the Code Mode runtime engine.
|
|
6
6
|
* This is the canonical type surface for @nexart/codemode-sdk.
|
|
@@ -126,4 +126,44 @@ export interface ExecuteCodeModeResult {
|
|
|
126
126
|
frames?: ImageData[];
|
|
127
127
|
metadata: ProtocolMetadata;
|
|
128
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Builder Manifest (v1.5.1)
|
|
131
|
+
*
|
|
132
|
+
* Passive, declarative metadata for builder attribution.
|
|
133
|
+
* This is data-only with no logic, rewards, or enforcement attached.
|
|
134
|
+
*
|
|
135
|
+
* Rules:
|
|
136
|
+
* - Registration is optional
|
|
137
|
+
* - Missing or invalid manifest does NOT throw
|
|
138
|
+
* - No network calls, no telemetry, no analytics
|
|
139
|
+
* - Does NOT affect execution behavior or determinism
|
|
140
|
+
* - Used for future attribution and ecosystem discovery
|
|
141
|
+
*/
|
|
142
|
+
export interface NexArtBuilderManifest {
|
|
143
|
+
protocol: 'nexart';
|
|
144
|
+
manifestVersion: string;
|
|
145
|
+
app?: {
|
|
146
|
+
name?: string;
|
|
147
|
+
url?: string;
|
|
148
|
+
description?: string;
|
|
149
|
+
contact?: string;
|
|
150
|
+
};
|
|
151
|
+
sdk?: {
|
|
152
|
+
package?: string;
|
|
153
|
+
version?: string;
|
|
154
|
+
execution?: string;
|
|
155
|
+
};
|
|
156
|
+
renderer?: {
|
|
157
|
+
package?: string;
|
|
158
|
+
version?: string;
|
|
159
|
+
mode?: 'preview' | 'canonical';
|
|
160
|
+
};
|
|
161
|
+
features?: Record<string, boolean>;
|
|
162
|
+
declaration?: {
|
|
163
|
+
usesOfficialSdk?: boolean;
|
|
164
|
+
noRuntimeModification?: boolean;
|
|
165
|
+
noProtocolBypass?: boolean;
|
|
166
|
+
};
|
|
167
|
+
timestamp?: string;
|
|
168
|
+
}
|
|
129
169
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAA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AC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;KAChC,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexart/codemode-sdk",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "NexArt Code Mode
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"version": "1.5.1",
|
|
4
|
+
"description": "NexArt Code Mode SDK - Canonical execution engine for deterministic generative art",
|
|
8
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/core-index.js",
|
|
7
|
+
"types": "./dist/core-index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/core-index.d.ts",
|
|
11
|
+
"import": "./dist/core-index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
9
14
|
"files": [
|
|
10
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md",
|
|
17
|
+
"CHANGELOG.md",
|
|
18
|
+
"CODE_MODE_PROTOCOL.md"
|
|
11
19
|
],
|
|
12
20
|
"scripts": {
|
|
13
21
|
"build": "tsc",
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"typescript": "^5.0.0"
|
|
22
|
+
"test": "npx tsx smoke-test.ts",
|
|
23
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
18
24
|
},
|
|
19
25
|
"keywords": [
|
|
26
|
+
"nexart",
|
|
20
27
|
"generative-art",
|
|
28
|
+
"nft",
|
|
21
29
|
"p5js",
|
|
22
|
-
"canvas",
|
|
23
|
-
"rendering",
|
|
24
30
|
"deterministic",
|
|
25
|
-
"
|
|
26
|
-
"creative-coding"
|
|
31
|
+
"codemode"
|
|
27
32
|
],
|
|
33
|
+
"author": "NexArt",
|
|
34
|
+
"license": "MIT",
|
|
28
35
|
"repository": {
|
|
29
36
|
"type": "git",
|
|
30
37
|
"url": "https://github.com/artnames/nexart-codemode-sdk.git"
|
|
31
38
|
},
|
|
32
|
-
"author": "NexArt",
|
|
33
39
|
"publishConfig": {
|
|
34
40
|
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"typescript": "^5.0.0"
|
|
35
44
|
}
|
|
36
45
|
}
|