Serve updates for desktop & mobile.

An extensible, self-hostable update server for Tauri, Electron, Android and custom applications.

server.tsTypeScript
import { serve } from '@hono/node-server'
import { createUpserve } from '@neplex/upserve'
import { github } from '@neplex/upserve-github'
import { tauri } from '@neplex/upserve-tauri'

const updates = createUpserve({
  apps: {
    desktop: {
      provider: github({ repository: process.env.UPDATE_REPOSITORY! }),
      adapters: [tauri()],
    },
  },
})

serve({ fetch: updates.fetch, port: 3000 })
Install
pnpm add @neplex/upserve @neplex/upserve-github @neplex/upserve-tauri @hono/node-server
RunUPDATE_REPOSITORY=owner/repository npx tsx server.ts

Publish latest.json and signed updater artifacts in your release.

Integration guide

Replace owner/repository with your GitHub release repository. Node.js 22.13 or newer.

Keep your update clientTauriElectronAndroidCustom clients

Keep the updater you already use.

Upserve serves each client’s expected format from the same release and caching services.

Read the integration guides
Cache coordination

An update check shouldn’t become an upstream request.

Fresh metadata serves repeated checks from cache. Concurrent cold requests share a refresh, and upstream failures respect a bounded stale window and retry cooldowns.

Memory by default

Start without external infrastructure.

SQLite when you need it

Recover metadata across server restarts.

Conditional refreshes

Reuse ETags and Last-Modified validators.

Understand freshness and failure behavior
Request coordinationInteractive example
Client update checks08
Upstream refreshes01
8 checks · 1 shared refresh0 cache hits

Simulated requests in one process. No upstream calls are made.

Extend the protocol, provider or store.

Official integrations use the same public contracts available to your code.

Build an integration
defineProvider()

Bring a release source.

Resolve releases and open known assets from your own artifact infrastructure.

defineAdapter()

Speak your client’s protocol.

Register Hono routes with scoped release resolution and asset delivery services.

defineCache()

Choose where metadata lives.

Implement a small asynchronous get, set and delete contract.

my-updater.tsCustom adapter
import { defineAdapter } from '@neplex/upserve'

export const myUpdater = defineAdapter({
  name: 'my-updater',

  register(app, services) {
    app.get('/version', async (c) => {
      const release = await services.latest(
        c.req.param('channel')!,
      )

      return release
        ? c.json({ version: release.version })
        : c.body(null, 204)
    })
  },
})

Run it where you run your apps.

Fetch-based at the core. Node.js and Bun entry points are validated. The standalone image runs as a non-root user with optional SQLite persistence.

Self-hosting guide
Node.jsHono server adapter
BunNative Fetch handler
DockerCLI + persistent volume

Other Fetch runtimes: portable APIs and a Worker integration example. Deployment validation is documented separately.

Connect your first application.

Configure a provider, choose an adapter, serve updates.

Read the quickstart