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

filecafe

Latest version: v0.4.5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: bdlowery
0 Stars
0 Forks
14 Versions
2.3K Downloads
TypeScript Repo language

Scan summary

filecafe was last scanned on 29 Nov 2026 at version 0.4.5. Risk score 0 of 100. High-severity rules fired.

  • Releases: 14 versions; the latest 5 were published within 3 days (27–29 Nov 2026).
  • Findings: 1 rule fired in version 0.4.5 (1 high). The score describes this version only.
  • Downloads: 2,308 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.5 LATEST 29 Nov 2026 1 rule fired
0.4.4 27 Nov 2026 1 rule fired
0.4.3 27 Nov 2026 1 rule fired
0.4.2 27 Nov 2026 Not shown
0.4.1 27 Nov 2026 Not shown

Rules fired in 0.4.5: 1

Findings

1 High

Findings for v0.4.5. 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.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

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

README

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

filecafe

Upload files to file.cafe from the command line and get share links back, or group them into a collection that shares them all on one page.

Built for AI coding agents (Claude Code, Codex, Cursor), humans, and CI: share URLs go to stdout, progress and errors go to stderr, --json gives machine-readable results, and nothing ever prompts (except the one-time browser login, and an upgrade offer when you run it yourself in a terminal).

Install

Run it without installing:

npx filecafe upload report.pdf

Or install it globally:

npm i -g filecafe
filecafe --help

Run filecafe upgrade to update a global install to the latest version. It uses the package manager that installed filecafe (npm, pnpm, Yarn, or Bun).

A global install also adds cafe as a shorter name for the same command, so cafe upload report.pdf works too. With npx, use npx filecafe: the cafe package on npm is unrelated.

Requires Node.js 20 or newer.

When you run filecafe in a terminal and a new version is out, it tells you and offers to upgrade it with the package manager you installed it with. It checks npm in the background once a day (retrying on the next run if npm can't be reached), mentions an update at most every three days, and never shows this in CI or when its output is piped (scripts and AI agents). Set FILECAFE_NO_UPDATE_CHECK=1 or NO_UPDATE_NOTIFIER=1 to turn it off.

Log in

filecafe login

This shows a one-time code and opens your browser so you can approve the CLI on file.cafe; check that the code on the page matches the one in your terminal. It works over SSH too: if no browser opens, visit the printed URL on any device and enter the code. The token is saved to ~/.config/filecafe/config.json (or $XDG_CONFIG_HOME/filecafe/config.json; %APPDATA%\filecafe\config.json on Windows) with owner-only permissions.

Headless machines and CI can use an existing token instead:

echo "$FILECAFE_TOKEN" | filecafe login --with-token   # validate and save
# ...or skip saving entirely and just set FILECAFE_TOKEN for each run

Other account commands:

filecafe whoami          # Logged in to https://file.cafe as Ada (ada@example.com)
filecafe whoami --json   # {"name":"Ada","email":"ada@example.com","url":"https://file.cafe","token_source":"config"}
filecafe logout          # revoke the saved token on file.cafe and delete it locally

Saved logins never expire. They last until you run filecafe logout or revoke the token in Settings → API tokens on file.cafe. logout revokes the token even if you saved it with filecafe login --token, so don't log out with a token that CI or another machine still uses.

Upload

filecafe upload screenshot.png                 # shows the share URL, size and expiry date
filecafe upload a.png b.mp4 notes.txt          # one summary per file, in order
filecafe upload build.zip | pbcopy             # piped: just the link, copied to the clipboard
filecafe upload video.mp4 --collection <uuid>  # add to an existing collection
filecafe upload *.png --new-collection "Shots" # share them all on one collection page
filecafe upload report.pdf --json              # machine-readable output
filecafe upload big.mov --quiet                # no progress output
filecafe upload photo.jpg --no-previews        # skip drawing image previews (faster in CI)

In a terminal each upload ends with a summary:

Successfully uploaded screenshot.png
URL:     https://file.cafe/9e54VITGmPY.png
Size:    1.2 MB
Expires: November 7th 2026

When the output is piped (scripts, CI, AI agents) or with --quiet, stdout is just the share URLs, one per line.

Files are uploaded one after another; large files (over 64 MiB) are split into parts that upload in parallel. Every input is checked before anything is uploaded: if any path is missing or is not a regular file, nothing is uploaded.

Image previews

Photos get the same previews as uploads from the file.cafe website: a small thumbnail, a square tile for grids, and a resized preview for the share page. filecafe draws them on your machine before uploading, with sharp, which npm installs alongside filecafe as an optional dependency.

  • JPEG, PNG, WebP, AVIF and GIF files up to 32 MiB and 40 megapixels get previews. GIFs get a thumbnail and tile but no resized preview, so their animation is kept. HEIC and PDF files upload without previews.
  • Photos are turned upright using their EXIF orientation first, like a browser shows them.
  • With several files, the next photo's previews are drawn while the current file uploads.
  • Previews never make an upload fail. If sharp isn't installed (for example with npm install --omit=optional) or can't load on your platform, if a photo can't be read, or if a preview fails to upload, the file uploads without it. Set FILECAFE_DEBUG=1 to see why a photo got no previews.

CI and scripts that don't need previews can skip drawing them with --no-previews or by setting FILECAFE_NO_PREVIEWS=1.

--json output

A single JSON array on stdout with one object per input file, in the order given:

[
  {
    "file": "report.pdf",
    "ok": true,
    "id": "9d3c3f8e-5a8b-4c1e-9f0a-2b7d6e4c1a90",
    "filename": "report.pdf",
    "size": 482113,
    "url": "https://file.cafe/...",
    "password_protected": false,
    "expires_at": "2026-11-07T12:00:00+00:00"
  },
  {
    "file": "missing.png",
    "ok": false,
    "error": "No such file."
  }
]

expires_at is null for files that never expire. With --new-collection the output is an object instead; see Collections.

The exit code is 0 if every file uploaded and 1 if any failed.

Collections

A collection shares several files on one page, with one link (https://file.cafe/c/...). Each file in it keeps its own share link too.

filecafe upload shots/*.png --new-collection "Launch screenshots"  # upload files into a new collection
filecafe collections create "Inbox"                                # make an empty collection
filecafe upload extra.png --collection <id>                        # add files to an existing one
filecafe collections                                               # list your collections and their IDs

Collection names can be up to 120 characters. Collections made from the CLI never expire, have no password, and don't accept files from visitors. You can add a password or let visitors send files (paid plans) from the collection's page on your file.cafe dashboard. A collection holds up to 10,000 files.

Upload files into a new collection
filecafe upload shots/*.png --new-collection "Launch screenshots"

The files upload first, then one collection is created holding the ones that uploaded, in the order you passed them. Any number of files works: the CLI adds them to the collection 100 at a time. In a terminal you get the usual summary per file, followed by:

Created collection Launch screenshots
URL:     https://file.cafe/c/b7kfVweVXQM
Files:   12 files
ID:      01a1a9ea-a04d-70da-8786-d74d331a9720

When piped or with --quiet, stdout is just the collection's URL, so filecafe upload *.png --new-collection "Shots" | pbcopy copies the one link to share.

If some files fail to upload, the collection is still created from the rest and the command exits with 1. If no file uploads, no collection is created. --new-collection can't be combined with --collection.

With --json the output is an object instead of an array:

{
  "collection": {
    "id": "01a1a9ea-a04d-70da-8786-d74d331a9720",
    "name": "Launch screenshots",
    "url": "https://file.cafe/c/b7kfVweVXQM",
    "files_count": 12,
    "password_protected": false,
    "accepts_uploads": false,
    "created_at": "2026-11-05T04:14:48+00:00",
    "expires_at": null
  },
  "files": [ /* one object per input file, as in the upload --json output */ ]
}

