Skip to content
rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

App Store — install, create + toggle apps

React + Svelte storefront/Create-App over one observable localStorage registry and injected runtime exec seam.

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
app-store.prompt.mdmarkdown
# Install `app-store` — App Store — install, create + toggle apps

> React + Svelte storefront/Create-App over one observable localStorage registry and injected runtime exec seam.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/app-store
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=app-store
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/app-store

## 1. Install

```bash
npx rahman-resources add app-store
# alias: npx rr add app-store
```

The CLI copies `frontend/slices/app-store/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.

## 2. What it ships

- npm: `lucide-react`
- shadcn primitives: `button`, `input`, `badge`, `separator`, `scroll-area`, `switch`, `tooltip`

## 3. Wire it up

React/default: `npx rr add app-store`. SvelteKit: `npx rr add app-store --framework sveltekit`. Both share the same localStorage app registry, disabled-id store, catalogs, tool contract, and configureAppStoreExec seam. React additionally exports appshell AppDescriptor hooks; Svelte carries no React/Lucide/shadcn/agent runtime and can optionally register appStoreTools through its registerTools(collection, getCtx) prop. Authenticate any live exec endpoint like SSH.

## Rules of engagement

- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice

The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.