Your app's backend,ready on day one.
Files on a global CDN with image variants, search, live updates, chat, notifications, multiplayer and email on your own domain — behind one API key and one prepaid balance.
- Sign up with Google
- Pay as you go from $5
- No subscription
1// 1. An upload URL: type, size and variants locked in2const { fileId, uploadUrl } = await xfiles(3 "/api/v1/files/upload-intent",4 {5 filename: "hero.jpg", contentType: "image/jpeg",6 size: file.size, visibility: "public",7 transformations: { image: { enabled: true } },8 },9);10
11// 2. The bytes go straight to storage12await fetch(uploadUrl, { method: "PUT", body: file });13
14// 3. Confirm: the CDN url and 7 WebP widths are ready15const { file: stored } = await xfiles(16 "/api/v1/files/confirm", { fileId },17);Products
Nine building blocks. One key.
Use one, or all of them. Each project gets every product with the same API key, the same dashboard and the same balance — and each is billed only for what it does.
Files & CDN
Uploads straight to storage, public links that last and private ones that expire, served from CloudFront's edge.
Read the docsImage variants
Seven responsive WebP widths, each built the first time it is asked for and cached from then on.
Read the docsBundles
Versioned folders — a game's levels, a sound library — published with one command and served from Cloudflare.
Read the docsSearch
Typo-tolerant search with filters, facets and sorting over the data you push from your database.
Read the docsLive updates
Channels over one WebSocket, with presence and history, so every screen changes the moment your data does.
Read the docsChat
Direct and group conversations with read positions and attachments — and one notification per burst, not per message.
Read the docsNotifications
An in-app list that updates live, web push when your site is closed, and preferences your users control.
Read the docsMultiplayer
Rooms, seats and an authoritative server that checks every move — and a dropped player keeps their seat.
Read the docsMailboxes on your own domain, for people in their mail apps and for your app through the API.
Read the docsBuilt for AI agents
Your agent can build on XFiles too.
Connect Claude, Cursor, VS Code or any MCP client to a project. Your agent reads the docs, uploads files, fills search collections, sends notifications and email — with the same key, limits and billing as your own code.
- The docs tools need no key, so an agent can learn XFiles before you sign up.
- A key opens exactly one project: give each agent its own, and delete it when you're done.
- Nothing is stored on the way: every call goes through the public API, as you.
1claude mcp add --transport http xfiles \2 https://www.xfiles.dev/api/mcp \3 --header "Authorization: Bearer $XFILES_KEY"24 tools
search_docsread_docslist_filesget_fileupload_fileget_file_urlupdate_filedelete_filerestore_filelist_search_collectionscreate_search_collectionindex_documentsdelete_documentssearchpublish_eventsend_notificationemail_domainregister_email_domainverify_email_domainlist_mailboxescreate_mailboxsend_emaillist_emailsread_emailGetting started
From sign-up to your first request in minutes.
Create your account
Sign up with Google in a few seconds. The dashboard is ready when you are.
Add credit, make a project
Top up from $5 and create a project. Its API key is shown once — keep it on your server.
Call the API
Upload a file, index a search, publish an event. The quickstart takes you through your first request.
Try it here
Files that know where they belong.
Attach every upload to the thing it belongs to — a product's gallery, a user's avatar, an order's invoice — and list them back by it, with CDN links and image variants in the same answer.
- Presigned uploads lock type and size
- Public links, or signed private ones
- Variants public even when originals are private
- Deletes undoable for 30 days
Scenario
sneaker-front.jpg
image/jpeg · 2.4 MB
product/gallery
prod_8kx2m
Request body preview
{
"filename": "sneaker-front.jpg",
"visibility": "public",
"entity": {
"type": "product",
"id": "prod_8kx2m",
"role": "gallery"
},
"transformations": {
"image": {
"enabled": true,
"visibility": "public"
}
}
}Pricing
Pay for what you use. Nothing else.
Prepaid credit from $5, drawn down by the day as you use it. No subscription, no seats, no minimum each month — and no surprise invoice.
Storage
$0.05
per GB per month
Bandwidth
$0.20
per GB served
Image variants
$0.50
per 1,000 built
Search
$0.10
per 1k searches
Live updates
$1.00
per 1M events
Notifications
$0.10
per 1k notifications
Email mailboxes
$0.50
per mailbox/mo
Email recipients
$0.30
per 1k recipients
Built to be trusted
Serious about the boring parts.
The things that only matter when they go wrong are the ones XFiles was built around.
Projects are walls
Each project's files, data, keys and tokens are its own. One organization key can run many, never mix them.
Keys never stored
Only a hash of each key is kept. It is shown once, and rotating it can keep the old one working for a day.
Private by default
Files are private unless you say otherwise, and private links are signed and expire within minutes.
Abuse stops at the door
Rate limits, sending limits and automatic suspension keep one bad actor from costing everyone else.
Infrastructure you know
Amazon S3 and CloudFront for files, Cloudflare for bundles, servers in Germany (Hetzner) for the platform and mail.
Documented for machines too
The complete reference is one file at /llms.txt, and the MCP server lets agents read it while they work.
Spend your time on the product. Let XFiles run the rest.
Create your account with Google, add credit when you are ready to ship, and pay only for what your app uses.