rahman-resources 1.13.2 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,6 +171,10 @@
171
171
  "range": {
172
172
  "type": "string"
173
173
  },
174
+ "optional": {
175
+ "type": "boolean",
176
+ "description": "Peer is optional — slice degrades gracefully without it (e.g. a swappable payment provider)."
177
+ },
174
178
  "reason": {
175
179
  "type": "string"
176
180
  }
@@ -1,6 +1,6 @@
1
1
  # __APP_NAME__
2
2
 
3
- Scaffolded with [`rahman-resources`](https://www.npmjs.com/package/rahman-resources) — Next 16 + React 19 + Convex (self-hosted) + Tailwind 4 + shadcn/ui.
3
+ Scaffolded with [`rahman-resources`](https://www.npmjs.com/package/rahman-resources) — Next 16 + React 19 + Convex + Tailwind 4 + shadcn/ui.
4
4
 
5
5
  ## Setup
6
6
 
@@ -11,21 +11,44 @@ npx convex dev --once # generates convex/_generated
11
11
  npm run dev
12
12
  ```
13
13
 
14
- ## Add a layout / recipe / feature
14
+ ## Add a slice
15
+
16
+ Browse the live showcase — the [Grand Tour](https://resource.rahmanef.com/tour) —
17
+ where every slice is mounted live with its `add` command. Then:
15
18
 
16
19
  ```bash
17
20
  npx rahman-resources list
18
21
  npx rahman-resources info <slug>
19
- npx rahman-resources add personal-brand-os . # full-app template (T1)
20
- npx rahman-resources add ai-sdk-openrouter . # feature (npm install)
22
+ npx rahman-resources add landing-sections . # marketing sections (hero/pricing/faq/blog…)
23
+ npx rahman-resources add ai-chat . # AI chat workbench
24
+ npx rahman-resources add appshell . # windowed web-OS shell
21
25
  ```
22
26
 
27
+ > rr is a **slice picker**: each `add` copies files into `slices/<slug>/`, which
28
+ > you own and edit. The showcase at `/tour` is Convex-free (localStorage demo
29
+ > adapters); your app wires the slice into your own backend.
30
+
31
+ ## Deploy — Vercel + Convex Cloud
32
+
33
+ `vercel.json` sets `buildCommand: npm run build:auto`, which adapts to your env:
34
+
35
+ | `CONVEX_DEPLOY_KEY` | What `build:auto` runs |
36
+ |---|---|
37
+ | **set** | `setup-auth` (one-time `@convex-dev/auth` keys) → `convex deploy --cmd 'next build'` — deploys functions to Convex Cloud, codegens `convex/_generated`, and injects `NEXT_PUBLIC_CONVEX_URL` into the build. |
38
+ | **unset** | plain `next build` — zero-config deploy of the scaffold as-is (no backend wired yet). |
39
+
40
+ So a fresh deploy is green either way: set `CONVEX_DEPLOY_KEY` in Vercel for the
41
+ full Cloud-backed app, or leave it unset to ship the static scaffold first.
42
+
43
+ > **Self-hosted (Docker/Dokploy):** commit `convex/_generated` so the container
44
+ > typecheck/build runs without codegen — see `.gitignore`. (Vercel + Convex Cloud
45
+ > needs no commit; `build:auto` codegens during deploy.)
46
+
23
47
  ## Hard rules
24
48
 
25
49
  - **NO Clerk.** Auth = `@convex-dev/auth`.
26
50
  - **shadcn primitives only** — no raw `<dialog>`, `<input type=date|file>`.
27
51
  - Use `proxy.ts` (not `middleware.ts`) on Next 16.
28
- - `convex/_generated` MUST be committed before deploy.
29
52
 
30
53
  ## Stack
31
54
 
@@ -33,5 +56,5 @@ npx rahman-resources add ai-sdk-openrouter . # feature (npm install)
33
56
  |---|---|
34
57
  | Framework | Next.js 16 (App Router + cacheComponents) |
35
58
  | UI | React 19 + Tailwind 4 + shadcn |
36
- | Backend | Convex (self-hosted compatible) |
59
+ | Backend | Convex (Cloud or self-hosted) |
37
60
  | Auth | `@convex-dev/auth` (Password provider by default) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rahman-resources",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "description": "Rahman Resources (rr) — shadcn-style installer for vertical slices. `npx resources add <slug>` copies slice into your project's `slices/<slug>/`. You own the files.",
5
5
  "type": "module",
6
6
  "license": "MIT",