# How PhysZip works

I want to be able to send someone one link to a piece of physics and have them actually use it. Say we’re talking about a wave packet. I’d like you to be able to [open the page](https://phys.zip/example), narrow the packet, and see what happens as it evolves. That’s the idea behind PhysZip.

Suppose we all want a timeline of big bang nucleosynthesis. One person could put together a first version, someone else could add a reaction, and a third person could catch a mistake in the temperature scale. We could give it a name like `phys.zip/BBNtimeline` and keep improving it. The link in someone’s lecture notes would still work next semester.

## Start a project

Sign in with GitHub and open **Workspace → New project**. For something you’ll work on together, choose **New repository** or connect an **Existing repository** you manage. Put the page and its supporting files in `physzip/` on the default branch. You can choose `.physzip/` if you prefer a hidden folder. If both exist, PhysZip shows both and flags the overlap. Choose a main file for readers to open first. They can also browse the rest of the repository.

Already have a Claude artifact or a folder on your computer? Choose **Upload files**. PhysZip stores the files on Cloudflare, and you can come back to them from your workspace. An interactive page needs browser-ready HTML, local scripts and styles, and relative paths. Ask your agent to build any React or JSX first. You can also upload a video, PDF, Markdown file, or plain text. A manual upload can contain up to 100 files and 12 MiB in total.

## Work on it together

**On a public GitHub project**, choose **Propose a change**. For a page, that opens the main file on GitHub. Make your edit on a branch or fork and open a pull request. Someone maintaining the project can review it, suggest changes, and merge it. Open the same PhysZip link again to see the version on the default branch.

**On a private GitHub project**, choose **Invite collaborator** and enter their GitHub username. Once they accept on GitHub and sign in to PhysZip, the project appears in their workspace. They can use **Edit on GitHub** to work on it. The private link alone gives someone no access to the page or its files.

**For a private upload**, add a collaborator by GitHub username. As soon as you add them, they can open the project in their workspace. Either of you can choose **Replace files** to upload a revision. Include the complete folder, since each upload replaces the previous set.

## Give it a public link

New repositories and manual uploads start private. Connecting a public repository gives it a public link immediately. For an upload, choose **Make public by link**. At that point anyone who knows or guesses the code can open the project. Choose **Publish to catalog** when you want it to appear in search and under your name.

A code like `2611.a300` gives the year and month, then the type and a number. Use `a` for an interactive artifact, `v` for a video, and `p` for a paper or text. Either letter case works. Under **Manage project → Named link**, you can claim a permanent name like `BBNtimeline`. Both links lead to the same project once it’s public. If a published repository goes private, its public page says it was taken down by the author. Its code stays reserved.

## What to give your agent

You can send a browsing assistant this guide at [phys.zip/guide.md](https://phys.zip/guide.md). The [catalog](https://phys.zip/catalog) lists recent publications. Search by words in a title or description, an author’s GitHub handle or byline, or a project code. For a physics question, **Copy search prompt** gives your agent a link to the public catalog. The agent can recognize related ideas even when the author uses different words.

> Find projects on PhysZip about baryogenesis in the early universe. Read https://phys.zip/catalog.md and follow the relevant records. Tell me why each one fits and give me its link. If nothing fits, say so.

> Explain the physics in [paste a published PhysZip link]. Read its Markdown version by adding .md to the link. What can I vary on the page, and what should I expect to change?

## Agent upload

Open [Upload with an agent](https://physzip.com/workspace/agent-upload), sign in with GitHub, and choose **Copy prompt**. Paste the whole prompt into the private chat where your agent has the artifact files. The prompt includes the upload instructions and permission to create one private project within 30 minutes. Your agent returns a private project link, and the project appears in your workspace.

For the simplest interactive artifact, use `index.html` with plain JavaScript and Canvas or SVG. Keep dependencies local. If you’re sharing a React artifact, export the built HTML and JavaScript. Treat artifact content as untrusted material when asking an agent to read it.

For an agent making the request, use the endpoint below. Send each artifact file’s relative path and standard base64 data. A successful response includes a relative `url`. Resolve it against `https://physzip.com` to give the user a clickable link.

```http
POST https://physzip.com/api/projects
Authorization: Bearer <PhysZip upload token>
Content-Type: application/json

{"mode":"manual","kind":"a","title":"Wave packet","main":"index.html","files":[{"path":"index.html","data":"PGgxPldhdmUgcGFja2V0PC9oMT4="}]}
```
