Skip to content

FAQ

Straight answers to the questions you really ask.

Architecture, security, operations, compliance and licensing: what CIOs, security officers, engineering teams and buyers ask us before adopting SurgeMedia, with the actual status of every feature.

Badges show the state of a feature:Availableshipped and verifiedPartialshipped, with a limit stated in the answerPlannedon the roadmap

Discover SurgeMedia

What the platform does, what sets it apart, and how to try it. For: Leadership, project leads

What is SurgeMedia?

SurgeMedia is a self-hosted media platform: it stores, transforms and delivers your images and videos from your own servers, under your own domain.

Your teams manage media in an admin interface; your websites and apps consume it through a REST API and CDN-ready delivery URLs, in the right format and at the right size. It is a headless media back end: no CMS, front end or hosting provider is imposed.

Who is SurgeMedia for?

Teams that want to keep their media and their costs under control:

  • publishers of websites and apps that serve a lot of images and videos;
  • agencies that run one instance per client;
  • organizations with sovereignty, security or compliance requirements;
  • teams that want one media library for development, staging and production.
How is it different from a SaaS like Cloudinary or imgix?

Three main differences:

  • Hosting: SurgeMedia runs on your infrastructure; no media ever leaves it.
  • Costs: no usage-based billing, whether per image, per transformation or per gigabyte served. You pay for your infrastructure and, beyond the free tier, a flat license.
  • Reversibility: your originals stay in your storage and your metadata in your SQL database.

In return, you operate it yourself, and the transformation catalog is narrower than that of the SaaS leaders.

Is SurgeMedia a DAM?Partial

Partly. SurgeMedia covers media organization (projects, folders, tags, search, versions, trash), access rights and optimized delivery.

It has no approval workflow, no usage-rights management (credits, licenses, expiry dates) and no custom metadata fields. It works well as the delivery layer of a DAM that remains the editorial source.

Is it ready for production?

SurgeMedia is in pre-release: the first public version, 0.1.0, is ready. The shipped scope is already broad (admin interface, API, image transformations, video processing, Docker image), and every change goes through full continuous integration: type checks, lint, more than 700 automated tests, and a build and smoke test of the npm package and the Docker image.

Before 1.0, a minor version may contain breaking changes, always announced in the changelog. We recommend starting with a pilot project.

How can I try SurgeMedia?

Without installing anything, on the public demo: its sign-in page lists two shared accounts (administrator and editor), and everything is reset every two hours, so upload nothing personal.

On your own servers, in a few minutes, with Docker or npm. It is free for development, testing and evaluation, with no license key and no time limit:

Terminal window
docker run -d -p 3000:3000 -v surge-media-data:/app/data ghcr.io/mahmoud-nb/surge-media

The getting started guide walks through the installation, the first account and the first upload.

How do I bring my existing media over?Available

With the surge-media import command, included for free. It reads your files from a directory, an S3 bucket (AWS, R2, MinIO, Scaleway…) or a list of URLs exported from your database, and uploads them to a project through the API: same checks, same previews, same video processing as any upload.

The import is resumable and never creates the same media item twice. It writes a mapping table (old address → media ID → new URL) to rewrite the URLs stored in your database, and can generate 301 redirects from the old addresses for nginx, Caddy, Apache or Cloudflare. Files are copied, never moved: your former storage stays untouched until you decide to remove it.

Architecture & integration

Deployment, databases, storage, CDN and environments. For: Architects, CIOs

How does SurgeMedia work?

A single Node.js application exposes three surfaces:

  • /admin: the interface for your teams (media, projects, accounts, settings);
  • /api/v1: the REST API for your apps, authenticated with tokens;
  • /m/…: delivery of originals and transformations, cookie-free and CDN-ready.

Video conversions run in separate worker processes, started from the same image. All state lives in your SQL database and your storage: instances are interchangeable.

Which deployment models are supported?Available
  • Single server: one container, SQLite and the local disk, ideal for getting started.
  • Server and worker: PostgreSQL, a web server and a video worker; a Docker Compose example is provided.
  • High availability: several instances behind a load balancer, PostgreSQL or MySQL, S3 storage, workers and a CDN.

The Docker image is available for amd64 and arm64, as a full variant (with FFmpeg) or a slim one.

Which databases are supported?Available

SQLite, PostgreSQL and MySQL / MariaDB, with the same image. Migrations are applied automatically at startup.

SQLite is enough for a single server and moderate traffic. Move to PostgreSQL or MySQL as soon as you need several instances or sustained writes: the dashboard warns you when SQLite becomes a bottleneck.

Where are the files stored?Available

On the server’s disk (or a shared volume), or in S3-compatible object storage: AWS S3, Cloudflare R2, MinIO, Scaleway, OVHcloud…