collection is null when no file uploaded or the collection couldn't be created, and a collection_error field then says why. Files that uploaded keep their share links either way.

Create an empty collection
filecafe collections create "Inbox"

In a terminal this prints the new collection's URL and ID, and the command to upload into it. When piped it prints one id<TAB>name<TAB>url line, so a script can create a collection and upload into it straight away:

id=$(filecafe collections create "Nightly builds" | cut -f1)
filecafe upload build.zip --collection "$id"

Add --json to print the collection object (the same fields as above) instead.

Add files to an existing collection
filecafe upload video.mp4 notes.txt --collection 01a1a9ea-a04d-70da-8786-d74d331a9720

Pass the ID of one of your own collections. Files are added to the end of it. Get the ID from filecafe collections, from collections create, or from the collection's address on your dashboard.

List your collections
filecafe collections          # same as: filecafe collections list
filecafe collections --json

Collections are listed newest first. In a terminal:

Launch screenshots (12 files)
  URL: https://file.cafe/c/b7kfVweVXQM
  ID:  01a1a9ea-a04d-70da-8786-d74d331a9720

Client review (3 files, expires November 21st 2026, password)
  URL: https://file.cafe/c/gChBn26axib
  ID:  01a1a9ea-9c07-7226-8553-97ac44eb759c

When piped there's one id<TAB>name<TAB>url line per collection, and --json prints an array of collection objects.

Collection fields
Field Meaning
id The collection's ID, for upload --collection
name Its name
url The link that shares the whole collection
files_count Files currently in it (expired and deleted files don't count)
password_protected Whether the collection page needs a password
accepts_uploads Whether visitors can send files to it (set on file.cafe)
created_at When it was created (ISO 8601)
expires_at When its link stops working (ISO 8601), or null if it never expires

Configuration

Setting How to set Default
Site URL --url <url>, then FILECAFE_URL, then the URL you logged in to https://file.cafe
API token FILECAFE_TOKEN, then the token saved by filecafe login none
Image previews upload --no-previews or FILECAFE_NO_PREVIEWS=1 turns them off on for photos

A saved token is only ever sent to the site it was issued for. To work against another server (for example a local development site), log in to it explicitly: filecafe login --url http://file-cafe.test.

Set FILECAFE_DEBUG=1 to print stack traces for unexpected errors, and the reason a photo got no previews.

Output is only colored in a terminal, never when piped. Set NO_COLOR=1 to turn colors off, or FORCE_COLOR=1 to keep them when piping.

Using file.cafe with AI agents

Paste this into your project's CLAUDE.md, AGENTS.md, or Cursor rules:

## Sharing files

To share a file with the user (screenshots, build artifacts, logs, exports), run:

    npx -y filecafe upload <path> --json

and give the user the `url` from the JSON output. Upload several files at once by passing
multiple paths. To share several files on one page, add `--new-collection "<name>"` and give
the user `collection.url` instead. If the command fails with "Not logged in", ask the user to run
`npx filecafe login` (or set `FILECAFE_TOKEN`) and then try again.

Agents can run filecafe --help, filecafe upload --help and filecafe collections --help to see every option with examples.

Development

npm install
npm run typecheck
npm test          # node:test, runs the TypeScript sources directly (Node 24)
npm run build     # bundles to dist/cli.js with tsdown
node dist/cli.js --help
npm run dev -- --url http://file-cafe.test whoami   # run from source

Releases are published to npm from GitHub Actions when a v* tag is pushed (npm trusted publishing with provenance). Bump version in package.json to match the tag first.

License

MIT. See LICENSE.

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 filecafe

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

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229