# Scootch

> Precision design feedback for agent-built projects. Scootch is a free, open source design inspector for React. Tweak spacing, type, colour and more in the browser against your tokens, and hand the notes to your AI agent for faster design feedback.

Scootch is a dev-only inspector for React apps (React 18 or 19: Next.js, Vite, React Router, Astro). A designer presses ⌥I, clicks an element, tweaks it or leaves a note, and the notes go to their coding agent, who makes the real change. It renders nothing in production. Version 0.1.4, MIT licensed.

## Install

If you are an agent and were asked to add Scootch to a project, these are your steps:

Add Scootch to this project. It is a dev-only inspector for React apps: it renders nothing in production.

   1. Install it as a dev dependency: npm install -D scootch
   2. Find where the app is mounted (Next.js: the root layout; Vite: main.tsx). Import Scootch from 'scootch' and render <Scootch /> once, next to the app. It brings its own styles: there is no CSS file to import.
   3. Make notes save to .notes/notes.json. Next.js: add app/api/notes/route.js that re-exports GET, POST, PATCH and DELETE from 'scootch/next'. Vite: add scootchNotes() from 'scootch/vite' to the plugins.
   4. Add .notes/ to .gitignore.
   5. Start the dev server and check that ⌥I opens the panel.
   6. From now on, when I say "sc": read .notes/notes.json, act on every open note, then mark each one resolved with a one-line reply. Save that to your project instructions file (AGENTS.md, CLAUDE.md or the like) so it holds in every future session, for you and for any other agent.
   7. When it all works, tell me: "Scootch is installed. Press ⌥I to open it, and type sc whenever you want me to check your notes."

### npm

```bash
npm install -D scootch
```

### Next.js

```jsx
// app/layout.jsx
import Scootch from 'scootch'
// …inside <body>
<Scootch />
```

```jsx
// app/api/notes/route.js
export { GET, POST, PATCH, DELETE } from 'scootch/next'
```

### Vite

```jsx
// main.tsx
import Scootch from 'scootch'
// render <Scootch /> next to your <App />
```

```jsx
// vite.config.js
import scootchNotes from 'scootch/vite'
export default { plugins: [react(), scootchNotes()] }
```

## Reading the notes

Notes are saved by the dev server to `.notes/notes.json` in the app’s folder: one JSON array, a note per entry. The fields that matter:

- `id`: the note’s id
- `status`: `open` or `resolved`
- `page`: the path of the page it was left on
- `path` and `short`: a CSS selector for the element it is pinned to, in full and in brief
- `comment`: what the person wrote, or the values they changed
- `breakpoint`, `width` and `pageWidth`: the breakpoint the page was laid out at, the window’s width, and the page’s own width when the panel was docked beside it, so the fix is made for that size and not for all of them
- `reply`: your answer, once you have dealt with it

To act on them: read the file, make the change each open note asks for in the code, then set its `status` to `resolved` and its `reply` to one line saying what you did. Scootch never edits the code itself.

## What it does

### Fine-tune values intuitively

Tweak your code like a design file.

Click any element and change its spacing, layout, type, fill and more. Drag a value, type one, or pick a token; it all renders live on the page, and registers as a note for your agent to pick up. You can now use years of design-tool muscle memory straight in the build.

### See your tokens in context

Use your design system to catch outliers.

Scootch pulls your actual CSS tokens and checks every value on the page against them, so you can tell at a glance what belongs and what your agent just... made up. Works with Tailwind v4 and most token conventions out of the box. You can also use this freely even if you don’t have a system (I won’t judge).

### Measure and mark up easily

A squiggle is worth a thousand words.

You know the primal designer urge to drag a ruler out and check if everything aligns... well, you can just do that now. Also, mark up anything you need and attach a comment to it so you can easily tell your robot what on earth you’re actually talking about.

### Leave comments with context

Stick a note on simply anything.

Drop a comment pinned to any element, with or without value changes attached. Every note gets a numbered marker on the page, and your tweaks save themselves. Hit ‘Copy’ to hand them all to your agent as text, or it can read straight from .notes/notes.json when you give it a nudge.

See what’s off and fix it fast. Keep the speed of building with an agent, without losing the fidelity.

## Questions

### Is Scootch free to use?

Yes. Scootch is free and open source, forever. It’s MIT licensed, so use it on anything, client work included. It only runs while you’re developing, so it never shows up for your users: nothing of it renders in production.

### Who is this for?

Anyone who likes getting into the details of the design. Scootch suits people with opinions on specificities. Can you consolidate that type style with something close? Is everything lining up? Is the spacing here consistent, and if not, can we make it so? If these are the kind of questions on your mind when reviewing a build, you’ll feel at home. If you’re not too bothered by that level of detail it may be overkill (though everyone’s welcome to try!).

### Does it change my code?

Nope! Your tweaks preview on the page and are saved as notes for your agent, who then makes the real change.

### How do my notes get to my agent?

They save to .notes/notes.json in your project, so you can tell your agent to read them, or copy them out and paste them manually. (A shortcut comes in handy: the install prompt sets one up so you can just type "sc" and the agent will pick them up.)

### What does it work with?

React apps, on React 18 or 19: Next.js, Vite, React Router and Astro. It reads any CSS, whether that’s plain CSS, Sass, CSS modules or Tailwind. Vue, Svelte and plain HTML work too, with a small extra file to mount it.

### Do I need a design system first?

No, it shows raw values too. With tokens, it can tell you which values are on-system and which are one-offs.

### Who built it?

[Sania Saleh](http://sania.io), a designer who got tired of how much time QA ate after building with AI. Scootch started as an upgraded inspector for her own site and turned out to be useful for anything an agent builds, so here we are.

Scootch is built using some great open libraries: [Base UI](https://github.com/mui/base-ui), for the behaviour under the controls, [Toolcraft](https://github.com/pixel-point/toolcraft), [Fluid Functionalism](https://github.com/mickadesign/fluid-functionalism) and [DialKit](https://github.com/joshpuckett/dialkit), which parts of the interface were adapted from, and [Lucide](https://github.com/lucide-icons/lucide) for the icons. Scootch uses [ABC Areal and ABC Areal Mono](https://abcdinamo.com/typefaces/abc-areal) by Dinamo if your computer already has them, otherwise falls back to system fonts.

This site is set in [ABC Areal and ABC Areal Mono](https://abcdinamo.com/typefaces/abc-areal) by Dinamo.

### How can I give feedback?

Scootch is an open source project, so PRs are welcome! Or send Sania a tweet at [@saniaio](https://x.com/saniaio).

## Links

- [Documentation](https://github.com/saniaio/scootch#readme): every option, token prefixes, the embedded panel
- [Changelog](https://github.com/saniaio/scootch/commits/main)
- [MIT Licence](https://github.com/saniaio/scootch/blob/main/LICENSE)
- [The site, for people](https://scootch.dev)