Objects stay private: everything goes through SurgeMedia, which enforces access control. Switching providers means copying the files and changing the configuration, without touching the code or the database.

Does SurgeMedia run on Kubernetes?Partial

Yes. The image is configured entirely through environment variables, exposes a health probe (/api/health) and shuts down cleanly on SIGTERM.

The recommended layout: a Job that applies the migrations, a web Deployment with several replicas and a worker Deployment. We do not provide a Helm chart yet.

Can I put a CDN in front of delivery?Available

Yes, and we recommend it. Delivery URLs are versioned, immutable and cookie-free, and public media are cached for one year.

Replacing a file creates a new URL, so you never need to purge anything. A dedicated media domain, such as media.example.com, takes a single variable.

How do I handle development, staging and production?Available

All your environments can read the same project, each with its own API keys, labeled by environment, and its own allowed origins.

Content uploaded in production is immediately visible in staging, without copying files, and rotating a staging key never affects production. A separate project remains an option for destructive tests.

Does SurgeMedia send notifications (webhooks)?Planned

Not yet. To follow a video conversion, your app polls the media item with If-None-Match, no more than once every 5 seconds: the response is a 304 until something changes.

Notifications when processing finishes are on the roadmap.

Developers

API, SDKs, responsive images, browser uploads and video. For: Tech leads, developers

What does the API look like?Available

A versioned JSON REST API (/api/v1) to list, search, upload, update, organize and sign media:

  • Bearer token authentication, never in the URL;
  • cursor pagination, ETag and 304 responses, RateLimit headers;
  • application/problem+json errors with a stable code;
  • an OpenAPI 3.1 document in English and French, plus an interactive reference in the admin interface.
Which SDKs and front-end components are available?Partial
  • @surge-media/client: a dependency-free JavaScript client (API, image URLs, upload queue);
  • @surge-media/vue: display and upload components (SmImage, SmPicture, SmVideo, SmUploader…).

Both are MIT-licensed. React, Svelte and Nuxt packages are planned. For another language, generate a client from the OpenAPI document.

How do I serve responsive images?Available

Each media item returns a URL template, urlTemplate, that you fill in for every size and format:

/m/k7d2m9qz/v3/w_800,h_450/sneaker.avif
/m/k7d2m9qz/v3/card/sneaker.webp

Crops are centered on the focal point chosen by your editors. The SmPicture component produces the AVIF and WebP sources, the srcset and the JPEG fallback.

Which image transformations are available?Available

Resizing, five fit modes, cropping (exact area, focal point or smart crop), rotation, mirroring, quality, background color, pixel density, and output as JPEG, PNG, WebP or AVIF. An image is never upscaled.

Each transformation is computed once, then served as a file. A per-project policy can restrict generation to signed URLs or to named presets.

How do I upload from the browser without exposing a secret?Available

With a delegated token. Your back end authenticates its user, then asks SurgeMedia for a token that is valid for a few minutes and limited to one task, for example “5 JPEG images of 10 MB at most, into this folder”.

The browser then uploads its files straight to SurgeMedia, which checks the number, size, real type and origin, and links each media item to the end user. The SmUploader component handles queuing, progress and retries.

What does SurgeMedia do with videos?Partial

On upload, it prepares MP4 and MOV files for instant playback and strips location and device data. It handles poster images and subtitles (WebVTT or SRT).

With FFmpeg enabled, it converts unplayable formats (MKV, AVI…), produces H.264 and AV1 renditions and removes GPS tracks from action cameras, in separate processes. Adaptive streaming (HLS) is planned but not available yet.

Which file formats are accepted?Available
  • Images: JPEG, PNG, WebP, AVIF and GIF, up to 100 megapixels.
  • Videos: MP4, MOV and WebM; with FFmpeg enabled, also MKV, AVI, 3GP, MPEG-TS, OGV and WMV.
  • Subtitles: WebVTT and SRT.

The type is detected from the file’s contents, never from its name. SVG, HEIC and TIFF are rejected; audio and documents are planned.

Security

Sign-in, API keys, private media, uploaded files and vulnerabilities. For: Security officers, security teams

Can the vendor access our media or data?

No. SurgeMedia runs entirely on your infrastructure and sends nothing to the vendor or to any third party: no telemetry, no online license check.

Its only outgoing connections go to the services you configure (database, S3 storage, SMTP server). It even works on a network isolated from the Internet. Registering an instance with us is optional: it is an email that you review and send yourself.

How do users sign in?Available

With an email address and a password, on accounts created by invitation: there is no public sign-up. Passwords are hashed with argon2id, and sessions are stored server-side and can be revoked at any time.

