Stores · storefront
Build a custom storefront.
Build a public website where people can find your apps, read release details and copy your source URL. The official rumahl storefront is store.rumahl.com; this guide is for a custom source that keeps the same signed-package and OS Store rules.
If you still need an index, define your source and publish a catalogue with the store source guide.
What a custom storefront is
It is a normal website hosted by the store. It reads the same public store.json index that rumahl OS reads inside the Store app. It can have a landing page, categories, editorial collections, search and app detail pages. It is not the public store.rumahl.com frontend and must not present itself as one.
It is not a replacement for the OS Store and it is not embedded in the shell. When a user adds your source URL in rumahl OS, the common Store frontend presents your catalogue. Your website is a separate discovery surface.
A custom storefront can also be the start page of a normal browser. It still cannot replace the shell front page or inject itself into rumahl OS. There is no documented new-tab or shell-homepage plugin API.
| You can | You cannot |
|---|---|
| Design your own storefront website | Replace the Store UI inside rumahl OS |
| Read and present the public index | Inject HTML, CSS or JavaScript into the OS Store |
| Link users to the source URL | Trigger a signed install from a web page today |
| Publish editorial content and collections | Bypass package signatures or permission prompts |
| Use your own domain and visual identity | Impersonate rumahl or call your site the official Store |
A simple architecture
store.example
├── index.html your storefront
├── app.js fetches and renders the catalogue
├── catalog/store.json the same index used by rumahl OS
├── packages/notes.package.json
└── media/notes-icon.png
- Publish
store.jsonat the source URL you will give users. - Publish a signed package document for every app.
- Build a static or server-rendered website that reads the index.
- Tell users to add the index URL in rumahl OS.
- Keep the website and the index in sync.
If your website is on a different origin from the index, serve CORS headers that allow GET. If you cannot allow CORS, proxy the index through your own server and validate the response before rendering it.
Read the index
The index is deliberately small and source-owned. Required fields fail the catalogue when missing; optional fields can be omitted. The optional editorial block lets the public storefront and the native RUI Store show the same hero, five featured apps and curated collections. A custom storefront may render it or derive its own layout.
type StoreIndex = {
storeVersion: 1;
name: string;
description?: string;
editorial?: {
hero: {
eyebrow?: string;
title: string;
summary: string;
cta?: string;
target?: string;
image?: string;
};
featured?: string[];
popular?: string[];
recent?: string[];
feature?: {
eyebrow?: string;
title: string;
summary: string;
cta?: string;
target?: string;
appIds?: string[];
};
collections?: Array<{
id: string;
title: string;
summary: string;
category: string;
image?: string;
}>;
};
apps: StoreApp[];
// Optional web-storefront example listings. Ignored by the OS installer.
showcase?: StoreApp[];
showcaseEditorial?: unknown;
};
type StoreApp = {
id: string;
title: string;
version: string;
summary?: string;
publisher?: string;
packageUrl: string;
sourceUrl?: string;
category?: string;
categories?: string[];
rating?: number;
downloads?: number;
featured?: boolean;
permissions?: string[];
iconUrl?: string;
screenshots?: string[];
};
const INDEX_URL = "/catalog/store.json";
export async function loadStore() {
const response = await fetch(INDEX_URL, {headers: {accept: "application/json"}});
if (!response.ok) throw new Error(`Store index returned ${response.status}`);
const value = await response.json();
if (value?.storeVersion !== 1 || !Array.isArray(value.apps)) {
throw new Error("Unsupported store index");
}
return value;
}
Render a catalogue
A useful storefront answers four questions quickly: what is this app, who publishes it, what does it need, and how do I get it in rumahl OS.
import {loadStore} from "./store.js";
const grid = document.querySelector("[data-apps]");
function card(app) {
const article = document.createElement("article");
article.className = "app-card";
const title = document.createElement("h2");
title.textContent = app.title;
const summary = document.createElement("p");
summary.textContent = app.summary ?? "No summary provided.";
const meta = document.createElement("p");
meta.className = "meta";
meta.textContent = [app.publisher, app.category, app.version]
.filter(Boolean)
.join(" · ");
const permissions = document.createElement("p");
permissions.className = "permissions";
permissions.textContent = app.permissions?.length
? `Requests: ${app.permissions.join(", ")}`
: "No permissions listed by the source.";
const link = document.createElement("a");
link.href = `/app/?id=${encodeURIComponent(app.id)}`;
link.textContent = "View app";
article.append(title, summary, meta, permissions, link);
return article;
}
const store = await loadStore();
grid.replaceChildren(...store.apps.map(card));
Use the signed manifest as the authority for permissions and version. If the index omits an app or cannot be fetched, show the failure instead of silently using stale data.
Send users to rumahl OS
There is no install API and no documented custom URL scheme for adding a source. The reliable flow is explicit and copyable:
- Show the source URL and a Copy source URL button.
- Tell the user to open Settings → Store sources in rumahl OS.
- Add the URL and confirm the certificate if prompted.
- Open the Store, choose the source and install the signed package.
<section class="source-url" aria-labelledby="source-heading">
<h2 id="source-heading">Add this store to rumahl OS</h2>
<p>Open Settings → Store sources, then add this URL.</p>
<div class="source-row">
<code id="store-url">https://store.example/catalog/store.json</code>
<button type="button" data-copy-source>Copy source URL</button>
</div>
<p class="hint">Installation happens in the Store. This website cannot install apps directly.</p>
</section>
App detail pages
- Use the app ID in the URL, for example
/app/?id=com.example.notes, and resolve it from the live index. - Show publisher, version, categories and the source-declared permissions.
- Link back to the source URL instructions, not to a raw package file.
- Do not invent ratings, download counts or a “verified” badge.
- If an app is removed from the index, return a clear not-found state.
const params = new URLSearchParams(location.search);
const id = params.get("id");
const store = await loadStore();
const app = store.apps.find((entry) => entry.id === id);
if (!app) {
document.querySelector("[data-app]").textContent =
"This app is not in the current catalogue.";
} else {
renderApp(app);
}
Follow the store guidelines
A custom storefront must follow the same rules as the source it presents. The most important ones are:
- State your store identity and do not impersonate rumahl.
- Never offer an unsigned or direct install path.
- Keep metadata truthful and consistent with the signed manifest.
- Meet WCAG 2.2 AA, respect reduced motion and support narrow screens.
- Publish a privacy notice, support contact and security contact.
Read the complete Store guidelines before launch.
Quality checklist
- The page works with JavaScript disabled at least for the source instructions.
- Catalogue text is inserted as text, never as raw HTML.
- Every app card links to a detail page or a stable anchor.
- The source URL can be copied with a keyboard.
- Focus is visible and headings follow a logical order.
- Images have alt text and width/height attributes.
- The layout works at 390 px and at 200% zoom.
- Failed index requests show an error and a retry path.
- The custom storefront and the OS Store show the same app IDs and versions.
- No claim of review, certification or endorsement appears anywhere.
Next
- Store guidelines — the complete policy.
- Build a store — index, source types and certificate trust.
- Publish an app — signed package and catalogue entry.
- Certification and trust — what a signature proves.
Was this page helpful?