iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
✏️

I Built a Web App to Create SVG Filters Visually with a Node Editor

に公開

SVG filters are surprisingly difficult, aren't they? It's hard to imagine how the filters stack from just reading the code, as inputs and outputs are managed through attributes like in, in2, and result.

I have built a web application that allows you to edit these filters as a node editor, making the process visually intuitive.

https://svg-filter-maker.nishihara-tsubasa.work/

You can create complex effects by connecting filters together. By changing the connections, you can experiment with various ways of stacking them.

Technologies Used

I used Vue.js as the JavaScript framework and Vue Flow for the node editor. These two constitute the core functionality. Additionally, I used Pinia for state management and Vue Router for routing.

Motivation

The motivation to create SVG Filter Maker came after reading this article:

https://ics.media/entry/241122/

I occasionally tinker with 3DCG in Blender, and I felt that the mechanism of SVG filters is very similar to a material editor. That led me to think: "Maybe I can create SVG filters using a node editor?"

However, at the time, it was just an idea with no concrete vision for implementation, so I left it on the shelf for a while. Later, as I started working with AI, I realized that I might be able to pull it off even without a detailed implementation plan by letting the AI handle it.

Collaboration with AI

From there, I brainstormed with ChatGPT to organize my ideas into a specification document. I verified the proposed technologies, conveyed my preferences, and built out the requirements. Based on that, I used Cursor to have the AI create the core features.

Among the products I've made so far, this one has a particularly high proportion of AI involvement. More than half of the core logic was AI-generated.

In particular, almost all of the logic for constructing SVG filters from node information and configuring Vue Flow according to the filter types was written by the AI. Therefore, my role was to focus on designing an interface that is easy for users to navigate.

I feel that in the future, we will see an increasing number of workflows where the product comes first, and the design is built out from there.

Future Plans

While this tool cannot currently handle every single feature of SVG filters, I plan to keep updating it so that creating SVG filters becomes as easy as possible.

I would appreciate your support!

https://buymeacoffee.com/crayfisher_zari

Discussion