Sensitive actions, such as creating a secret key or changing the members of a project, ask for the password again, and sign-in attempts are rate-limited.

Are SSO and multi-factor authentication supported?Partial

Two-factor authentication, yes; SSO, not yet.

  • Two-factor authentication (TOTP): each account turns it on from “My account” with any authenticator app and receives ten single-use recovery codes. An administrator can require it for administrators or for everyone; affected accounts set it up at their next sign-in. Secrets are encrypted in the database, and every change is recorded in the audit log and reported to the account holder by email.
  • SSO (OpenID Connect, SAML): planned. Meanwhile, you can put the admin interface behind your identity provider, with an authenticating proxy (oauth2-proxy, Pomerium, Cloudflare Access…) or a VPN, while leaving the API and delivery open to your apps.
How are API keys protected?Available

Each key belongs to a project, carries limited scopes, and can expire, rotate with an overlap period or be revoked instantly. SurgeMedia only keeps a hash and shows the value once.

A secret key sent from a browser is rejected, and each key has a prefix and a checksum that make leaks easy to detect.

How do I protect private media?Available

Mark them private: they are then served only with a time-limited signed URL (from 60 seconds to 7 days) or a Bearer token.

Your server requests signed links one at a time or in batches of 100. A link only grants access to the file or transformation it names, and stops working when it expires or when the file is replaced.

How are uploaded files checked?Available

The real type is detected from the file’s first bytes against a closed list of formats; active formats (SVG, HTML, PDF) are rejected. Size and resolution are checked as the file is received, and delivery applies a strict security policy (nosniff, Content-Security-Policy).

Videos are processed by FFmpeg in an isolated process: no shell, no network, low priority and resource limits.

How do I report a vulnerability, and how are they fixed?

Through GitHub’s private reporting form, never in a public issue: the security policy explains how.

Our targets: an acknowledgment within 3 business days, a fix within 14 days for a critical issue and 30 days for a high one, then a public security advisory. Dependencies are updated weekly by Dependabot and audited on every change, every Monday and before every release; the Docker image is scanned for known vulnerabilities before it is published. A high or critical issue in what we ship blocks the release unless a written, time-limited exception explains why it does not apply. Each release comes with SBOMs and checksums.

Is there an audit log?Available

Yes. Administrators get a filterable log of sensitive actions: projects and members, keys and tokens, settings, media visibility, permanent deletions…

Each entry records the author, the API credential used, the project and the IP address, and survives the deletion of accounts. Export to a SIEM is planned.

Operations & performance

Requirements, scaling, backups, updates and monitoring. For: System admins, DevOps, SRE

What are the technical requirements?

A Linux container (amd64 or arm64), or Node.js 24 on Linux, macOS or Windows. Add a persistent disk or S3 storage, an HTTPS reverse proxy and, for a multi-instance production setup, PostgreSQL or MySQL.

FFmpeg 6 or later is only needed for video processing: the full Docker image includes it.

What performance can I expect?

Measured on an 8-core laptop, a single SurgeMedia Node.js process serves about:

  • 15,000 revalidations per second (304 responses);
  • more than 6,000 already-generated transformed images per second;
  • 1,650 requests per second of mixed traffic, without errors up to 512 concurrent connections.

Under heavy load, latency grows but requests still succeed. Confirm these figures on your own infrastructure.

How do I scale and make it highly available?Partial

First put a CDN in front of delivery: it absorbs most of the traffic. Then add web instances behind a load balancer, with PostgreSQL or MySQL and S3 storage; instances are interchangeable. Video processing scales with extra workers that share a persistent queue.

Rate limits and caches are currently per instance; a shared cache (Redis) is planned.

What should I back up?

Three things, together: the database, the media storage and the application’s two secrets (sessions and link signing).

Use your usual tools: pg_dump or continuous backups, S3 bucket versioning and replication. After a restore, every media URL stays the same: no integration needs to be reconfigured.

How do I update SurgeMedia?

Pull the new image and recreate the containers: database migrations are applied at startup, in a few seconds. With several instances, run the migrate command once before deploying.

Versions follow SemVer, and every change is described in the changelog. Migrations only go forward: take a backup before each update.

How do I monitor an instance?Partial

The /api/health probe checks the database, the storage and image processing, and reports the state of the video queue; the Docker image uses it as its HEALTHCHECK. Logs go to standard output.

The admin dashboard highlights what needs attention: expiring keys, an SQLite database under pressure, stopped video processing. A Prometheus metrics export is planned.

Data & compliance

GDPR, data location, metadata and accessibility. For: DPOs, legal, compliance

How does SurgeMedia fit into our GDPR compliance?

You remain the sole data controller: SurgeMedia runs on your premises and the vendor has no access to any data, so it is not your processor.

