Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@nearform/fling

Latest version: v0.24.3

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: alfonsograziano_nf, clifton-nearform, donal.moynihan, eamonn.frisby, elizibin, gbdev13, ryan.roemer, sociablesteve
1 Stars
0 Forks
33 Versions
4.9K Downloads
TypeScript Repo language

Scan summary

@nearform/fling was last scanned on 26 Nov 2026 at version 0.24.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest 5 were published on 26 Nov 2026.
  • Findings: No rules fired in version 0.24.3.
  • Downloads: 4,936 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.24.3 LATEST 26 Nov 2026 No rules fired
0.24.2 26 Nov 2026 No rules fired
0.24.1 26 Nov 2026 No rules fired
0.24.0 26 Nov 2026 Not shown
0.23.0 26 Nov 2026 Not shown

No rules fired in 0.24.3

Findings

Findings for v0.24.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.24.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@nearform/fling

Fling a folder of static files at your Fling server and get a stable link back:

https://<name>.<your sites domain>

Site names are one global namespace per server, first come first served. Sites are private to people signed in to that Fling by default. Share links make them viewable by anyone who has the link.

Upgrading from 0.2? The CLI no longer has a built-in server. If you were logged in with 0.2 it carries on with the server you logged in to. Otherwise (or on a new machine) run fling login <url> once with your Fling's address. See the changelog.

Install

Node 22 or later.

npm install -g @nearform/fling   # then: fling …
# or run without installing:
npx @nearform/fling …

Set up

fling setup https://fling.example.com   # your Fling's address; later runs can leave it out

This does everything a new machine needs:

  1. Signs you in. The CLI reads the server's /.well-known/fling (its name, where its sites live, how people sign in) and remembers it. Your browser opens for sign-in (on a Fling with two sign-in providers, its login page, to choose one) and an API key is stored in ~/.fling/config.json (mode 0600). This is skipped if you're already signed in. The server becomes your current one; logins to other Flings are kept. When you are already signed in, it reads the server's /.well-known/fling again, so the CLI knows the release it runs now.
  2. Adds Fling to Claude Code. If claude is on your PATH, setup installs the Fling plugin (skill + MCP server) from the nearform/fling marketplace. --scope project|local installs it for this project only (default user). When the plugin is already installed, setup refreshes it instead (claude plugin marketplace update fling, then claude plugin update fling@fling) and says which version it went from and to; restart Claude Code (or run /reload-plugins) after an update. A refresh that fails is reported and leaves the installed plugin as it was; it doesn't fail setup.
  3. Adds Fling to Claude Desktop. If Claude Desktop is installed (macOS, Windows), setup downloads the fling.mcpb of the CLI's own version and opens it, and Claude Desktop asks you to confirm. That is the server's copy when the server runs the same release, otherwise the one attached to the CLI's GitHub Release (the server's copy if that download fails). Running setup again updates an older extension in place.

When it finishes, setup prints the address of the server's user guide (<server>/guide): how every feature works from an assistant, the command line and the web app.

On a terminal it asks before installing the plugin and before step 3. With --yes it does them without asking. Refreshing an installed plugin needs no question.

Staying up to date

Every Fling publishes the release it runs (release in /.well-known/fling). After a command, when the server it used runs a newer release than the CLI, the CLI prints one line on stderr:

▲ Fling 0.9.0 is out (this CLI is 0.8.0). Update: npm i -g @nearform/fling@latest && fling setup

It compares with the metadata the CLI already holds, so it never makes a request of its own. The stored release stays current because every server response says which release the server runs (the Fling-Release header): when it differs from the stored one, the CLI stores the new release. That needs both the server and the CLI on a release after 0.8.0; with an older server, the stored release changes only at sign-in, when fling setup reads the metadata again, and when a command needs a feature the stored copy lacks. It says it at most once a day per server, remembering when in update-check.json in the config directory. It says nothing under --json, when stderr isn't a terminal, when CI is set, or when FLING_NO_UPDATE_CHECK is set (to anything). A server older than the CLI says nothing either. The MCP server tells Claude instead (see Claude Code plugin and MCP).

When something doesn't work

