Working locally
Make a site on your machine, see it instantly, and push it to memcode.ai when you're ready.
In the memcode CLI, websites work like git. You make a site on your own machine, change it with a live local preview, and put it on memcode.ai only when you decide to. Nothing is created online until you push.
| Step | Ask memcode | Or run |
|---|---|---|
| Make a site | "make me a website for my bakery" | memcode websites init crumb |
| See it | (it starts the preview for you) | memcode websites dev crumb |
| Change it | "make the header smaller" | memcode in the site's folder |
| Put it online | "push it" | memcode websites push crumb |
| Make it live | "publish it" | memcode websites publish crumb |
| Share the code | "zip it up" | memcode websites zip crumb |
Make a site
In any memcode session, from any folder:
make me a website for Crumb, a neighborhood bakeryMemcode makes the site on your machine, builds what you described, and starts
a local preview at http://localhost:5173. It asks whether to open it in your
browser. Keep asking for changes; the preview updates as soon as each one
lands, with no build to wait for.
Sites you make this way live in ~/.memcode/websites/<name>. Each one is a
real Vite + React project in its own git repository, so you can also open it
in your editor.
The local preview needs Node.js. If it isn't installed, memcode offers to install it for you.
Point it at sites you like
Name a site you want yours to look like:
make me a site for Elventech, an AI consulting firm, in the style of ode.com.
Past clients: Samsung, Apple, Yahoo and Wells Fargo.Memcode opens the reference in a browser, measures its design (typefaces, type sizes, colors, spacing, how sections are laid out, what moves), builds your site to match it with your own content, and then looks at your site next to the reference on desktop and mobile and keeps refining. It won't copy the reference's text, logos, photos or paid fonts, and it won't make up facts about your business: anything it needs and doesn't know is left as an obvious placeholder.
Watch it work
Each change shows as it happens: which files memcode edits, the pages it
looks at, and the packages it adds. The screenshots it takes are saved in the
site's .memcode/looks folder so you can see what it saw.
After building, memcode reviews its own work: it puts your site next to the reference on desktop and mobile, checks the copy for anything you didn't tell it, fixes the biggest differences, and looks again, until a review finds nothing significant. Then it runs the same production build memcode.ai runs, fixes anything that would break, and saves the change as one commit in the site's folder, so you can see the diff or undo it with git. A large change can take 15 to 20 minutes.
The site remembers what you asked for and which sites it should look like, so later you can just say "pick up where we left off" or "make sure it still matches the reference".
Packages
Every site starts with a design kit, already installed here and on memcode.ai: React and Tailwind, ready-made components, GSAP and Motion for animation, Lenis smooth scrolling, three.js for 3D, and about 28 typefaces that ship with the site.
Memcode keeps the kit up to date. When it updates the kit, for example with a security fix, your site's kit packages move to the new versions the next time you start the dev server or memcode.ai builds the site. Versions you picked yourself stay as they are, and an update that could break your site's code is never applied on its own.
Memcode can add other npm packages when a site needs them, as long as each one is at least 14 days old, widely used, permissively licensed, free of install scripts and not deprecated. Packages always install with scripts turned off. Pushing checks the same rules, so a site that works on your machine builds on memcode.ai. You can do the same yourself:
memcode websites deps add canvas-confetti crumb # add a package
memcode websites deps check crumb # check every package
memcode websites deps sync crumb # bring kit packages up to date
memcode websites check crumb # will it build on memcode.ai?Put it online
push itThe first push creates the site on memcode.ai, gives it its
yoursite.memcode.app address, and builds a private preview there. Later
pushes update that preview. Nothing is public yet.
When it's ready for everyone:
publish itIf you've changed the site since your last push, publishing pushes those changes first, so what goes live is what you saw locally. Publishing always asks before it changes what the public sees.
Pushing and building on memcode.ai are available to preview accounts while Websites is in preview. Making and changing sites locally works for everyone.
Work on a site you already have
work on my crumb site: add our opening hoursIf the site is only on memcode.ai, memcode copies it to your machine first. If you already have a local copy, it reuses it, and brings it up to date when it has no changes of its own.
If someone changed the site on memcode.ai since your last push, pushing merges those changes in with yours. If the two conflict, memcode stops and tells you rather than overwriting anything.
Build on memcode.ai instead
To skip the local step, ask for it: "create the site on memcode.ai" or "build a hosted preview". From the command line:
memcode websites create --prompt "A one-page site for Crumb, a neighborhood bakery"
memcode websites open crumb --previewShare the code
memcode websites zip crumbThis saves crumb.zip with the site's source: no node_modules, no build
output, nothing machine-specific. Anyone can unzip it, run npm install and
npm run dev.
Use your own folder
To keep a site somewhere other than ~/.memcode/websites, pull it into a
folder of your choice:
memcode websites pull crumb
cd crumb
memcode websites devIn your own folder, commit your changes with git before you push; memcode only commits automatically in the folders it manages.