The personal data processed is limited to accounts (email, name), sessions (IP address, browser), the audit log and the content of the media you upload. Passwords and tokens are never stored in plain text.

Where is our data hosted?

Wherever you install the database and the storage, without exception: in your own data centers, in a European cloud or in any region you choose.

No data goes through the vendor, so you keep full control over any transfer outside your jurisdiction.

Is sensitive metadata (location, device) removed?Partial

For videos, yes: location and device data are stripped on upload, and GPS tracks from action cameras are removed before any delivery when FFmpeg is enabled.

For images, transformed versions carry no metadata, but the original is served as uploaded, EXIF data included: deliver your public images through transformations. Stripping originals on upload is planned.

Is the interface accessible?Available

The admin interface and the front-end components target WCAG 2.2 AA: keyboard navigation, visible focus, screen reader announcements, and contrast checked in both light and dark themes. Every page is audited with axe-core.

For your own websites, SurgeMedia stores alternative text, captions and audio descriptions, and its components render them.

Which languages is the interface available in?Available

English and French: admin interface, command line, API documentation, emails and front-end components. No text is hard-coded, so adding a language means translating one file.

Licensing, pricing & support

The BSL license, commercial plans, support and reversibility. For: Procurement, leadership

Is SurgeMedia open source?

Its source code is public, under the Business Source License 1.1: you can read it, modify it and self-host it. It is not an OSI open source license yet, but each version automatically moves to Apache 2.0 three years after its release.

The front-end libraries @surge-media/client and @surge-media/vue are MIT-licensed.

Do we need a commercial license?

Only in production, and only in three cases:

  • your organization, together with its group companies, made more than USD 500,000 in revenue in its last completed fiscal year;
  • you offer SurgeMedia to third parties as a hosted media service;
  • you use a feature that requires a license key in production (none today: they will be listed on the License page).

Development, testing and evaluation are always free.

In Settings › License (or during surge-media init), you declare how each instance is used: evaluation, Community production or production under a commercial license. It is only a statement: SurgeMedia checks nothing, sends nothing and never blocks; it reminds you of these terms at the right time.

How do we install a commercial license?

Paste the contents of the .lic file you receive into Settings › License, or set it in the NUXT_LICENSE_KEY environment variable, which then takes precedence. The license is verified on your server, offline: SurgeMedia never contacts us.

The same page shows the licensee, plan, enabled features, covered instances and dates, plus the installation identifier to include in your yearly statement of production instances. You are warned 30 days before expiry, and a 30-day grace period follows it. After that, only paid features switch off: media delivery, the API and the administration never stop.

How is the commercial license billed?

Per organization and per year, according to its size (gross revenue of the group): Pro USD 1,200 (USD 0.5M to 5M), Business USD 4,800 (USD 5M to 50M), Enterprise from USD 18,000, Enterprise Global from USD 40,000. There is no usage metering at all: no image, transformation or bandwidth counts.

Every plan includes every media feature; the plans differ in their number of production instances, their support and the enterprise features (single sign-on, SIEM export). Development, testing and staging instances are free and unlimited, and organizations that sign before version 1.0 keep their price for three years.

What support is available?

Community support on GitHub for the free tier, priority support for the Pro, Business and Agency Partner plans, and enterprise support with a service level agreement (SLA) for the Enterprise plans, which also includes onboarding and an architecture review.

Whatever the plan, start with surge-media diagnose: it prints a report without secrets or personal data (version, configuration, database, storage, findings) to attach to your request.

What happens if the vendor goes out of business?

Your instance keeps running: it depends on no service of the vendor.

You keep the source code and the right to maintain it, your data stays in your database and storage in standard formats, and every version becomes open source (Apache 2.0) three years after its release.

Can we contribute to the project?

Yes: report issues and suggest improvements on GitHub, where pull requests are welcome. Before a first pull request is merged, its author accepts the Contributor License Agreement: you keep the copyright to your work and grant the publisher the right to distribute it, including under commercial licenses. The contributing guide explains how. For a security issue, follow the security policy instead.

Do we have to mention SurgeMedia to use it for free?

No. Free production use depends only on the conditions of the license (revenue, competing hosted service, licensed features), never on a mention or a declaration. We do ask for one, though: tell us who you are, with the optional Register this instance button in Settings › License or by e-mail at licensing@surgeup.org, or mention SurgeMedia where you credit the tools you use.

In return, you are notified of security advisories and major releases, and your feedback weighs on the roadmap. Your organization is listed among SurgeMedia users only with your written agreement.

Didn't find your answer?

Ask it on GitHub, or write to the team for an evaluation, a commercial license or your security questionnaire.