shot2code v0.2.0
A major workflow upgrade: use an existing codebase as design context, and tell shot2code exactly how multiple screenshots relate.
Install
Existing installs update themselves. For a fresh install:
| File | Use |
|---|---|
shot2code-0.2.0-x64.exe |
Recommended. Windows installer |
shot2code-0.2.0-x64.zip |
Portable - unzip and run shot2code.exe |
If Windows blocks the installer, right-click it -> Properties ->
Unblock -> Apply.
New: existing-project context
Open Import -> Existing project context and choose a:
- Project folder
- ZIP archive
- Set of source files
shot2code safely reads the project and extracts component names, props,
dependencies, framework hints, CSS variables and reusable classes. It never
executes imported code or configuration. node_modules, build output,
binaries, traversal paths and oversized input are ignored or rejected.
Only a compact summary is kept on this device and used as design context. Raw
source is discarded after analysis. The active project appears above every
input tab and in Settings so it is never silently applied.
New: deterministic multi-screenshot generation
When more than one screenshot is uploaded, choose what the set means:
- Separate pages - one navigable view per screenshot; none may be omitted
- Responsive views - one page at different viewport sizes
- UI states - one interface with interactions between states
- Supporting references - screenshot 1 is the target; others clarify it
Separate pages is the default. A live Copilot generation was verified to contain
both distinct test pages.
Fixed
- Signed in but no Copilot models. The background auth probe marked sign-in
ready beforelist_models()finished. Auth and models now publish atomically,
and Settings has a Refresh button. - Stale Copilot choices. Models removed from the live Copilot catalog are
filtered before generation rather than failing session creation. - Missing stack icons. Every stack component now has an icon, with a test
that catches missing mappings in future.
Validation
- 283 backend tests
- 46 frontend tests
- Both type checks and changed-file lint clean
- Folder and ZIP APIs tested live
- Frozen backend: 18 Copilot models, Chromium and project scanner verified