/fling:flingfrom Fling
Deploy, host, publish or share a static site, HTML file (including one in Downloads), zip, report, prototype or build folder (dist/, build/, out/) on the user's Fling server so they get a stable URL. Use when the user wants to put something online, get a link to a page or app they built, share a static build with colleagues or a client, manage (list, share, archive, delete, roll back) their Fling sites, or collect structured feedback, labels, ratings or eval judgements from reviewers on a site's pages.
Ships in Fling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fling puts a folder of static files online at a stable URL: https://<name>.<sites domain> on the
Fling server the user is logged in to (fling_whoami shows where sites are served; the tool
descriptions name it too). Site names are one global namespace on that server — first come,
first served across everyone who uses it. A new site is visible only to the user unless they
say otherwise (or the Fling opens new sites to everyone signed in to it). Re-flinging the same name updates the site in place; identical
content is a no-op; older content is restored instantly.
index.html, docs output, a prototype.Not for servers or anything needing a backend at runtime — Fling serves files only.
When the user asks how to do something with Fling rather than to do it, answer, then point them at
their Fling's guide, https://<their Fling>/guide (the MCP server's instructions name it): every
feature, by assistant, command line and web app.
The user may be signed in to several Flings (each has its own sites, sign-in and sites domain).
The MCP tools know all of them; every tool that talks to a Fling takes server (an address, host
or unique part of it, e.g. fling.example.com).
server out; the tools use it.server on
every call for the rest of the conversation, reads included. Switch only when the user asks.
A call without server doesn't run: it returns the list of Flings so you can ask.fling_servers lists the Flings live (the list in the descriptions was read at startup), with
who is signed in; fling_servers { use } makes one current, the same as fling use. Only switch
the current Fling when the user asks: it changes the CLI's default too.fling --server <host> … targets a Fling for one
command; without it, commands use the current one.npm run build) and find the output folder
(dist/ for Vite, build/ for CRA, out/ for Next export, _site/ for Eleventy…). A single
.html file, a .zip of a site or any other single file (.pdf, .svg…) can be flung
directly (see "Files, zips and downloads" below).fling_check_name { path: "dist" }: it returns the
name Fling would generate (e.g. rocketpod-docs), its URL and whether it is available,
yours (deploying updates their existing site) or taken. Confirm the name with the user before
deploying. Re-deploying a site you already flung in this conversation needs no confirmation.
Ask who should see a new site, unless the user already said: only them (only_me, the
usual default), everyone signed in to the Fling (members), specific people or teams
(people with emails, groups with groups by slug; both may be given), or anyone
(public, only when asked). Pass it as access on the first deploy. A re-deploy never changes
who can see a site: use fling_set_access for that.fling_deploy { path: "dist", name?: "my-app", spa?: true, access?: "only_me" }
(path is absolute or relative to the working directory). Without the MCP server, use the CLI
with --yes (it never prompts then): fling deploy ./dist --name my-app --access only_me --yes
(--access people --add [email protected], --access groups --group design). Use fling if it is
installed (command -v fling); otherwise prefix with npx @nearform/fling, and suggest the user
installs it once (the Get started page of their Fling shows the command).
For content you wrote in this conversation, use fling_publish { name, files: [{ path, content, encoding? }] } instead. It passes the files inline.my-app-cc). Ask the user to pick one or give another
name, then deploy again with name. Never silently pick a different name.warnings. When the Fling has comments, the result leads with the review link (reviewUrl):
give it first, as the link to share for feedback (reviewers sign in to the Fling to see the
site and comment), then the site URL.Notes:
api, www, fling…)
are reserved. Reuse the same name to update a site. Without a name, Fling generates one from the
project root (nearest .git, else package.json/pyproject.toml/Cargo.toml/go.mod) plus the
folders below it, skipping build output (dist, build, out, public, _site…), monorepo
containers (apps, packages, src…) and dot-folders: ~/work/rocketpod/docs →
rocketpod-docs, ~/work/mono/apps/web/dist → mono-web, ~/work/myapp/dist → myapp. It never
contains the user's name.spa: true (--spa) for client-routed apps (React Router, Vue Router…) so deep
links serve index.html instead of 404./assets/x.js resolves —
no need to change Vite's base.skipped).node_modules and anything in a .flingignore (gitignore syntax) are skipped too. Limits:
25 MB per file, 100 MB per deploy.index.html at the root, but HTML pages. fling_deploy and fling_publish don't deploy.
They report the pages. Ask the user whether to generate an index page that links them (retry with
listHtml: true) or deploy without one (listHtml: false; the root URL 404s but the pages still
work). If you might have flung the wrong folder (for example the project root instead of
dist/), say so.warnings say there is no index.html at the root, the URL will 404. Tell the
user.Use "x"? [Y/n or type another name]). With no index.html it offers [L]ist the HTML pages / [f]ling anyway / [a]bort; --list-html / --no-list-html decide up front. --yes, or no
terminal, skips the prompts. Fling then generates the listing when there are HTML pages, and a
taken name is an error.fling_deploy (and the CLI) accept:
.html/.htm file, served as index.html;.zip, extracted with a single top-level folder unwrapped and __MACOSX/dotfiles skipped;Pitch Deck (1).html → pitch-deck.~/Documents/Claude, ~/Claude and Claude Desktop/Cowork
output folders. The result says where it was found. fling_find_files { query? } lists recent
candidates./mnt/user-data/outputs/…, /sessions/…), and never
curl or upload from it. That machine can't reach Fling. Publish what you wrote with
fling_publish. For a file the user downloaded, use its name with fling_deploy.https://<their Fling>/downloads/fling.mcpb),
then double-click it, drag it into Claude, or go to Settings → Extensions → Advanced settings →
Install Extension. One extension serves every Fling: installing from another Fling updates it
and adds that Fling.If a tool says the user is not logged in, call fling_login. It opens the user's browser at their
Fling's sign-in page. If they haven't finished after about 30 seconds, it returns "Finish signing in
in your browser, then try again" and keeps waiting in the background for up to 5 minutes. Tell the
user, then retry. Without fling_login, ask the user to run this in Claude Code (the ! runs it in
their shell):
! fling login <url>
<url> is the address of their Fling (ask them if you don't know it); after the first login,
fling login alone signs in to the same one. If a tool says no Fling server is set up, this is
what to do. (If fling isn't installed, use ! npx @nearform/fling login <url>.)
To sign in to another Fling, or one not set up yet, call fling_login { server: "<its address>" }.
It is remembered, and becomes the current one only if none is.
fling_whoami checks the login.
When something about Fling doesn't work (sign-in fails, tools are missing, versions disagree), call
fling_doctor. It checks the CLI, its config, each Fling, the Claude Code plugin and the Claude
Desktop extension, read-only, and gives the fix for each warning (▲) and problem (✖). Tell the user
the fixes; run nothing for them without asking. Without the tool, ask them to run ! fling doctor.
If the Fling MCP server says a newer Fling release is out (in its instructions or a publish result), tell the user once and suggest the update it names, in a terminal:
npm i -g @nearform/fling@latest && fling setup
then restart Claude Code (or Claude Desktop). fling setup also updates this plugin and the
Claude Desktop extension.
Five access levels, narrowest first: only_me, groups, people, members, public.
fling_set_access { name, access, emails?, groups? } sets any of them (groups and people
take the whole list of addresses and group slugs, and may name both). Only change it when the
user asks. fling_info shows who can open a site.
fling_share { name } returns a public share link (https://s--<token>.<sites domain>).
Anyone with a share link can view the site without signing in — say so when you hand it over,
and only create one when the user wants to share with people who can't sign in.
refresh: true replaces the link (the old one stops working); revoke: true removes it.
fling_set_visibility { name, visibility: "public" } makes the site itself public (anyone can open it;
its review page and comments still need sign-in); "private" gives it back the access it had
(only the user, everyone signed in, or its list). Prefer a share link over making a site public.
fling_set_audience { name, add?, remove?, set?, clear? } edits that list of people
(addresses that can sign in to the Fling; where the Fling invites people from outside, as its tool
descriptions say, an outside address is invited as a guest, a reviewer who signs in by emailed
link and sees only what is shared with them, and too_many_invites means the day's invitations
are spent: nothing changed) and limits the site to them; clear: true opens it to
everyone signed in. The owner always sees it. It only applies while the site is private, a share link still
opens it to anyone (say so if one exists), and someone removed can keep seeing it for up to 5
minutes. fling_info shows who can open a site.
addGroups, removeGroups and setGroups on fling_set_audience do the same for groups
(named lists of people, by slug). fling_groups lists them (mine: true: the user's own;
members: [...]: only the groups of exactly those people) and fling_group_show { slug } shows
who is in one. Before making a group, or when an audience lists several people, call
fling_groups { members } and offer an existing group instead. Anyone can use any group, but only its owner can
change it: fling_group_create { slug, name, members? }, fling_group_members { slug, add?, remove? }, fling_group_rename, fling_group_delete (needs confirm: true;
sites keep their restriction and anyone it let in loses access, so confirm with the user). A site
limited to a deleted group alone shows "a deleted group (#)" and is its owner's only until
they add people or groups.
fling_info names them and the user's own role (fling_list too: "you are a publisher").fling_set_owners { name, add?, remove?, set?, addGroups?, removeGroups?, setGroups? } and
fling_set_publishers { … } change them, like fling_set_audience. Only owners may, and only
when the user asks. A site keeps at least one person as an owner (last_owner), and naming a
group trusts whoever manages it: say so when the user names one.owner_only): suggest asking one of its owners.A Path is a top-level folder of a site (/PAY-412/) with its own versions, rollback, owners
and publishers. Who can open it is the site's, so access is set once for the team. Publishing a
Path never touches the site's own pages or anyone else's Path, so teammates (and agents)
publishing different Paths never collide.
fling_publish { name, path: "PAY-412", files } (file paths relative to the
folder, its page index.html or a Markdown file), fling_deploy { path: "./plan", name, sitePath: "PAY-412" }, or fling deploy ./plan --name payments-plans --path PAY-412 --yes. The
first publish makes the Path, and the user owns it. The result's URL is the Path's. A path is
one folder: reports/2026 is refused; publish reports with 2026/ inside it.PAY-412, #1234); keeps publishing different
top-level folders of one site; the site's name ends in -plans, -specs or -reports; or a
publish result has the paths_index_missing hint. Ask, for example: "This looks like a team site
with a folder per ticket. Shall I set it up so each ticket is its own Path, with its own history
and owner, and the home page lists them?" Never change a site the user didn't ask to change.fling_paths_template { template: "plans" | "docs" | "reports" | "minimal", title? } (or fling paths init --template plans) gives a starter index.html with a Paths
block. Adapt it to their wording and look as much as they like, keeping the block: the bare
<!-- fling:paths --> marker, or a <!-- fling:paths -->…<!-- /fling:paths --> pair whose
contents repeat per Path with {{href}}, {{folder}}, {{title}}, {{date}}. Keep dates in
<time datetime="{{updated}}">{{date}}</time>, so they read "2 hours ago" for a week. Check it
with fling_paths_check { html } (or fling paths check), then publish it as the site's root
(no path).paths_index_missing says.
Offer one of the two above.fling_set_audience,
fling_set_publishers, offering an existing group first), and publish each item with
path: <ticket>. Name the folder after the ticket (PAY-412, gh-1234), from the branch when
there is one; never after a person.fling_paths { name } (or fling paths <site>) lists them. fling_info,
fling_rollback and fling_files take path for one Path, and so do fling versions,
rollback, files, owners and publishers (--path). A Path's owners (and the site's) change
it; its publishers publish it. Publishing to someone else's Path is path_not_yours: ask one of
its owners to add the user as a publisher.paths_block_hidden: the site's own files under a folder that is a Path are hidden by it.
Publish them to the Path instead, or leave them out.base_changed on a Path: another publish to it went live first. The CLI retries once; with the
MCP tools, publish again.too_large, "has … live Paths, the most this Fling allows": the site has as many live Paths
(published, not archived) as its Fling allows (fling paths <site> says how many of how many).
List the site's Paths (fling_paths or fling paths <site>) by when each was last updated,
show the user the oldest, and propose archiving some (an archived Path keeps its files and
versions, and no longer counts). Archive only the ones the user agrees to, with
fling paths archive <site> <folder>, then publish again. Never archive or delete a Path on
your own. Or offer to publish to one of the site's existing Paths instead. Bringing back an
archived Path (fling paths unarchive) is refused the same way.Markdown files (.md) are served as pages, rendered as GitHub-flavoured Markdown: tables, task
lists, code blocks. A folder's index.md, else its README.md, else its only .md file, is its
home page. Add ?raw=1 to a page's URL for the source. So a plan written as Markdown can be
published as it is: no need to convert it to HTML.
fling_pull { name } (or
fling pull <name> <dir>) downloads it into a folder; edit the files there; then fling_deploy { path: <that folder> } (or fling deploy <dir>) publishes on the version pulled and uploads
only what changed.fling_read_files { name } returns the files
inline and the versionId; follow cursor for more, or name the files you need in paths. Then
fling_publish { name, base: <versionId>, files: [only the changed or new files], remove: [files to delete] }: every other file is kept as it is.fling_pull { name, path: "PAY-412" } (or fling pull <site> <dir> --path PAY-412)
pulls just that Path, and deploying the folder publishes it back to the Path on the version
pulled. fling_read_files { name, path } names the files within the Path; publish them back with
fling_publish { name, path, base, files, remove }.fling_read_files) has its built bundle,
_fling/server.mjs, and its fling.json (written into the folder; server in
fling_read_files' result), never the server's source, which stays in the author's own
repository. Deploying it as it is keeps the server and its secrets; publishing on base without
siteServer keeps the base's config while the bundle is unchanged. Change the server from its
source, not by editing the bundle. Anyone else who pulls it gets only its pages.base_changed: someone published the site after you pulled it. Never force over it without
asking: pull (or read) it again, redo the change on the new version and publish that. Only if
the user says to replace what they published, deploy with force: true (--force).pull capability says so: publish the whole site instead.fling_archive { name } takes a site offline (404) and hides it, but keeps every file and
version; unarchive: true restores it. Prefer this.fling_delete { name, confirm: true } permanently removes the site and all versions. Only call
it after the user has explicitly confirmed deleting that site.People review a site on its review page (<their Fling>/review/<name>) and leave comments on its
pages. When the Fling has comments, these tools exist:
fling_comments_list { name, path?, includeResolved? } — open threads with replies, the page and
the version each was written on. Use it to act on feedback.fling_comment_resolve { name, id, reopen? } — after fixing what a thread asks for (and
republishing), resolve it.fling_comment_add { name, body, path?, replyTo? } and fling_comment_delete { name, id } —
only when the user asks: comments are signed with their name.When the Fling has forms (the forms tools are listed), a site can carry a form: a JSON Schema
the review page shows beside each page, so reviewers pick from options instead of typing codes into
comments. Reach for one whenever the user wants labels, ratings, scores, eval judgements, an A/B
preference or survey answers. If they are asking reviewers to comment "PASS/FAIL" or "B2", suggest
a form instead (fling_comments_list says so when the comments look like that).
kind: "page") or
reviewers flag passages (kind: "comment"), which pages it is for, and whether reviewers should
see each other's answers.fling_forms_template { template, title? } with labels (a verdict
and notes per page, blind), rubric (criteria scored 1 to 5), compare (A, B or a tie, and
why), issue (a comment type: severity and category) or survey. Adapt it to the answers.fling_forms_check { forms, paths } with the site's file paths. It lists errors
(each saying where), the pages each form applies to, and globs that match nothing.fling_publish / fling_deploy with forms, or save it as fling.forms.json
at the top of the folder (fling forms init writes one; never served as a file). Publishing the
whole site again without it removes the forms; one on a base keeps them. Forms are the site's:
a path publish leaves them alone and refuses a forms config, so publish forms with the site's
root, with paths patterns that reach the Path's pages (PAY-412/**).The file:
{
"title": "Labels",
"forms": [
{
"id": "verdict",
"title": "Label this interview",
"kind": "page",
"paths": ["interviews/**"],
"visibility": "own",
"schema": {
"type": "object",
"required": ["verdict"],
"properties": {
"verdict": {
"title": "Verdict",
"description": "Pass: the interviewer followed up on every vague answer.",
"type": "string",
"oneOf": [
{ "const": "pass", "title": "Pass: handled it well" },
{ "const": "fail", "title": "Fail: missed it" }
]
},
"notes": { "type": "string", "title": "Notes" }
}
},
"uiSchema": { "verdict": { "ui:widget": "radio" }, "notes": { "ui:widget": "textarea" } }
}
]
}
title (up to 40 characters) is what the review page calls the forms ("Labels", "Evals").oneOf of { "const", "title" }: the const is stored, the title is what
reviewers read, so make titles readable sentences, never bare codes. Give a choice field its
type ("string", or "integer" for scores) so it renders as a choice everywhere.required, and use "ui:widget": "radio" for short choices.description: that is what reviewers see while answering.paths are globs over the pages (["**", "!drafts/**"]); without them a form is on every page."visibility": "own" keeps answers blind: each reviewer sees only theirs, the owners see all,
which is what inter-rater agreement needs.After publishing, give the user the review link to share; the result lists the forms and the pages
each applies to, and the responses page that shows progress. fling_responses_list { name, form?, path? } returns every response as data and how many pages each form has left
(fling responses <name> --format csv in a terminal). Only answer a form yourself with
fling_response_submit { name, path, formId, data } when the user asks, for example to pre-label
pages so your judgements can be compared with the reviewers'.
When the Fling runs site servers (the fling_logs, fling_server_template and, locally,
fling_dev tools exist), a site can answer /api/* from a small server of its own, behind the
site's access. Use one when the site needs something a static page can't do: a key kept off the
page (an LLM or webhook proxy), data only signed-in people may see, a write to somewhere else.
The full guide is docs/site-servers.md in the Fling repository, linked from the CLI's README.
server.ts or server.js at the top of the folder, exporting
default { fetch(request) } (or a Node createServer that listens). fling_deploy bundles it
with its npm dependencies; run npm install first. A fling.json declares the secrets it
needs and a health path the start probe calls. Run it first with fling_dev { path, as? },
try the routes with curl, call fling_dev again to read its log, then deploy.fling_server_template and send a
dependency-free _fling/server.mjs (importing only node:* and @nearform/fling/server), with
fling.json among the files or as siteServer.secrets_missing, tell the user which names to set (fling secrets set <site> --from .env NAME
or the site page); the version goes live as soon as the last is set.public_server: a public site's /api/* can be called by anyone. Tell the user, ask, and
only if they agree repeat with confirmPublicServer: true.server_failed_to_start: nothing changed for visitors. Read the log lines in the result,
fix the server (run it with fling_dev), and deploy again. fling_logs { name, since? } reads
the live server's log.id, never their email: everyone who publishes the
site reads its logs.When the user asks how a site is doing, whether anyone has looked at it, how often it changes, or
who is using it, call fling_stats { name } (fling stats <name>, --json for the data). It
gives views (page loads) and pushes (versions going live) over the last 28 days and 12 months,
when the site was last viewed and last pushed, and a count per UTC day.
since is when the site's first count was stored: totals cover no further back than that.When the Fling has notifications (it emails people when a site is shared with them, they are added to a group, or someone comments on their site or replies in their thread), these tools exist:
fling_notifications — each event (by key, e.g. comment.created) with, per channel (email),
whether it is on or off, (yours) where the user chose it, and whether everything is muted. Use
it when the user asks why they get (or don't get) emails.fling_notifications_set { muted?, cells? } — muted: true stops everything (false turns it
back on, keeping their choices); cells: [{ event, channel, value }] turns one event on or off,
or back to the default (value: "default"). Only change what the user asked for.What was sent to them is on their settings page (<their Fling>/settings/notifications) and in
fling notifications sent.
fling_check_name { name } or { path } — is a name available / the user's / taken (with
suggestions)? With path, checks the name fling_deploy would generate for that file or folder.fling_find_files { query?, limit?, days? } — recent .html/.zip files and folders with an
index.html in Downloads, Desktop and Claude output folders (last 14 days by default).fling_list { archived?, sort?, limit?, cursor? } — the user's sites with URL, visibility and
share link, last updated first; sort: "created" (newest first) or "name" (A–Z) for another
order. Without limit it lists them all. With limit it lists one page; when more remain, the
result gives a cursor: call again with it (and the same sort and limit) for the next page.
Page when the user has many sites and only wants the first few.
shared: true lists instead the restricted sites other people have shared with the user (by
address or through a group), with owner and review link: use it when the user asks what has
been shared with them. Only the owner manages those sites (and the instance's admins, from the
web app).fling_info { name } — one site with its version history. An admin reads anyone's site this
way; changing someone else's site takes the web app, so say so rather than retrying.fling_files { name, versionId? } — the files in the live version (or an earlier one): use it to
check what was published, e.g. when the user reports a 404 (no root index.html → the root 404s).fling_rollback { name, versionId } — serve an earlier version (ids from fling_info).CLI equivalents: fling ls (--shared), fling info <name>, fling stats <name>, fling versions <name>, fling files <name>, fling share <name> [--refresh|--revoke], fling visibility <name> private|public, fling access <name> [--add|--remove <emails>|--group|--remove-group <slugs>|--clear], fling owners|publishers <name> [--add|--remove|--set <emails>|--group|--remove-group <slugs>], fling groups [list|show|create|add|remove|rename|delete], fling notifications [set <event> <channel> on|off|default|mute|unmute|sent], fling archive|unarchive <name>,
fling rm <name> --yes, fling rollback <name> <versionId> (prefix with npx @nearform/fling
if it is not installed globally; add --json for machine-readable output).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nearform/fling --plugin fling