Stores
The public store and your own source.
The public rumahl store is store.rumahl.com: a storefront and the catalog API at /api/catalog for apps and themes. Package downloads and updates resolve to github.com/rumahl/apps. Inside rumahl OS, every source uses the same Store app; the platform owns verification, installation and device trust.
What a store is
The native Store app is a trusted first-party shell app at /app/store. It does not trust source metadata as executable content. It fetches a JSON index through the authenticated same-origin bridge, displays the catalogue and installs the signed package the index points to.
The public rumahl store separates three jobs:
- store.rumahl.com serves the public storefront and the catalog/communication API used by rumahl OS.
- github.com/rumahl/apps holds the app and theme packages. Downloads and updates resolve here.
- github.com/rumahl/store.rumahl.com is the storefront and API implementation. It is a separate repository from the package repository.
The same store lists apps and themes. There is no separate theme marketplace. The public catalog endpoint is https://store.rumahl.com/api/catalog; its package entries point into github.com/rumahl/apps for downloads and updates.
The public storefront uses RWDS; the native Store in rumahl OS uses RUI. Both read the same catalog and the same optional editorial block, so the hero, five featured apps and curated collections are the same product without sharing a visual component implementation.
| Piece | Owner |
|---|---|
| Public storefront and API | store.rumahl.com |
| Public app and theme packages | github.com/rumahl/apps |
| Store implementation | github.com/rumahl/store.rumahl.com |
| OS Store frontend | rumahl OS shell (the same UI for every source) |
| Custom storefront website | Your store, external and optional |
| Catalogue index | The public store API or your HTTPS source |
| Package URL | The public package repository or your source |
| Signature verification | The rumahl platform |
| Install consent and journal | The rumahl platform |
| Source trust decision | The local rumahl account |
Sources are owned by the OS
The source list is platform state, not browser state. It is stored per account by the OS and shared by every device signed into that account. The official store is the default until the account saves its own list; a saved list replaces the default and an empty list stays empty.
- Settings → Store sources edits the list. The Store app, the update check and the background scheduler read the same list.
- The scheduler checks enabled sources roughly every six hours, after source changes and after installs. It does not need an open browser.
- App updates use the OS-owned policy: auto-update all apps or selected apps. Updates download and install through platform jobs, so closing the Store window does not cancel them.
- Installs are OS jobs too. The desktop and launcher show a pending tile with an iOS-style progress ring while the package downloads and verifies.
- The public storefront is a Next.js app deployed on Vercel. It reads the catalog at runtime, so publishing an app does not rebuild or redeploy the storefront.
Source errors stay visible: an unreachable host, a certificate problem, an HTTP status or an invalid index is reported with the reason instead of hiding the source.
1. Choose a store type
| Store type | What it provides | Status |
|---|---|---|
| Public rumahl store | The storefront and catalog API at store.rumahl.com; app and theme packages live in github.com/rumahl/apps. | Available |
| API-only | An HTTPS JSON index and signed package URLs. No custom storefront. | Implemented |
| API + custom storefront | The same index plus an external website for discovery. The OS Store remains the shared frontend. | Allowed; storefront is external |
| Git repository | A GitHub repository with store.json, or a single-app repo with manifest.json and store-package.json. | Implemented for GitHub |
The most important rule: inside rumahl OS, all stores render through the one Store app. A custom storefront is an additional discovery surface outside the shell. It must not replace the OS Store, hide the source, or bypass signed-package installation. See Store guidelines.
2. Publish the common index
The shell fetches the index through GET /api/v1/shell/store/fetch?url=…. It allows HTTPS only, rejects credentials and fragments, follows no redirects, has a 15 second timeout and limits the document to 32 MiB.
https://store.example/index.json
github:owner/repo
github:owner/repo@main/catalog
https://github.com/owner/repo/tree/main/catalog
# each resolves to:
https://raw.githubusercontent.com/owner/repo/main/catalog/store.json
A GitHub source resolves the repository, ref and optional directory to a raw store.json. Only GitHub is recognized today; other Git hosts are not accepted by the source parser.
A GitHub repository without store.json can still be a single-app source. The shell reads manifest.json for identity and store-package.json for the signed package, which is useful for a repository that ships exactly one app. For a catalogue, publish store.json.
{
"storeVersion": 1,
"name": "Example Store",
"description": "Small local-first apps for the home.",
"editorial": {
"hero": {
"eyebrow": "Featured",
"title": "A quieter home",
"summary": "Apps for your home and your work.",
"cta": "Explore the collection",
"target": "featured",
"image": "https://store.example/editorial/hero.webp"
},
"featured": ["com.example.notes"],
"collections": [{
"id": "home",
"title": "A better home server",
"summary": "Core apps for a capable, private home.",
"category": "All Apps",
"image": "https://store.example/editorial/collection.webp"
}]
},
"apps": [
{
"id": "com.example.notes",
"title": "Notes",
"version": "1.0.0",
"summary": "A local-first notes app.",
"publisher": "Example",
"packageUrl": "https://store.example/packages/notes.package.json",
"sourceUrl": "https://github.com/example/notes",
"category": "Productivity",
"rating": 4.8,
"downloads": 18400,
"featured": true,
"permissions": ["Read personal files", "Show notifications"],
"iconUrl": "https://store.example/media/notes-icon.png",
"screenshots": ["https://store.example/media/notes-screen.png"]
}
]
}
A relative packageUrl resolves against the index URL. It must still resolve to HTTPS. App IDs must be valid rumahl app IDs.
| Required field | Rule |
|---|---|
storeVersion | Must be 1 |
name | Source display name |
apps[] | Array of app entries |
apps[].id | Valid rumahl app ID, identical to the signed manifest |
apps[].title | Non-empty display title |
apps[].version | Package version |
apps[].packageUrl | HTTPS package document, absolute or relative to the index |
Optional fields are omitted when unknown. Invalid optional metadata is ignored; an invalid required field fails the index.
3. Design the common front page
This section describes the front page inside rumahl OS and the public storefront. It is metadata-driven and shared by every source. A source shapes the editorial composition through optional fields, not injected HTML, CSS or JavaScript:
| Field | Effect |
|---|---|
editorial.hero | Shared landscape hero: eyebrow, title, summary, CTA label, target and image |
editorial.featured[] | Ordered app ids for the five-card featured row |
editorial.popular[] / recent[] | Ordered app ids for the Popular now and New arrivals rank rows |
editorial.feature | Tinted editorial band: eyebrow, title, summary, CTA, target and app icon ids |
editorial.collections[] | Up to six curated collection cards with title, summary, category and image |
description / releaseNotes | Longer source copy for detail pages; bounded by the index parser |
featured: true | Fallback ordering when a source does not provide shared editorial content |
category / categories | Category filter and card tags; up to six values |
rating | A number from 0 to 5; optional detail metadata |
downloads | A non-negative integer; optional detail metadata |
sourceUrl | Optional HTTPS source repository link shown on the app detail page |
permissions | Human-readable source metadata; the signed manifest stays authoritative |
fullAccess: true | Marks an app as full system access and shows a risk warning before install. Use only when true; it is not a grant |
iconUrl / screenshots | Same-origin metadata artwork; up to 8 MiB each |
A custom storefront is not limited to this metadata layout. It is your own website; see the next section.
Custom storefronts
A store may have its own website for discovery, editorial content, developer pages or account features. It is a normal website hosted by the store. It is not injected into the OS Store and there is no API that replaces the shell frontend. This is the API + custom storefront store type.
- The custom frontend must follow the Store guidelines.
- It must present the same signed packages and must not offer an unsigned install path.
- It must not imply that it is an official rumahl Store or that rumahl reviewed the app.
- It must state its publisher/source identity and provide a way to report a problem.
- Inside rumahl OS, the source is still browsed and installed through the common Store frontend.
The complete requirements — identity, accessibility, privacy, support and the no-unsigned-install rule — are in the Store guidelines. The implementation guide is Build a custom storefront.
4. Images and media
The shell CSP only permits same-origin images. Source artwork is fetched through GET /api/v1/shell/store/image?url=…. PNG, JPEG, WebP, GIF and AVIF are accepted; invalid optional metadata is ignored, while required fields fail the index.
- Use the same HTTPS origin as the index for icons and screenshots.
- Keep art local-first: show the actual app, not a generic mockup.
- Mark screenshots that are illustrative; do not imply a feature the package lacks.
- Use a square icon and a wide first screenshot for the detail hero.
5. Certificate trust
The source bridge uses normal web PKI. If a source presents an untrusted certificate, the Store performs a short TLS probe and returns 428 Precondition Required with the host and SHA-256 leaf fingerprint. The user can trust or cancel.
A confirmed certificate is pinned per OS account and host in $RUMAHL_STATE_DIR/app-store-trust.json. Package URLs on the same host use the same decision. If the certificate changes, the next fetch asks again. System-trusted certificates never trigger the prompt.
6. Test the store locally
The repository includes a development example store:
scripts/dev-example-store.sh
# builds and signs example apps, then starts a local HTTPS store
- Open Settings → Store sources.
- Add the local HTTPS URL.
- Confirm the source certificate prompt once.
- Browse Discover, All apps, My apps and a detail page.
- Install one app and verify the signed package and install journal.
- Disable the source and confirm it disappears from the Store navigation.
Store source checklist
storeVersion: 1and valid app IDs.- Every
packageUrlis HTTPS and serves a signed package, including GitHub raw URLs. - A custom storefront links to the same signed packages and never replaces the OS Store.
- Icons and screenshots use the same origin and a supported image type.
- Featured entries are real; do not invent ratings or downloads.
- Permissions metadata matches the signed manifest or is omitted.
- Source errors remain visible; the Store does not hide an unavailable source.
- Installation remains on the signed-package path.
Next
- Build a custom storefront — the external website contract.
- A complete store source — signed packages, index and deployment.
- Store guidelines — rules for custom frontends and metadata.
- Publish an app — package, metadata and review.
- Certification and trust — what is verified today.
- App packages — the signed manifest.
Was this page helpful?