Connect a project
Try the demo, install Unravel and connect your first project.
In this guide
Unravel currently works from a source checkout. The prepared demo is available in the browser without a project folder. There is no public package download yet.
Requirements
You need Python 3.12 or later and Node.js 20 or later.
Build and run the local app
Open Terminal 1 in the repository root. Install the Python app and start the API using the commands for your system:
Windows PowerShell
py -3 -m pip install -e ".[dev]"
py -3 -m apps.unravel.cli serve --port 8000
macOS / Linux
python3 -m pip install -e ".[dev]"
python3 -m apps.unravel.cli serve --port 8000
Open the app
From the repository root, install the frontend dependencies and build the interface:
npm ci --prefix web
npm run build --prefix web
Open Terminal 2 with its working directory set to web, then start Vite:
npm run dev -- --host 127.0.0.1 --port 5173
Open http://127.0.0.1:5173. Vite serves the React interface and proxies /api to the local Python server. The API listens only on 127.0.0.1. Press Ctrl+C in each terminal to stop the processes.
Run local checks from the repository root:
python -m apps.unravel.cli doctor
The doctor command checks the built interface, storage, port and source parser. It does not print keys.
Try the prepared demo
Open the prepared Search demo. Compare the working response with 200 OK, broken UI, choose Try Search, then inspect the source in Explore. The demo is a simulation. It does not run a live experiment or send an AI request.
Build a local wheel
The repository can build a wheel for local installation, but no package is published for public download. From the repository root, build the frontend and wheel:
npm run build --prefix web
python -m pip install build
python -m build --wheel
The result is dist/unravel-0.3.0-py3-none-any.whl. Install that file in a Python 3.12 environment when you need the packaged interface. Node.js is not required after the wheel is built.
Connect a project
- Open Your projects, choose Connect a project, and paste an absolute folder path.
- Wait for source capture. The overview reports readable files, detected starting points and exclusions.
- Select a recognizable action. Its source path appears underneath.
- Inspect a source file. You can save notes without an AI key.
- Optionally run an approved browser experiment using disposable data. Unravel reads source and your editor still makes changes.
Supported projects include React, JavaScript, TypeScript and Python with FastAPI routes. Dynamic or unusual code can produce partial maps. The interface reports what it found and what remains uncertain.
Storage and optional AI
Data defaults to ~/.unravel, or C:\Users\your-name\.unravel on Windows. It is separate from source projects. Use the same --home value on later launches to reopen the same records.
Live questions use your own ANTHROPIC_API_KEY and optional UNRAVEL_MODEL. Set them in the API terminal or an untracked .env file, then restart the API. Read explanation requests and code and privacy before enabling a provider. Provider consent is required before selected source excerpts and a question are sent to Anthropic.
For contributors
The Vercel project root directory is web; its vercel.json rewrites serve app routes on refresh. Set VITE_SITE_URL in the repository root .env file for local builds, or in the Vercel project's environment variables, to your deployed domain. The placeholder in .env.example is https://your-unravel-domain.vercel.app. The Python API lives in apps/unravel. The unravel command starts the local app.
Read explore a feature or troubleshooting next.