Repository navigation
Releases
PocketOne v0.0.1-alpha.15
Read the announcement on the blog
Install or upgrade
New install on macOS or Linux:
brew install pocketonehq/tap/pocketoneThat's Homebrew; the formula comes from pocketonehq/homebrew-tap.
New install on Windows:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketoneThat's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.
Without Homebrew, on macOS or Linux:
curl -fsSL https://pocketone.dev/install.sh | shOn Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.
Upgrade:
brew update && brew upgrade pocketonebrew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.
On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- Billing (new). Sell subscriptions and one-time purchases from your app through Stripe, Paddle or Creem: products, checkout (signed in or pay first), webhooks, entitlements, manual grants, a Billing page in the dashboard and
$billingin page code. Billing and its processors are community extensions, added in a custom build (Add Billing to your app). - Built on PocketBase v0.43.0. Apps pass Go contexts with
app.WithContext(ctx), and an OAuth2 sign-in that finishes from a different IP gets a confirmation page instead of an error. Custom Go builds have a few renames (Upgrading, below). - Go contexts in JS.
new TimeoutContext(seconds)andnew CancelContext()stop work early in$app.withContext(ctx),fn.async(ctx, ...),$llm.withContext(ctx)and$wasm.withContext(ctx). They replaceAbortController,AbortSignalandasyncWith, which are gone (JSVM, LLM). - Bulk Mail checks recipients at send time. A recipient deleted or no longer in the audience since the campaign was queued is skipped, and new Links URL and Unverify accounts on a bounce or complaint settings (Bulk Mail).
Upgrading
- Custom Go builds on PocketOne: PocketBase v0.43.0 passes contexts through
app.WithContext(ctx). Rewriteapp.SaveWithContext(ctx, m)asapp.WithContext(ctx).Save(m)(likewiseDelete,Validate, theAux*and*NoValidatevariants),app.CreateBackup(ctx, name)/app.RestoreBackup(ctx, name)asapp.WithContext(ctx).CreateBackup(name)/.RestoreBackup(name), and reade.App.Context()where a model, record, collection or backup hook usede.Context. Field, validator and interceptor methods lose theirctxargument. The full list is in CHANGELOG.pocketbase.md.
Fixed
pocketone --versionand-vprint the version without readingpocketone.yamlor its.env, so a config that doesn't load (a$VARthat isn't set, an unknown section) no longer stops them. This also fixes builds onbinary.Main, such aspockethost --version.
Extensions
- Billing 0.0.1 (new)
- Bulk Mail 0.0.1 → 0.0.2
- Creem 0.0.1 (new)
- Firewall 0.0.1 → 0.0.2
- JSVM 0.1.4 → 0.2.0 (has upgrade steps)
- LLM 0.0.1 → 0.1.0 (has upgrade steps)
- Mothership 0.0.1
- Paddle 0.0.1 (new)
- Settings 0.0.1
- Stripe 0.0.1 (new)
- WASM 0.0.3 → 0.0.4
PocketBase
- Built on PocketBase v0.43.0:
app.Context()andapp.WithContext(ctx), a confirmation page instead of an error when an all-in-one OAuth2 sign-in finishes from a different IP, and a JOIN alias delimiter that can't collide with collection or field names.
PocketOne v0.0.1-alpha.14
Install or upgrade
New install on macOS or Linux:
brew install pocketonehq/tap/pocketoneThat's Homebrew; the formula comes from pocketonehq/homebrew-tap.
New install on Windows:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketoneThat's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.
Without Homebrew, on macOS or Linux:
curl -fsSL https://pocketone.dev/install.sh | shOn Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.
Upgrade:
brew update && brew upgrade pocketonebrew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.
On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- WASM modules stay compiled on servers without
$HOME. Compiled modules are now cached in the app'spb_cache/wasm, so a server run as a systemd service no longer compiles a module on every call (about a second for a Go module).pocketone cache clearempties it (WASM). - Two Pages fixes. A filtered
ctx.realtime.sendwith nobody subscribed sends nothing instead of failing with a 500, and an array read back withctx.store(name)is a JS array again, sopushworks after the first request. Together they fix the Datastar starter's chat (Pages). - Multisite hosts know how each instance is doing. The host provides instance.status/v1: each instance is
startinguntil/api/healthanswers, thenrunning, andidleorfailedwhen it ends, with every change sent to subscribers (Multisite).
Extensions
PocketOne v0.0.1-alpha.13
Read the announcement on the blog
Install or upgrade
New install on macOS or Linux:
brew install pocketonehq/tap/pocketoneThat's Homebrew; the formula comes from pocketonehq/homebrew-tap.
New install on Windows:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketoneThat's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.
Without Homebrew, on macOS or Linux:
curl -fsSL https://pocketone.dev/install.sh | shOn Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.
Upgrade:
brew update && brew upgrade pocketonebrew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.
On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- LLM replaces Agent. Your app calls cloud models on your own keys: text, pictures, speech, transcription, music, video and embeddings, from Vultr, Cloudflare Workers AI, OpenRouter or any OpenAI-compatible API. Add providers in Settings → LLM, then
await $llm.text.completeAsync({ model: "vultr/glm-5.3", prompt })in page code. Every result says what it cost, every call is recorded, and limits in Settings → LLM (whole app, each user, each guest) stop a bill before it happens. Voice cloning and reference images are in too (AI in your app). Agent and its built-in model are gone (see Upgrading). - New: LLM Search. Named buckets of your app's content (files, folders, zips, web pages, Git repositories, collections) searched by meaning and keywords, and
enrich: ["help"]on a completion or chat sends the best passages with the question. The newaskstarter kit builds on it:pocketone pages create mydocs --starter ask(LLM Search). - Pages routes go by file extension, like PHP.
about.tsbesideabout.etsis that page's code, and a.tswith no template is an endpoint;+page.tsand+api.tsare gone (see Upgrading). Async routes can wait up to 15 minutes,setTimeoutand friends work, andctx.realtime.subscribe()streams record changes to the visitor with the collection's rules applied (Pages). - New: Key-Value Store.
$kv.get/set/delete/listkeeps named JSON values without a collection or a migration, on by default (Key-Value Store).
Upgrading
- Pages, API Tokens, LLM Chat and Remotes have upgrade steps of their own: see each one's changelog under Extensions below. In Pages, rename each
+page.tsto the name of the page it serves (products/[id]/+page.tsbesideindex.etsbecomesproducts/[id]/index.ts) and each+api.tsto<folder>.tsbeside its folder. - Agent is replaced by LLM: add your providers (Vultr, Cloudflare Workers AI, OpenRouter, or any OpenAI-compatible API) in Settings → LLM, then change
$agent.complete(opts)toawait $llm.text.completeAsync({ model: "<provider>/<model>", ...opts })in an async handler (every$llmcall that reaches a provider is async). The built-in model,pocketone.yaml'sagent:section and a multisite host's shared model are gone. Agent Chat is now LLM Chat ($llm.chat).
Added
- LLM, a standard extension: text, pictures, speech, transcription, music, video and embeddings from cloud providers on your own keys, as
$llm.<kind>in page code and thellm.*contracts. Every call names its model asprovider/model.
Changed
- PocketPages is now just Pages, a feature of every PocketOne app: the docs, starter kits and
pocketone pages createsay "PocketOne app" (a new app's title and heading read PocketOne). ThepocketpagesAgent Skill is folded into thepocketoneskill (pages.md); reinstall the plugin to drop the old skill.
Fixed
- Realtime messages reach each subscriber in the order they were sent: two quick changes to the same record could arrive swapped, so a client could end on the stale one.
- A realtime client that disconnects no longer races the messages still being sent to it.
Extensions
- API Tokens 0.2.1 → 0.3.0 (has upgrade steps)
- Bulk Mail 0.0.1
- Config 0.1.0 → 0.1.1
- Deploy 0.2.0 → 0.2.1
- Firewall 0.0.1
- JSVM 0.1.2 → 0.1.3
- Key-Value Store 0.0.1 (new)
- LLM 0.0.1 (new)
- LLM Chat 0.0.2 → 0.1.0 (has upgrade steps)
- LLM Search 0.1.0 (new)
- Multisite 0.1.0 → 0.1.1
- Pages 0.1.2 → 0.2.0 (has upgrade steps)
- Pocker 0.1.2 → 0.1.3
- Remotes 0.0.2 → 0.1.0 (has upgrade steps)
- Sandbox 0.0.3 → 0.0.4
- Standard Set 0.1.2 → 0.1.3
- Upgrade 0.0.3 → 0.0.4
PocketOne v0.0.1-alpha.12
Install or upgrade
New install on macOS or Linux:
brew install pocketonehq/tap/pocketoneThat's Homebrew; the formula comes from pocketonehq/homebrew-tap.
New install on Windows:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketoneThat's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.
Without Homebrew, on macOS or Linux:
curl -fsSL https://pocketone.dev/install.sh | shOn Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.
Upgrade:
brew update && brew upgrade pocketonebrew update refreshes the tap first: Homebrew does that on its own only once a day, so a plain brew upgrade can miss a release that's hours old.
On Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- JS hooks no longer crash the app on shared maps. A hook that got a record or other value another goroutine was writing could abort the whole process with
concurrent map iteration and map write. Fixed in JSVM. Upgrade if you run JS hooks under load. - PocketOne branding in every dashboard. Instances on a multisite host and other builds on the standard set now show PocketOne's logo and version, with Docs pointing at pocketone.dev.
Extensions
- Agent 0.0.2 → 0.0.3
- JSVM 0.1.1 → 0.1.2
- Standard Set 0.1.1 → 0.1.2
PocketOne v0.0.1-alpha.11
Read the announcement on the blog
Install or upgrade
New install on macOS or Linux:
brew install pocketonehq/tap/pocketoneThat's Homebrew; the formula comes from pocketonehq/homebrew-tap.
New install on Windows:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket
scoop install pocketoneThat's Scoop; the manifest comes from pocketonehq/scoop-bucket. To install without Scoop, see Windows without Scoop.
Without Homebrew, on macOS or Linux:
curl -fsSL https://pocketone.dev/install.sh | shOn Linux it installs the .deb, .rpm or .apk package below for your system, which adds a systemd service (Run PocketOne on a Linux server covers setting it up); on macOS it puts pocketone in /usr/local/bin.
Upgrade:
brew upgrade pocketoneOn Windows with Scoop, scoop update pocketone. If you used the install script (or a Linux package), run the script again. Otherwise, run pocketone upgrade (it keeps the old executable as pocketone-<version>, pocketone-<version>.exe on Windows) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- New installation tools. Windows installs with Scoop, macOS and Linux with
curl -fsSL https://pocketone.dev/install.sh | sh, and every release has.deb,.rpmand.apkpackages that set PocketOne up as a systemd service (Installation). The Homebrew formula moved topocketonehq/tap(see Upgrading). pocketone clone. Start a local project from a running app:pocketone clone <url>signs you in as a superuser, pulls its code, and you're ready forpocketone dev(Deploy).
Upgrading
- A multisite host runs one runtime: docker when
pocketone.yamlhas adockersection, else pocker. A host that had adockersection and served most instances on pocker now serves them all on docker; remove thedockersection to stay on pocker. - Remove
runtime:from instance records (instances file or mothership): it's no longer read, and every instance runs on the host's runtime. providers: { runtime/v1: ... }takes one name (runtime/v1: docker), not a list.- Installed with Homebrew? The formula moved to the
pocketonehq/taptap:brew uninstall pocketone, thenbrew install pocketonehq/tap/pocketone. Thepockethost/tapformula no longer gets new releases.
Added
- Builds on top of PocketOne can be the whole
pocketonebinary plus their own commands:pocketone.dev/examples/pocketone/binary.Maintakes the build's--versiontext, whereupgradegets releases, and extra commands (one with a PocketOne command's name replaces it). PocketHost'spockethostuses it. - Install on Windows with Scoop:
scoop bucket add pocketonehq https://github.com/pocketonehq/scoop-bucket, thenscoop install pocketone. Every release updates the manifest; manual steps are in Windows without Scoop. - Install script for macOS and Linux:
curl -fsSL https://pocketone.dev/install.sh | shinstalls the newest release, checking its checksum; run it again to upgrade (Installation). - Linux packages: every release has
.deb,.rpmand.apkpackages; the.deband.rpmadd apocketonesystemd service running as its own user, configured in/etc/pocketone, with data in/var/lib/pocketone(Run PocketOne on a Linux server).
Changed
- On a multisite host, an instance's
pb_cacheis hoisted out of its folder to the host'spb_cache/instances/<instance id>/(extkit.CacheDirandextkit.CacheRootreturn it; hosts useextkit.InstanceCacheRoot).instancesis reserved in a host'spb_cache. - runtime/v1 has one provider per host:
pocketone servewith amultisitesection registers only the runtime it runs (docker with adockersection, else pocker), and the instance record'sruntimefield is gone. - The
pocketonecommands that talk to a remote wait and try again when it answers 429 (rate limited), after itsRetry-After(up to 4 times; a wait over a minute is reported instead). pocketone login,linkandclonesign in as a superuser in the browser: the app's sign-in page opens on the superuser form, even when the browser is signed in there as an app user (whose token the deploy API refuses).
Fixed
pocketone deployno longer overwrites files changed on the remote since your last deploy, pull or dev: it stops and lists them, and--forceoverwrites (Deploy).- Contract streams (
instance.watch/v1's stream,remote/v1logs and the rest) no longer end after 5 minutes: they clear the server's write timeout, as PocketBase's realtime does. Edges following the mothership reconnected (and refetched every hostname) every 5 minutes.
Extensions
- API Tokens 0.2.0 → 0.2.1
- Deploy 0.1.0 → 0.2.0 (has upgrade steps)
- Docker 0.0.3 → 0.0.4
- Edge 0.0.1 → 0.0.2
- MCP 0.0.1 → 0.0.2
- Multisite 0.0.2 → 0.1.0 (has upgrade steps)
- Pocker 0.1.1 → 0.1.2
- Remotes 0.0.1 → 0.0.2
- Standard Set 0.1.0 → 0.1.1
- Upgrade 0.0.2 → 0.0.3
PocketOne v0.0.1-alpha.10
Read the announcement on the blog
Install or upgrade
New install:
brew install pockethost/tap/pocketoneHomebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.
Upgrade:
brew upgrade pocketoneOr, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
ctx.pb()writes work in PocketPages.create,updateand every other call with a body threwTypeError: operand 'prototype' property is not an object, becauseinstanceoffailed on Go constructors such asFormData. They work now, and validation and rule failures come back asClientResponseError(JSVM, Pages).require()works on every request. Arequire()inside a handler or any function that runs at request time failed withrequire("x"): not foundfrom the second request on. It now resolves and loads files on its own (Pages).
Extensions
PocketOne v0.0.1-alpha.9
Read the announcement on the blog
Install or upgrade
New install:
brew install pockethost/tap/pocketoneHomebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.
Upgrade:
brew upgrade pocketoneOr, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- A fix for multisite hosts running Pocker. On alpha.8, every Pocker instance that had API tokens failed to start: the API Tokens rename hit a bug in the sandbox's database driver, which also broke renaming any collection on a Pocker instance. Both work again. A single app (
pocketone serve) never had the bug (Sandbox).
Extensions
- Sandbox 0.0.2 → 0.0.3
PocketOne v0.0.1-alpha.8
Read the announcement on the blog
Install or upgrade
New install:
brew install pockethost/tap/pocketoneHomebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.
Upgrade:
brew upgrade pocketoneOr, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Highlights
- A language model in every app.
$agent.complete()and$agent.stream()inpb_hooksanswer from your own API or from a small model PocketOne runs itself, in the same binary: answers that match a JSON schema, threads, prompt caching, and stored conversations with Agent Chat. Pick the model in the dashboard under Settings → LLM (Agent). - WASM modules. Put a
<name>.pb.wasmbuilt from Go, TinyGo, Rust, Zig or C inpb_hooksand call it from your hooks withawait $wasm.run.async(name, input); each call runs in its own box with memory and time limits. Thanks to @octavonu (WASM). - Desktop apps.
pocketone desktop buildturns the app folder you run withpocketone serveinto a native desktop app for macOS, Windows and Linux, one executable each, from any machine (Desktop).
Upgrading
- The tokens extension is now
api-tokens: renametokens:toapi-tokens:inpocketone.yaml, use$apiTokensin JS hooks (was$tokens), and upgrade thepocketoneCLI with your apps (the token API moved to/api/_c/api-tokens/v1). Its collections are renamed on the first start (ext/api-tokens changelog). - Go import paths moved from
github.com/pockethost/pocketone/...topocketone.dev/...(the code is still on GitHub; pocketone.dev points Go at it). In your own Go code, replacegithub.com/pockethost/pocketone/withpocketone.dev/in imports andgo.mod(for examplepocketone.dev/ext/multisite), changereplace ganigeorgiev.com/pocketbase/pocketbase => github.com/pockethost/pocketone <version>to=> pocketone.dev <version>, then rungo mod tidy.
Added
pocketoneruns WASM modules: put a<name>.pb.wasminpb_hooksand call it from your hooks withawait $wasm.run.async(name, input)(ext/wasm).- Contract streams can push: a stream operation (
extkit.Stream) may be a POST with a JSON body, and its provider can send entries as they happen withRuninstead of being polled every 500 ms; aRunerror ends the stream withevent: error.pocketone remote <contract> <op>and the generated clients follow (Contracts). - Extensions can own their schema: an extension that has
Migrations()gets them applied at startup, after PocketBase's own migrations and before the app'spb_migrations, recorded in_extension_migrationsapart from the app's history.pocketone extensions migrationslists them;pocketone extensions migrate down <extension> [n]reverts them (Writing an extension). types.d.tstypes every contractpb_hookscan touch, generated from its Go interface: action hooks take their operation's input (onAgentComplete((e) => e.input.maxTokens ...)), ande.provide("mail.fallback/v1", ...)checks the object's methods and arguments; unknown ids stay untyped (Contracts).pb_cache/, next topb_data, is where extensions keep files they can rebuild, one folder each (pb_cache/<extension>/). It's never backed up, deployed or synced;pocketone cacheshows what's in it andpocketone cache clear [extension...]empties it (Folders). Addpb_cache/to your app's.gitignore.
Changed
- Extension collections are named
_<extension>_<table>, with hyphens in the extension's name as underscores (_agent_chat_messagesfor agent-chat); the conformance test no longer accepts a bare_<extension>, and CI refuses a table that falls under another extension's longer prefix (Writing an extension). - Extensions keep their end-user docs in
ext/<name>/docs/(wassite/).docs/index.mdis required and names the main docs nav section that links it (section: Reference); the README is the extension's page in the Extensions reference, at/docs/extensions/<name>/extension, and no longer appears in the docs' sidebar (Writing an extension). - PocketOne's Go modules are now
pocketone.dev/ext/<name>,pocketone.dev/examples/pocketoneandpocketone.dev(core, for thereplace), so the import path no longer names where the repo lives. - The repo moved to github.com/pocketonehq/pocketone (old
pockethost/pocketonelinks redirect), and its PocketBase mirror togithub.com/pocketonehq/pocketbase. In an existing clone:git remote set-url origin https://github.com/pocketonehq/pocketone.git.
Extensions
- Agent 0.0.2 (new)
- Agent Chat 0.0.2 (new)
- API Tokens 0.1.0 → 0.2.0 (has upgrade steps)
- Cache 0.0.2 → 0.1.0 (has upgrade steps)
- Deploy 0.0.2 → 0.1.0 (has upgrade steps)
- Desktop 0.0.2 (new)
- Docker 0.0.2 → 0.0.3
- JSVM 0.0.2 → 0.1.0 (has upgrade steps)
- Pages 0.1.0 → 0.1.1
- Pocker 0.1.0 → 0.1.1
- S3 Fallback 0.0.1 → 0.0.2
- S3 Redirect 0.0.1 → 0.0.2
- Sandbox 0.0.1 → 0.0.2
- Standard Set 0.0.2 → 0.1.0 (has upgrade steps)
- UI Cache 0.0.2 (new)
- Upgrade 0.0.1 → 0.0.2
- WASM 0.0.2 (new)
PocketBase
- Built on PocketBase v0.42.3 plus one later upstream commit (c5003ce; was v0.42.2). Realtime subscription changes no longer need to come from the connection's IP, OAuth2 redirects also accept the subscribing IP and log failures at WARN, and S3 multipart uploads that S3 reports as failed in a 200 response now fail. See its changelog.
PocketOne v0.0.1-alpha.7
Install or upgrade
New install:
brew install pockethost/tap/pocketoneHomebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.
Upgrade:
brew upgrade pocketoneOr, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Upgrading
- Put app and serve flags after the command name:
pocketone serve --hooksDir x, notpocketone --hooksDir x serve. Only--configand--env-file(and core's--dir,--dev,--encryptionEnv,--queryTimeout, still accepted anywhere) can come before it. - In
pocketone.yaml, movepublic_dir,index_fallback,hooks_watchandautomigratefromapp:toserver:(see the config changelog).
Added
- Agent Skills: a third skill,
pocketone-extensions, for writing an extension and contributing it as a pull request; thepocketoneskill now covers only using PocketOne in an app, and no longer carries its own copy of the PocketPages docs (thepocketpagesskill has them). Update with/plugin marketplace update pocketoneornpx skills add pockethost/pocketone. app: js_limits:inpocketone.yamlsets the JS engine's limits for the app:memory(default 64MiB),task_time(JS time per task, default 5s) andtask_wall(wall time per task, default 30s).- pocketone.dev has a Remote administration page and CLI, REST and MCP references generated from the
pocketonebinary; every contract and extension page lists its commands, endpoints and MCP tools. - pocketone.dev has a Tutorials section: QuickJS (limits, why there's no VM pool, a benchmark against goja) and Configure with pocketone.yaml.
- pocketone.dev shows the current release in its header, linked to its release notes.
Changed
- Each flag is now on the commands that read it instead of on every command:
--dir,--dev,--encryptionEnv,--queryTimeout,--jsvm,--hooksDir,--hooksPooland--migrationsDiron the commands that open the app (serve,migrate,superuser,pitr,token,oauth,template);--hooksWatch,--automigrate,--publicDir,--indexFallback,--pagesDir,--pitr*,--s3Redirect*and--autotls*onserveonly. Remote commands such asdeployandlinklist just their own flags plus--configand--env-file, and reject the others.
Extensions
- Cache 0.0.1 → 0.0.2
- Config 0.0.1 → 0.1.0 (has upgrade steps)
- Deploy 0.0.1 → 0.0.2
- Docker 0.0.1 → 0.0.2
- JSVM 0.0.1 → 0.0.2
- Multisite 0.0.1 → 0.0.2
- Pages 0.0.1 → 0.1.0 (has upgrade steps)
- Pocker 0.0.1 → 0.1.0 (has upgrade steps)
- Standard Set 0.0.1 → 0.0.2
- Templates 0.0.1 → 0.0.2
- Tokens 0.0.1 → 0.1.0 (has upgrade steps)
- Vacuum 0.0.1 → 0.0.2
PocketOne v0.0.1-alpha.6
Install or upgrade
New install:
brew install pockethost/tap/pocketoneHomebrew on macOS or Linux; the formula comes from pockethost/homebrew-tap. Or download the zip for your platform below and run ./pocketone serve.
Upgrade:
brew upgrade pocketoneOr, if you didn't install with Homebrew, run pocketone upgrade (it keeps the old executable as pocketone-<version>) or download the zip below. Check the Upgrading section below, if this release has one, before you upgrade.
What's in this release
Upgrading
- jsvm: PocketBase's
plugins/jsvmis upstream's again:Config.Extensions,jsvm.Runandjsvm.ScriptPathare gone from it. Useext/jsvm(its extension methods andjs.Run) instead.ext/jserrorsis removed;ext/jsvmreports real file positions. - jsvm: Go code that binds JS takes
js.Runtime(github.com/pockethost/pocketone/ext/extkit/js) instead of*goja.Runtime:extkit.JSBinder.BindJS(app, rt),extkit.BindJS(app, rt, ...),extkit.AppSet.BindJS, Pocker'sInitJS(inst, app, rt),mcp.BindJS(app, rt),tokens.BindJS(app, rt),bulkmail.BindJS(app, rt).extkit.JSContracts(app)no longer takes a runner.standard.Set.Registertakes anext/jsvmconfig. - sandbox:
MaxCallStackSizeandMaxConcurrentare gone (the engine caps call depth withjsvm.Config.VM.StackSize; setjsvm.Config.VM.MaxConcurrent).Sandbox.Limits()gives the execution and sleep limits forjsvm.Config.VM. - bundle:
ext/jsembedis nowext/bundleand runs on theext/jsvmengine. Importgithub.com/pockethost/pocketone/ext/bundle, registerext/jsvminstead ofplugins/jsvm, and passbundle.Hooks(...)/bundle.Migrations(...)injsvm.Config.Extensions. Arequire()that isn't found now says "Cannot find module". - Environment variables: every PocketOne variable now starts with
P1_, in every build (PB_stays PocketBase's own). RenamePOCKETONE_TOKEN→P1_TOKEN,POCKETONE_TOKEN_<REMOTE>→P1_TOKEN_<REMOTE>,POCKETONE_CONFIG_DIR→P1_CONFIG_DIRandPB_MAILTRAP_HTTP/PB_MAILTRAP_SMTP→P1_MAILTRAP_HTTP/P1_MAILTRAP_SMTPin CI and scripts. Thepockethostbuild readsP1_TOKENtoo, no longerPOCKETHOST_TOKEN. - tokens: The CLI's built-in OAuth client is now
pocketone-cli(waspocketbase-cli). Browser logins made before this release can't renew once the remote is upgraded: runpocketone login <remote>again when one expires. - remotes:
loginandlinkno longer take a password:--email,--password,--collectionandPOCKETONE_PASSWORDare gone. Sign in through the browser (--deviceon a machine without one), or pass an API token with--token,--token-stdinorP1_TOKEN. A saved login made with a password keeps working;logoutno longer revokes its token, so delete it in the dashboard.
Added
-
jsvm:
pb_data/types.d.tsnow covers PocketOne: generated from PocketOne's core (its extra hooks, e.g.onFilesystemCreate), with typed.asyncon every Go function,require,process,Buffer,import.meta, and the API of each extension on in the app ($mcp,$tokens,$bulkmail,onContracts). Extensions add theirs with aTypeScript()method. -
jsvm: TypeScript:
.ts,.mtsand.ctshooks (*.pb.ts,*.pb.mts,*.pb.cts), migrations and modules run directly, with types stripped by esbuild and error positions in the.tssource..tsand.mtsare ES modules,.ctsis CommonJS;import "./x.js"findsx.ts. No runtime type checking: usetsc --noEmitwithpb_data/types.d.ts. -
jsvm: ES modules:
pb_hooks/*.pb.mjshook files,pb_migrations/*.mjsmigrations and.mjsmodules useimport/exportwith top-levelawaitandimport.meta.*.pb.jsand the new*.pb.cjsstay CommonJS scripts withrequire().importandrequire()share one resolver (relative paths,node_modules,package.jsonexportsconditions) and one instance per module;require()of an ES module without top-levelawaitreturns its namespace, as in Node 22. -
jsvm:
jsvm: gojaunderapp:inpocketone.yaml, or--jsvm goja, runs a single app on PocketBase's own JS engine for pure PocketBase compatibility (pages,$mcp,$tokens,$bulkmailand JS contracts are off; the startup lines say so). The default isquickjs. -
bundle:
bundle.Public(app, fsys, indexFallback)serves public files embedded in the binary, likepb_public. -
jsvm: new
ext/jsvmextension, PocketOne's JS engine: one QuickJS VM per app with real globals, async handlers and.asyncGo calls, and hard per-app memory and time limits. It runs PocketBase's JS API unchanged, and is pure Go (no cgo), soCGO_ENABLED=0builds and cross-compiles work as with stock PocketBase.
Changed
- A request with an unknown or expired
Authorizationtoken now gets a 401 instead of going on as a guest (PocketBase v0.42.0). Clients that send a stale token should drop it and sign in again./mcpkeeps answering with its own sign-in challenge, so MCP clients still re-authenticate. - jsvm: the
pocketonebinary and every Pocker instance run JS onext/jsvm(QuickJS, one VM per app) instead of goja. Hooks, routes and migrations run as before; hook files now share one global scope, handlers can beasync, and errors namepb_hooks/<file>:<line>:<col>on their own (ext/jserrorsis no longer used).--hooksPoolis accepted and ignored. - sandbox, pocker: each instance's JS has a hard memory cap (64 MiB: JS heap plus Go objects it holds); gradual growth is now limited per instance, not only one-shot allocations. Process-reaching Go methods are also hidden when an app type embeds
*core.BaseApp. - contracts: contract providers and
on<Contract><Op>handlers written in pb_hooks can use the file's top-level variables. - pages: runs on
ext/jsvm. Templates can include each other at most 32 deep (was 64). A page that runs away now fails with the engine's "interrupted" or "out of memory" error. - tokens: The CLI's OAuth client id, the CLI's User-Agent and the default deploy source are now
pocketone-cli, matching the "pocketone CLI" name on the sign-in pages.
Fixed
- jsvm, sandbox: a hook can no longer pin a CPU with an Array method on a huge sparse array or array-like (
new Array(1e9).join("x"),[].indexOf.call({ length: 2 ** 53 - 1 }, 1)), which QuickJS ran without checking the time limit. Array methods that walk every index, and passing an array to a Go function, now throw aRangeErrorpastMemoryLimit / 16elements (4,194,304 at the default 64 MiB), a length no dense array fits in that memory. - A crash or data race when an app stops its cron scheduler (on shutdown or restart), a PocketBase v0.42 regression; fixed in core until upstream has it.
PocketBase
- Built on PocketBase v0.42.2 (was v0.41.1). See its changelog for v0.42.0 to v0.42.2.