fling doctor checks the setup and prints one line per check, ✔ ok, ▲ warning or ✖ problem, each warning and problem with its fix:

  • CLI: its version, Node.js against the versions it supports, the latest version on npm (skipped when npm can't be reached), and whether fling on your PATH is this CLI.
  • Config: where it lives (FLING_CONFIG_DIR), whether the config file is private (mode 0600: it holds your API keys), and whether FLING_URL or FLING_API_KEY is in effect (named, never shown).
  • Each Fling you signed in to, the current one marked: whether its /.well-known/fling answers, the release it runs against the CLI's, whether your API key is still accepted, and the features it reports.
  • Claude Code: claude on your PATH, the Fling plugin (installed, enabled, its version against the CLI's) and the fling marketplace.
  • Claude Desktop: whether the extension is installed, enabled, and its version.

It only reads: it changes nothing, and each request has a short timeout. --json prints { ok, checks: [{ area, id, status, message, fix?, server? }] }. The exit code is 1 when any check is a problem.

To sign in only, use fling login <url> (the URL is remembered: later fling login needs none). There is no default server: until you log in, commands say to run fling login <url>. fling whoami shows who you are and which server is current. For CI, set FLING_URL and FLING_API_KEY instead.

Several Flings

The CLI remembers every Fling you sign in to, each with its own key, and uses the current one. fling login <url> or fling setup <url> adds a Fling (or signs in to it again) and makes it current; the others stay signed in.

fling use                              # list them: * marks the current one, with its name and your email
fling use other.example.com            # switch: a full address, its host, or the start of it
fling --server other.example.com ls    # one command against another Fling, with its own key

FLING_URL picks a Fling the same way for every command run with it, and FLING_API_KEY overrides the stored key. fling logout removes the current Fling's key and keeps it current (a bare fling login signs in again); fling logout <url> signs out of another Fling and forgets it.

Deploy

npm run build
fling deploy ./dist                        # name generated from the project, e.g. rocketpod-docs; you confirm it
fling deploy ./dist --name my-app          # → https://my-app.<your sites domain>
fling deploy ./dist --name my-app --spa    # client-side routing: unknown paths serve index.html
fling deploy ./dist --access members       # a new site everyone signed in can open
fling deploy ./dist --access people --add bob@example.com   # only you and Bob
fling deploy ./dist --access public        # no sign-in needed to view
fling deploy ./dist --yes                  # never prompt (CI): use the generated name as is
fling deploy                               # deploys the current folder
fling deploy "Pitch Deck.html"             # a single page, served as index.html → pitch-deck
fling deploy site.zip                      # a zip of a site: extracted, a single top folder unwrapped
fling deploy diagram.svg                   # any other file, next to a generated page that shows it

fling <path> is short for fling deploy <path> when the path exists, so fling ./dist works. An existing path wins over a command of the same name. Bare fling prints help.

What you can fling:

  • A folder, as is.
  • A single .html/.htm file, served as the site's index.html.
  • A .zip: extracted (paths that would escape the folder are refused), __MACOSX/ and dotfiles skipped (dotfiles such as .env are listed), and a single top-level folder unwrapped.
  • A single Markdown file (.md, .markdown), on a Fling that renders Markdown (the markdown capability): its rendered page is the site's home page.
  • Any other file (.pdf, .svg, .png…), served next to a small generated index.html that shows it (images, PDF, video, audio) or links to it.

A file's default site name comes from its name, without the extension or a browser's (1) duplicate suffix: Pitch Deck (1).html → pitch-deck. Folders use the naming rules below.

The path must exist where you give it. The CLI doesn't look for files elsewhere (the MCP server does; see below).

  • Re-fling to update. Identical content is a no-op, and content you deployed before is restored instantly without uploading.
  • Publish one folder of a site as its Path with --path (and --name): fling deploy ./plan --name payments-plans --path PAY-412 serves the plan at https://payments-plans.<sites domain>/PAY-412/. A Path is one top-level folder with its own versions, rollback, owners and publishers; publishing it never touches the rest of the site or its other Paths, so teammates publishing different Paths never collide. The first publish makes the Path, with you as its owner. --path takes one folder: nested folders (reports/2026) are refused, so publish them as part of their top-level folder. A folder pulled with fling pull --path deploys back to its Path. On a Fling without path publishing (pathPublish) the CLI refuses rather than replace the whole site. See Paths.
  • Change a site you can open with fling pull <name> [dir]: it downloads the current version into dir (default ./<name>) with a site link, .fling-site.json, naming the server, the site and the version pulled. fling deploy <dir> then publishes to that site on that version and uploads only what changed (3 changed, 1 removed). If someone published the site since you pulled, it stops (base_changed) rather than overwrite their work: pull again into another folder and redo your change, or fling deploy <dir> --force to replace what they published. --path <folder> pulls one of the site's Paths, its files at the top of dir; --version-id <id> another version (owners and publishers). Anyone signed in who can open the site may pull it; only its owners and publishers may deploy. A folder that isn't empty needs --force. On a Fling without the pull capability the CLI says so.
  • Fling never publishes dotfiles, gitignored files, secret files (keys, certs, credentials) or files that contain secrets; it stops and tells you which file and line. There is no flag to override this, and the server enforces it too.
    • Dotfiles and dot-folders (.env, .dev.vars, .npmrc, .git/, .well-known/…) are skipped, and the output lists what was skipped (skipped in --json).
    • Gitignored files are skipped. When the folder you fling is itself gitignored (the usual dist/ or build/), only the .gitignore files inside it apply.
    • Secret files by name (*.pem, *.key, *.p12, *.pfx, *.jks, *.keystore, id_rsa…, credentials(.json), *service-account*.json, *.tfstate, *.tfvars, secrets.json/yml, *.kdbx, wp-config.php) stop the fling.
    • Files that contain a secret (private keys, AWS / GitHub / npm / Slack / Stripe / OpenAI / Anthropic / SendGrid / Azure keys and tokens, Google OAuth client secrets, database URLs with a password) stop the fling with the file, line and kind of secret (never the secret itself). Remove the secret (and rotate it if it was ever shared), or add the file to .flingignore.
  • node_modules and anything listed in a .flingignore (gitignore syntax) are skipped too. Symlinks pointing outside the folder are never followed.
  • Limits are 25 MB per file, 100 MB per deploy and 5,000 files.
  • Absolute asset paths (/assets/x.js) work because each site has its own subdomain.
Site names

Names use lowercase letters, digits and single hyphens, up to 50 characters, and are first come, first served across everyone. A few (api, www, fling…) are reserved. If a name belongs to someone else, Fling suggests free ones with your initials appended (my-app-cc, my-app-cc2…).

Without --name, the name is generated from the folder, never from your user name:

  1. Find the project root: the nearest folder (this one or above) containing .git, otherwise package.json, pyproject.toml, Cargo.toml or go.mod. The search stops at your home folder.
  2. Use the root's folder name plus the folders from the root down, skipping build output (dist, build, out, output, public, www, _site, site, html, static, export, target), monorepo containers (apps, packages, src, sites, libs, projects, services), dot-folders (.vitepress, .next…) and repeats. A -static/-dist/-build/-out suffix is trimmed (storybook-static → storybook).
  3. With no project root, use the deepest folder that isn't build output.
  4. Too long? Middle parts are dropped, then it is truncated.
Folder Name
~/work/rocketpod/docs rocketpod-docs
~/work/myapp/dist myapp
~/work/mono/apps/web/dist mono-web
~/work/mono/packages/ui/storybook-static mono-ui-storybook
~/Downloads/report/dist (no project) report
Prompts

In a terminal, Fling checks the generated name and asks before deploying:

fling Site name: rocketpod-docs → https://rocketpod-docs.sites.example.com/  (new)
Use "rocketpod-docs"? [Y/n or type another name]

The note says (new) or (updates your existing site). If the name is taken it lists suggestions and offers the first one. Press Enter to accept, type another name to check that one, or n to abort.

If there is no index.html at the top it asks:

No index.html at the root. [L]ist the HTML pages on a generated index page / [f]ling anyway (the root will 404) / [a]bort

L (the default, offered when there are .html pages) adds a generated index.html that links every HTML page, titled from each page's <title>. It is built in memory and uploaded with the site; your folder is never written to. Without HTML pages the choices are fling anyway or abort (the default). --list-html and --no-list-html decide up front.

With --name there is no name prompt. With --yes, or without a terminal (CI, agents), Fling never asks: with no index.html it generates the listing when there are HTML pages (otherwise it warns), and a taken name fails (exit 1) with suggestions rather than picking another name — pass --name.

Manage sites

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @nearform/fling

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229