Serverless Expo Updates on Cloudflare
Repo celestial-rose/updates, read from GitHub 34 min ago. celestial-rose has not joined Take My Repo.
celestial-rose/updates is a public repo on GitHub by celestial-rose. Serverless Expo Updates on Cloudflare. It declares the MIT license on GitHub. It is written mainly in TypeScript, has 20 stars and last changed on 2026-08-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Deploy Expo Updates for pennies. Scale infinitely. Own your infrastructure.
Celestial Updates is a self-hosted, open-source custom Expo Updates server designed to run on the Cloudflare Developer Platform. Built with the ultra-fast Hono framework, it leverages Cloudflare Workers, R2 Storage, and KV Namespace to provide a blazing fast, globally distributed, and incredibly cost-effective alternative.
We love Expo Updates. It allows you to:
But as you scale, costs can add up. Celestial Updates solves this. You pay only for what you use, often fitting within Cloudflare's generous free tier or costing significantly less at scale.
wrangler deploy.bun install -g wrangler)Clone the repository:
git clone https://github.com/celestial-rose/updates.git
cd updates
bun install
Configure Cloudflare Resources: You need to create an R2 bucket and a KV namespace.
# Create KV Namespace
bunx wrangler kv namespace create EXPO_UPDATES_KV
# Create R2 Bucket (optional: specify jurisdiction)
bunx wrangler r2 bucket create expo-updates-assets --jurisdiction eu
Update wrangler.jsonc:
Update the kv_namespaces section in wrangler.jsonc with the ID you received from the previous command. The R2 bucket name should match what you created (default is expo-updates-assets).
If you used a specific jurisdiction (like 'eu'), make sure to add it to the bucket configuration.
// ...
"r2_buckets": [
{
"bucket_name": "expo-updates-assets",
"binding": "EXPO_UPDATES_BUCKET",
"jurisdiction": "eu" // Optional: if you created the bucket in a specific jurisdiction
}
],
"kv_namespaces": [
{
"binding": "EXPO_UPDATES_KV",
"id": "YOUR_NEW_KV_ID_HERE"
}
]
// ...
Generate Keys for Code Signing (Automated):
The publish script will automatically detect if you have code signing enabled in your app.json but are missing keys. It will offer to generate them for you.
Manual Option: If you prefer to generate them manually:
mkdir -p code-signing
bunx expo-updates codesigning:generate --key-output-directory code-signing --certificate-output-directory code-signing --certificate-validity-duration-years 10 --certificate-common-name "My App"
Set Secrets (Automated): The publish script will also check if your private key is uploaded to Cloudflare. If not, it will offer to upload it for you.
Manual Option:
bunx wrangler secret put EXPO_UPDATES_PRIVATE_KEY_MY_APP --environment {ENVIRONMENT} < code-signing/private-key.pem
Deploy:
bun run deploy
Note the URL of your deployed worker (e.g., https://my-expo-updates-server.my-subdomain.workers.dev).
In your Expo project's app.json (or app.config.js), configure the updates section to point to your new Celestial Updates server.
Set the URL and Code Signing (if enabled):
{
"expo": {
"slug": "my-app",
"runtimeVersion": "1",
"platforms": ["ios", "android"],
"updates": {
"url": "https://my-expo-updates-server.my-subdomain.workers.dev/my-app/api/manifest",
"enabled": true,
"checkAutomatically": "ON_LOAD",
"fallbackToCacheTimeout": 0,
"codeSigningCertificate": "./code-signing/certificate.pem",
"codeSigningMetadata": {
"keyid": "main",
"alg": "rsa-v1_5-sha256"
}
},
// ...
}
}
Double Check: Ensure the url includes your project slug (e.g., /my-app/api/manifest) and matches your worker's deployed URL. The codeSigningCertificate path must point to your generated certificate file.
If you use code signing, ensure the codeSigningCertificate path points to a valid file. If not, the publish script can help you generate one.
Update .gitignore (Highly Recommended):
Add dist-updates to your .gitignore file to prevent the build artifacts from polluting your repository.
dist-updates
Since updates must be compatible with a build's native code, any time native code is updated, we're required to make a new build before publishing an update. Some developers only update native code when upgrading to a new Expo SDK, while others may upgrade native code between builds or at other intervals. Below is an explanation of different situations and configurations that may suit your project.
"runtimeVersion"To make managing the "runtimeVersion" property easier between builds and updates, we've created policies that derive the runtime version from another piece of information already present in your project. If these policies do not match the development flow of a project, there's also an option to set the "runtimeVersion" manually.
The available policies are documented in the expo-updates library documentation.
You must set a custom runtime version that meets the runtime version formatting requirements:
{
"expo": {
"runtimeVersion": "1.0.0"
}
}
You can also set runtime version per-platform, for example
{
"expo": {
"android": {
"runtimeVersion": "1.0.0"
}
}
}
When both a top level runtime and a platform specific runtime are set, the platform specific one takes precedence.
CRITICAL: When you install or update native libraries (e.g., expo-camera, react-native-reanimated) or change native code, you MUST update the runtimeVersion in your app.json.
If you publish an update with the same runtimeVersion but different native code requirements, your users' apps will crash because the native code they have installed won't match what the JavaScript bundle expects.
Best Practices:
runtimeVersion: Change it manually (e.g., "1.0.0" -> "1.0.1") or use a policy like "appVersion" or "fingerprint" (see Runtime version policies).For a deeper dive into how runtime versions work, refer to the Expo documentation on Runtime Versions.
We provide a handy script to publish updates directly from your Expo project to your Celestial Updates infrastructure.
Run the publish script:
Run the publish script directly from the celestial-updates directory:
# Publish to Production
bun run publish:prod
# Publish to Staging
bun run publish:staging
First Run & Configuration:
.env file in the celestial-updates directory..env file under EXPO_PROJECT_PATHS (comma-separated).EXPO_PROJECT_PATHS=/path/to/project-a,/path/to/project-b
If multiple paths exist, the script will ask you to select which project to publish.Or with a remote flag if you want to publish directly to Cloudflare:
bun run publish:prod --remote
What the script does:
app.json to get the runtimeVersion.expo export to bundle your JavaScript and assets.For detailed information on Code Signing, strictly follow the official Expo documentation.
Celestial Updates expects the expo-expect-signature header and will sign the response using the EXPO_UPDATES_PRIVATE_KEY secret you set earlier.
We use vitest with @cloudflare/vitest-pool-workers to test the worker logic in a simulation of the Cloudflare environment.
Run Tests:
bun run test
We welcome contributions! Please see our contributing guidelines below to get started.
git checkout -b feature/amazing-new-feature
bun run test
main branch of this repository.β οΈ Warning: Sentry integration is currently a Work In Progress (WIP) and considered Alpha. It may not be ready for production use. Proceed with caution.
Disclaimer: Since Celestial Updates uses npx expo export instead of eas update, source map uploading for Sentry needs to be handled manually or integrated into your CI/CD workflow.
Sentry Source Map Uploads for Expo
The following documentation is taken from the link above:
Manual Upload for Updates:
To upload source maps for updates generated via npx expo export, set up the Sentry Expo Plugin, the Sentry Metro plugin and execute the sentry-expo-upload-sourcemaps command.
Create Update (which generates source maps):
bunx expo export --dump-sourcemap
# Then run the celestial-updates publish script to upload assets to R2/KV
Upload Source Maps: To upload source maps for all platforms use the following command:
SENTRY_AUTH_TOKEN=sntrys_YOUR_TOKEN_HERE \
bunx sentry-expo-upload-sourcemaps dist
To upload source maps without expo plugin (bare workflow):
SENTRY_AUTH_TOKEN=sntrys_YOUR_TOKEN_HERE \
SENTRY_PROJECT=example-project \
SENTRY_ORG=example-org \
SENTRY_URL=https://sentry.io/ \
bunx sentry-expo-upload-sourcemaps dist
Notes:
dist is the default output directory of bunx expo export. Ensure this matches your export path.app.json / app.config.js) if the environment variable isn't set.celestial-rose/updates is a public repo on GitHub by celestial-rose. Serverless Expo Updates on Cloudflare.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-08-18. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run updates. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-08-18. It has 20 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.