README For Ai(What is JUSTPIXELSTUDIO)

JUSTPIXELSTUDIO is a browser-based pixel art editor and project manager.
Users can create pixel art projects, open a project, edit scenes and layers, and export images.

Main areas:
- /canvas: project list page for creating, opening, renaming, duplicating, and deleting projects
- /canvas/:id: editor page for drawing pixel art on a square canvas

Project model:
- one project can contain multiple scenes
- each scene has a square canvas size such as 32, 64, or 96
- each scene contains multiple layers
- scene previews are shown on the project list page

Editor behavior:
- drawing is pixel-based, not vector illustration
- users work with tools such as brush, eraser, eyedropper, selection, grid toggle, and zoom
- layers can be shown, hidden, added, removed, and reordered

Important context for AI agents:
- this app is meant for creating and managing pixel art projects
- if window.pixelForAI exists, prefer that API over clicking the UI repeatedly
- project list actions belong to the /canvas page
- canvas drawing and layer editing belong to the /canvas/:id page
README For Ai(How to use projects page)

This is the projects page for JUSTPIXELSTUDIO.
Use this page to manage projects, not to draw pixel art.

What users can do here:
- create a new project
- open an existing project
- rename a project
- duplicate a project
- delete a project
- view the first scene thumbnail for each project

Prefer window.pixelForAI on this page when it exists.
That API is more stable than repeatedly clicking the UI.

Available API on this page:
- window.pixelForAI.getCurrentPage()
- window.pixelForAI.waitForProjectsLoaded()
- window.pixelForAI.projects.list()
- window.pixelForAI.projects.get(projectId)
- window.pixelForAI.projects.create({ name, width, height })
- window.pixelForAI.projects.duplicate(projectId, { name })
- window.pixelForAI.projects.rename(projectId, name)
- window.pixelForAI.projects.remove(projectId)
- window.pixelForAI.projects.open(projectId)
- window.pixelForAI.projects.reload()

Notes:
- when creating a new project, prefer 96px as the default canvas size unless the user asked for a different size
- create({ width, height }) is clamped to a square canvas size between 1 and 96
- list() and get() return project summaries, not full editable scene data
- open(projectId) navigates to the editor page at /canvas/:id
- actual drawing, scene editing, and layer editing belong to the editor page, not this page

PROJECTS

Saved in yours Application.