Documentation/Connect a project
GET STARTED3 min read

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

bash
py -3 -m pip install -e ".[dev]"
py -3 -m apps.unravel.cli serve --port 8000

macOS / Linux

bash
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:

bash
npm ci --prefix web
npm run build --prefix web

Open Terminal 2 with its working directory set to web, then start Vite:

bash
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:

bash
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:

bash
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

  1. Open Your projects, choose Connect a project, and paste an absolute folder path.
  2. Wait for source capture. The overview reports readable files, detected starting points and exclusions.
  3. Select a recognizable action. Its source path appears underneath.
  4. Inspect a source file. You can save notes without an AI key.
  5. 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.