Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ten-radios-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"$theme": patch
---

Easier input of f32 values with a scrubbable number input
5 changes: 5 additions & 0 deletions .changeset/twelve-zebras-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"$editor": patch
---

Nodes visual redesign
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ This project is in pre-alpha: every change can afford to be breaking, no backwar
- Motion GPU as the WGSL runtime

Assume your knowledge of these tools to be vastly outdated, don't be afraid to fetch the appropriate documentation (ideally via an MCP server if your user has some available for you, or via your built-in web scraping tool, or as a last resort via reading the source code in `node_modules`), or use the skills available at [.agents/skills](.agents/skills).

Whenever you're done working on a feature, run check and lint on the whole package or packages you've been working on. Example: `bun run format && bun nx run-many --projects=editor,web --targets=check,lint`
33 changes: 0 additions & 33 deletions apps/web/.prettierignore

This file was deleted.

4 changes: 1 addition & 3 deletions apps/web/eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import path from "node:path";

import { defineConfig, includeIgnoreFile } from "eslint/config";
import globals from "globals";
import ts from "typescript-eslint";

import rootConfig from "../../eslint.config";
import svelteConfig from "./svelte.config";

const appGitignorePath = path.resolve(import.meta.dirname, ".gitignore");
const appGitignorePath = new URL("./.gitignore", import.meta.url).pathname;

export default defineConfig(
includeIgnoreFile(appGitignorePath),
Expand Down
25 changes: 10 additions & 15 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,19 @@
},
"dependencies": {
"$editor": "workspace:*",
"$theme": "workspace:*",
"@fontsource-variable/atkinson-hyperlegible-next": "^5.2.6"
"$theme": "workspace:*"
},
"devDependencies": {
"@internationalized/date": "^3.12.0",
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.69.1",
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@tailwindcss/vite": "^4.3.2",
"@types/node": "^26.1.0",
"@typescript/native-preview": "^7.0.0-dev.20260617.2",
"eslint": "^10.4.1",
"eslint-plugin-svelte": "^3.19.0",
"globals": "^17.7.0",
"mode-watcher": "^1.1.0",
"svelte": "^5.56.4",
"svelte-check": "^4.7.1",
"typescript-eslint": "^8.61.0",
"vite": "^8.1.3"
"@tailwindcss/vite": "catalog:",
"@typescript/native-preview": "catalog:",
"eslint": "catalog:",
"globals": "catalog:",
"mode-watcher": "catalog:",
"svelte": "catalog:",
"svelte-check": "catalog:",
"typescript-eslint": "catalog:",
"vite": "catalog:"
}
}
2 changes: 1 addition & 1 deletion apps/web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"check": {
"executor": "nx:run-commands",
"options": {
"command": "bun --bun svelte-check --tsgo --tsconfig ./tsconfig.json",
"command": "bun --bun svelte-check --tsconfig ./tsconfig.json",
"cwd": "{projectRoot}"
}
},
Expand Down
231 changes: 131 additions & 100 deletions bun.lock

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import path from "node:path";

import js from "@eslint/js";
import nx from "@nx/eslint-plugin";
import svelte from "eslint-plugin-svelte";
import { includeIgnoreFile, defineConfig } from "eslint/config";
import ts from "typescript-eslint";

const gitignorePath = path.resolve(import.meta.dirname, ".gitignore");
const gitignorePath = new URL("./.gitignore", import.meta.url).pathname;

export default defineConfig(
includeIgnoreFile(gitignorePath),
Expand Down Expand Up @@ -53,6 +51,16 @@ export default defineConfig(
},
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": [
"error",
{ fixStyle: "inline-type-imports" },
],
},
},
{
files: ["**/*.svelte"],
rules: {
"@typescript-eslint/no-confusing-void-expression": "off",
},
},
);
39 changes: 28 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,28 @@
"name": "@org/source",
"version": "0.0.0",
"private": true,
"workspaces": [
"apps/*",
"packages/*"
],
"workspaces": {
"packages": [
"apps/*",
"packages/*"
],
"catalog": {
"@eslint/js": "^10.0.1",
"@sveltejs/package": "^2.5.8",
"@sveltejs/vite-plugin-svelte": "^7.2.0",
"@tailwindcss/vite": "^4.3.2",
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
"eslint": "^10.6.0",
"eslint-plugin-svelte": "^3.20.0",
"globals": "^17.7.0",
"mode-watcher": "^1.1.0",
"svelte": "^5.56.4",
"svelte-check": "^4.7.2",
"tailwindcss": "^4.3.2",
"typescript-eslint": "^8.63.0",
"vite": "^8.1.3"
}
},
"type": "module",
"scripts": {
"dev": "bun nx run-many -t dev",
Expand All @@ -23,15 +41,14 @@
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@eslint/js": "^10.0.1",
"@eslint/js": "catalog:",
"@nx/eslint-plugin": "23.0.1",
"@types/node": "^26.1.0",
"@typescript/native-preview": "^7.0.0-dev.20260705.1",
"eslint": "^10.6.0",
"eslint-plugin-svelte": "^3.20.0",
"@typescript/native-preview": "catalog:",
"eslint": "catalog:",
"eslint-plugin-svelte": "catalog:",
"husky": "^9.1.7",
"nx": "23.0.1",
"oxfmt": "^0.57.0",
"typescript-eslint": "^8.62.1"
"oxfmt": "^0.58.0",
"typescript-eslint": "catalog:"
}
}
9 changes: 0 additions & 9 deletions packages/editor/.prettierignore

