oasis-setup
Original:🇺🇸 English
Translated
Expert guide for integrating Oasis into Tauri applications. Use when working with oasis-sdk, auto-updates, crash reporting, user feedback, release workflows, or any Oasis-powered Tauri project.
17installs
Sourceporkytheblack/oasis
Added on
NPX Install
npx skill4agent add porkytheblack/oasis oasis-setupTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Oasis — Development Guide
You are an expert on the Oasis platform. Use this knowledge when integrating, debugging, or reviewing Oasis code in Tauri applications.
What Oasis Is
Oasis is a self-hosted platform for managing Tauri application releases, collecting user feedback, and tracking crashes. Developers integrate the SDK into their Tauri app, configure the release workflow, and Oasis handles update distribution, crash collection, and feedback management.
Repository: https://github.com/porkytheblack/oasis
License: MIT
Component Overview
| Component | Purpose | Location |
|---|---|---|
| Client SDK: feedback, crashes, breadcrumbs | |
| Server | Hono backend API for releases, crashes, feedback | |
| Dashboard | Next.js admin UI for managing apps | |
| Release Workflow | Reusable GitHub Actions for Tauri builds | |
Architecture at a Glance
Tauri App + SDK → Oasis Server → Dashboard
↓ ↓
Crash reports Release management
User feedback Update distribution
Breadcrumbs AnalyticsAPI Key Types
| Type | Prefix | Use |
|---|---|---|
| Public | | SDK initialization (client-side) |
| CI | | GitHub Actions release registration |
| Admin | | Full dashboard access |
Quick Start
1. Install SDK
bash
npm install oasis-sdk2. Initialize
typescript
import { initOasis } from 'oasis-sdk';
const oasis = initOasis({
apiKey: 'pk_my-app_xxxxxxxx', // From Oasis dashboard
serverUrl: 'https://updates.myapp.com', // Your Oasis server
appVersion: '1.0.0', // Current app version
enableAutoCrashReporting: true, // Auto-capture uncaught errors
});3. Collect Feedback
typescript
await oasis.feedback.submit({
category: 'bug', // 'bug' | 'feature' | 'general'
message: 'Description of the issue',
email: 'user@example.com',
});
// Convenience methods
await oasis.feedback.reportBug('Bug description');
await oasis.feedback.requestFeature('Feature request');4. Manual Crash Reporting
typescript
try {
riskyOperation();
} catch (error) {
await oasis.crashes.captureException(error, {
severity: 'error', // 'warning' | 'error' | 'fatal'
appState: { screen: 'checkout' },
});
}SDK API Reference
OasisConfig
typescript
interface OasisConfig {
apiKey: string; // Required: Public API key (pk_*)
serverUrl: string; // Required: Oasis server URL
appVersion: string; // Required: Current app version (semver)
enableAutoCrashReporting?: boolean; // Auto-capture errors (default: false)
maxBreadcrumbs?: number; // Max breadcrumbs (default: 50)
timeout?: number; // Request timeout ms (default: 10000)
debug?: boolean; // Enable debug logging (default: false)
beforeSend?: (event) => event | null; // Filter/modify events
onError?: (error, event) => void; // Called on send failure
}Feedback API
typescript
await oasis.feedback.submit({ category, message, email?, metadata? });
await oasis.feedback.reportBug(message, email?);
await oasis.feedback.requestFeature(message, email?);
await oasis.feedback.sendFeedback(message, email?);Crash Reporting API
typescript
await oasis.crashes.captureException(error, { severity?, appState?, tags? });
await oasis.crashes.report({ error, severity?, appState?, tags? });
oasis.crashes.enableAutoCrashReporting();
oasis.crashes.disableAutoCrashReporting();Breadcrumbs API
typescript
oasis.breadcrumbs.add({ type, message, data? });
oasis.breadcrumbs.addNavigation(from, to);
oasis.breadcrumbs.addClick(target, data?);
oasis.breadcrumbs.addHttp(method, url, statusCode?);
oasis.breadcrumbs.addConsole(level, message);
oasis.breadcrumbs.addUserAction(action, data?);
oasis.breadcrumbs.getAll();
oasis.breadcrumbs.clear();Auto-collected: Navigation, clicks, console messages, fetch requests.
User Tracking
typescript
oasis.setUser({ id, email?, username?, ...custom });
oasis.setUser(null); // Clear userUtilities
typescript
await oasis.flush(); // Flush event queue
oasis.getConfig(); // Get current config
oasis.destroy(); // Clean up resourcesTauri Configuration
Enable Auto-Updates
In :
src-tauri/tauri.conf.jsonjson
{
"tauri": {
"updater": {
"active": true,
"endpoints": [
"https://YOUR_OASIS_SERVER/your-app-slug/update/{{target}}/{{current_version}}"
],
"dialog": true,
"pubkey": "YOUR_PUBLIC_KEY_HERE"
}
}
}Generate Signing Keys
bash
npx @tauri-apps/cli signer generate -w ~/.tauri/myapp.key- Private key → GitHub secret
TAURI_SIGNING_PRIVATE_KEY - Public key → under
tauri.conf.jsonupdater.pubkey
GitHub Actions Workflow
Create :
.github/workflows/release.ymlyaml
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
uses: porkytheblack/oasis/.github/workflows/tauri-release.yml@main
with:
app_slug: your-app-slug
artifact_prefix: YourApp
app_name: Your App Name
app_dir: .
distribute_to: r2,oasis,github
auto_publish: true
r2_public_url: https://cdn.example.com
secrets:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_R2_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
CLOUDFLARE_R2_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }}
OASIS_SERVER_URL: ${{ secrets.OASIS_SERVER_URL }}
OASIS_CI_KEY: ${{ secrets.OASIS_CI_KEY }}
NEXT_PUBLIC_OASIS_API_KEY: ${{ secrets.NEXT_PUBLIC_OASIS_API_KEY }}
NEXT_PUBLIC_OASIS_SERVER_URL: ${{ secrets.NEXT_PUBLIC_OASIS_SERVER_URL }}Required Secrets
| Secret | Description |
|---|---|
| Base64-encoded .p12 certificate |
| Certificate password |
| e.g., "Developer ID Application: Name (TEAMID)" |
| Apple ID email |
| App-specific password |
| Apple Developer Team ID |
| From |
| Cloudflare account ID |
| R2 API access key |
| R2 API secret key |
| R2 bucket name |
| Your Oasis server URL |
| CI API key ( |
Supported Platforms
| Platform | Target | Bundle Types |
|---|---|---|
| macOS (Apple Silicon) | | .dmg, .app.tar.gz |
| macOS (Intel) | | .dmg, .app.tar.gz |
| Linux | | .AppImage, .deb, .AppImage.tar.gz |
| Windows | | .exe (NSIS), .nsis.zip |
Supporting Files
For extended documentation including workflow details and integration checklist, see references/integration-guide.md.
Common Gotchas
- API key prefix matters: Public keys start with , CI keys with
pk_. Using the wrong type will fail silently.uk_live_ - Update endpoint URL format: Must include and
{{target}}placeholders exactly as shown.{{current_version}} - Signing key mismatch: The public key in must match the private key used in CI. Regenerating keys without updating both will break updates.
tauri.conf.json - Events not sending: Enable in SDK config to see network errors. Common causes: wrong serverUrl, CORS issues, invalid apiKey.
debug: true - Crashes not captured: Auto-capture only works if is set during
enableAutoCrashReporting: true, not after.initOasis() - macOS signing failures: must match the certificate name exactly, including the team ID in parentheses.
APPLE_SIGNING_IDENTITY - Release not appearing in app: Check in workflow. Unpublished releases exist in dashboard but aren't served to clients.
auto_publish: true - dry_run for testing: Use workflow input to test builds without uploading artifacts or registering releases.
dry_run: true - R2 public URL: The must be the public-facing CDN URL, not the R2 API endpoint.
r2_public_url - Version format: must be valid semver (e.g., "1.0.0", not "v1.0.0"). The workflow extracts version from git tags automatically.
appVersion