This file was deleted.

4 changes: 1 addition & 3 deletions packages/editor/eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import path from "node:path";

import { defineConfig, includeIgnoreFile } from "eslint/config";
import globals from "globals";
import ts from "typescript-eslint";

import rootConfig from "../../eslint.config";
import svelteConfig from "./svelte.config";

const appGitignorePath = path.resolve(import.meta.dirname, ".gitignore");
const appGitignorePath = new URL("./.gitignore", import.meta.url).pathname;

export default defineConfig(
includeIgnoreFile(appGitignorePath),
Expand Down
32 changes: 14 additions & 18 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,23 @@
"dependencies": {
"$theme": "workspace:*",
"@motion-core/motion-gpu": "^0.12.0",
"@xyflow/svelte": "^1.6.1",
"mode-watcher": "^1.1.0"
"@xyflow/svelte": "^1.6.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@sveltejs/package": "^2.5.8",
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tailwindcss/vite": "^4.3.2",
"@types/node": "^26.1.0",
"@typescript/native-preview": "^7.0.0-dev.20260617.2",
"eslint": "^10.4.1",
"eslint-plugin-svelte": "^3.19.0",
"globals": "^17.7.0",
"oxfmt": "^0.57.0",
"svelte": "^5.56.4",
"svelte-check": "^4.7.1",
"typescript-eslint": "^8.60.1",
"vite": "^8.1.3"
"@sveltejs/package": "catalog:",
"@sveltejs/vite-plugin-svelte": "catalog:",
"@tailwindcss/vite": "catalog:",
"@typescript/native-preview": "catalog:",
"eslint": "catalog:",
"globals": "catalog:",
"mode-watcher": "catalog:",
"svelte": "catalog:",
"svelte-check": "catalog:",
"typescript-eslint": "catalog:",
"vite": "catalog:"
},
"peerDependencies": {
"svelte": "^5.56.4",
"tailwindcss": "^4.3.2"
"svelte": "catalog:",
"tailwindcss": "catalog:"
}
}
2 changes: 1 addition & 1 deletion packages/editor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"check": {
"executor": "nx:run-commands",
"options": {
"command": "bun --bun svelte-check --tsgo --tsconfig ./tsconfig.json",
"command": "bun --bun svelte-check --tsconfig ./tsconfig.json",
"cwd": "{projectRoot}"
}
},
Expand Down
10 changes: 4 additions & 6 deletions packages/editor/src/lib/components/editor/Editor.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<script lang="ts">
import { Resizable } from "$theme/components/ui";
import { FragCanvas, defineMaterial } from "@motion-core/motion-gpu/svelte";
import type { PaneGroupProps } from "paneforge";

import NodeGraph from "./NodeGraph.svelte";

let { class: className, ...restProps }: { class?: string; restProps?: PaneGroupProps } =
$props();
let { class: className }: { class?: string } = $props();

const DEFAULT_SHADER = `fn frag(uv: vec2f) -> vec4f {\n\treturn vec4f(0.0, 1.0, 1.0, 1.0);\n}`;

Expand All @@ -19,8 +17,8 @@
);
</script>

<Resizable.PaneGroup direction="horizontal" class={className} {...restProps}>
<Resizable.Pane defaultSize={50}>
<Resizable.PaneGroup direction="horizontal" class={className}>
<Resizable.Pane defaultSize={30}>
<div class="notexture size-full">
<FragCanvas
{material}
Expand All @@ -29,7 +27,7 @@
</div>
</Resizable.Pane>
<Resizable.Handle />
<Resizable.Pane defaultSize={50}>
<Resizable.Pane defaultSize={70}>
<NodeGraph bind:frag />
</Resizable.Pane>
</Resizable.PaneGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import { ContextMenu } from "$theme/components/ui";

import "@xyflow/svelte/dist/style.css";
import "./xy-theme.css";
import { cn } from "$theme/utils";
import {
Expand Down Expand Up @@ -113,7 +112,7 @@
fitView
minZoom={0.1}
maxZoom={3}
class={cn("h-full", className)}
class={cn("", className)}
proOptions={{ hideAttribution: false }}
>
<Controls showLock={false} showZoom={false} />
Expand Down
Loading