@somewhere-cloud/cli 0.38.155 → 0.38.157

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.
Files changed (142) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/commands/docs.js +1 -1
  3. package/dist/lib/bundle.js +286 -188
  4. package/dist/lib/bundle.js.map +3 -3
  5. package/npm-shrinkwrap.json +2 -2
  6. package/package.json +2 -3
  7. package/dist/docs/adopt.md +0 -39
  8. package/dist/docs/analytics.md +0 -161
  9. package/dist/docs/api-reference.md +0 -339
  10. package/dist/docs/api-surface.md +0 -2067
  11. package/dist/docs/app-mcp.md +0 -162
  12. package/dist/docs/architecture-patterns.md +0 -334
  13. package/dist/docs/auth-client.md +0 -531
  14. package/dist/docs/billing.md +0 -76
  15. package/dist/docs/browser.md +0 -639
  16. package/dist/docs/calendar.md +0 -298
  17. package/dist/docs/changes.md +0 -323
  18. package/dist/docs/cli.md +0 -407
  19. package/dist/docs/common-mistakes.md +0 -199
  20. package/dist/docs/connect-agent.md +0 -72
  21. package/dist/docs/cors.md +0 -114
  22. package/dist/docs/cron.md +0 -167
  23. package/dist/docs/database-engine.md +0 -167
  24. package/dist/docs/declared-data.md +0 -1656
  25. package/dist/docs/declared-files.md +0 -475
  26. package/dist/docs/deploy-intelligence.md +0 -188
  27. package/dist/docs/deploy.md +0 -733
  28. package/dist/docs/design-system.md +0 -273
  29. package/dist/docs/dev-environments.md +0 -496
  30. package/dist/docs/domain-ownership.md +0 -31
  31. package/dist/docs/domains.md +0 -370
  32. package/dist/docs/feedback.md +0 -88
  33. package/dist/docs/file-tools.md +0 -116
  34. package/dist/docs/functions.md +0 -489
  35. package/dist/docs/getting-started.md +0 -238
  36. package/dist/docs/github.md +0 -95
  37. package/dist/docs/google-calendar.md +0 -212
  38. package/dist/docs/groups.md +0 -836
  39. package/dist/docs/guarantees.md +0 -58
  40. package/dist/docs/handled-for-you.md +0 -224
  41. package/dist/docs/inspect.md +0 -171
  42. package/dist/docs/limits.md +0 -68
  43. package/dist/docs/live-data.md +0 -197
  44. package/dist/docs/live.md +0 -92
  45. package/dist/docs/local-dev.md +0 -30
  46. package/dist/docs/migration-supabase.md +0 -58
  47. package/dist/docs/payments.md +0 -1102
  48. package/dist/docs/portability.md +0 -194
  49. package/dist/docs/postgres.md +0 -301
  50. package/dist/docs/pricing-comparison.md +0 -42
  51. package/dist/docs/pricing.md +0 -39
  52. package/dist/docs/project-groups.md +0 -107
  53. package/dist/docs/projects.md +0 -380
  54. package/dist/docs/recipe-ai-agent.md +0 -112
  55. package/dist/docs/recipe-ai-features.md +0 -227
  56. package/dist/docs/recipe-ai-receipts.md +0 -783
  57. package/dist/docs/recipe-background-jobs.md +0 -369
  58. package/dist/docs/recipe-booking.md +0 -348
  59. package/dist/docs/recipe-csv-import.md +0 -390
  60. package/dist/docs/recipe-ecommerce.md +0 -127
  61. package/dist/docs/recipe-email.md +0 -282
  62. package/dist/docs/recipe-escalation.md +0 -133
  63. package/dist/docs/recipe-file-uploads.md +0 -159
  64. package/dist/docs/recipe-import-app.md +0 -110
  65. package/dist/docs/recipe-login.md +0 -457
  66. package/dist/docs/recipe-multi-chat.md +0 -198
  67. package/dist/docs/recipe-paid-api.md +0 -161
  68. package/dist/docs/recipe-pdfs.md +0 -205
  69. package/dist/docs/recipe-push-notifications.md +0 -107
  70. package/dist/docs/recipe-seo.md +0 -200
  71. package/dist/docs/recipe-signed-in-app.md +0 -330
  72. package/dist/docs/render.md +0 -99
  73. package/dist/docs/rooms.md +0 -554
  74. package/dist/docs/sdk.md +0 -287
  75. package/dist/docs/sdks.md +0 -24
  76. package/dist/docs/search.md +0 -199
  77. package/dist/docs/security-model.md +0 -168
  78. package/dist/docs/setup.md +0 -212
  79. package/dist/docs/smoke.md +0 -102
  80. package/dist/docs/speed.md +0 -298
  81. package/dist/docs/sql-compatibility.md +0 -96
  82. package/dist/docs/sw.agent.md +0 -248
  83. package/dist/docs/sw.ai.md +0 -1291
  84. package/dist/docs/sw.auth.md +0 -1811
  85. package/dist/docs/sw.billing.md +0 -171
  86. package/dist/docs/sw.db.md +0 -2128
  87. package/dist/docs/sw.email.md +0 -661
  88. package/dist/docs/sw.endpoint.md +0 -187
  89. package/dist/docs/sw.env.md +0 -303
  90. package/dist/docs/sw.fetch.md +0 -115
  91. package/dist/docs/sw.fs.md +0 -424
  92. package/dist/docs/sw.groups.md +0 -836
  93. package/dist/docs/sw.image.md +0 -69
  94. package/dist/docs/sw.jobs.md +0 -520
  95. package/dist/docs/sw.logs.md +0 -61
  96. package/dist/docs/sw.mail.md +0 -106
  97. package/dist/docs/sw.notifications.md +0 -78
  98. package/dist/docs/sw.push.md +0 -161
  99. package/dist/docs/sw.rateLimit.md +0 -67
  100. package/dist/docs/sw.web.md +0 -128
  101. package/dist/docs/tasks.md +0 -269
  102. package/dist/docs/test.md +0 -220
  103. package/dist/docs/tool-reference-account.md +0 -7
  104. package/dist/docs/tool-reference-ai.md +0 -121
  105. package/dist/docs/tool-reference-analytics.md +0 -37
  106. package/dist/docs/tool-reference-api.md +0 -19
  107. package/dist/docs/tool-reference-artifacts.md +0 -35
  108. package/dist/docs/tool-reference-auth.md +0 -163
  109. package/dist/docs/tool-reference-browser.md +0 -114
  110. package/dist/docs/tool-reference-code.md +0 -26
  111. package/dist/docs/tool-reference-connect.md +0 -21
  112. package/dist/docs/tool-reference-cron.md +0 -48
  113. package/dist/docs/tool-reference-db.md +0 -282
  114. package/dist/docs/tool-reference-domains.md +0 -107
  115. package/dist/docs/tool-reference-email.md +0 -55
  116. package/dist/docs/tool-reference-env.md +0 -19
  117. package/dist/docs/tool-reference-feedback.md +0 -56
  118. package/dist/docs/tool-reference-fs.md +0 -265
  119. package/dist/docs/tool-reference-github.md +0 -57
  120. package/dist/docs/tool-reference-groups.md +0 -85
  121. package/dist/docs/tool-reference-help.md +0 -29
  122. package/dist/docs/tool-reference-jobs.md +0 -39
  123. package/dist/docs/tool-reference-live.md +0 -48
  124. package/dist/docs/tool-reference-logs.md +0 -16
  125. package/dist/docs/tool-reference-payments.md +0 -44
  126. package/dist/docs/tool-reference-project.md +0 -706
  127. package/dist/docs/tool-reference-push.md +0 -78
  128. package/dist/docs/tool-reference-rate-limit.md +0 -18
  129. package/dist/docs/tool-reference-search.md +0 -68
  130. package/dist/docs/tool-reference-security.md +0 -42
  131. package/dist/docs/tool-reference-smoke.md +0 -17
  132. package/dist/docs/tool-reference-stock-photos.md +0 -20
  133. package/dist/docs/tool-reference-tasks.md +0 -73
  134. package/dist/docs/tool-reference-telegram.md +0 -32
  135. package/dist/docs/tool-reference-usage.md +0 -9
  136. package/dist/docs/tool-reference-web.md +0 -71
  137. package/dist/docs/tool-reference-webhooks.md +0 -9
  138. package/dist/docs/troubleshooting.md +0 -411
  139. package/dist/docs/typed-functions.md +0 -94
  140. package/dist/docs/verify-before-deploy.md +0 -67
  141. package/dist/docs/vs-supabase.md +0 -75
  142. package/dist/docs/vs-vercel.md +0 -103
@@ -1,103 +0,0 @@
1
- # somewhere.cloud vs Vercel — honest comparison
2
-
3
- ## Framework and backend responsibilities
4
-
5
- Next.js is an application framework; Vercel is a hosting platform optimized for
6
- running it. A Next.js application can integrate managed database, auth, files,
7
- email, payments, AI, and job providers. The application team chooses those
8
- providers and owns their credentials, SDKs, migrations, authorization policies,
9
- webhooks, and cross-service diagnostics.
10
-
11
- somewhere.cloud hosts static or client-rendered React/Vite frontends and server
12
- functions, and includes those backend capabilities behind one project contract.
13
- It applies declared database permissions, generates the typed data client, and
14
- connects deploy diagnostics to the same project. The application still owns its
15
- business rules and the content it publishes.
16
-
17
- ## When to use somewhere.cloud
18
-
19
- ✓ **You want backend included, not added on.** Database, auth, storage,
20
- email, payments, AI — all behind one API. Vercel gives you hosting +
21
- serverless functions; you still need Supabase / Neon / Clerk / Resend
22
- / Stripe / OpenAI / Inngest / Pinecone.
23
- ✓ **AI-built apps shipped from a chat client.** The MCP server lets
24
- Claude / Cursor deploy, query, and configure end-to-end. Vercel CLI
25
- is the equivalent for the hosting half, but the backend half lives
26
- in 7 different dashboards.
27
- ✓ **Predictable pricing on bandwidth and MAUs.** Vercel meters bandwidth
28
- ($40/TB after 1 TB on Pro), function invocations, and Edge Middleware
29
- invocations. Bandwidth is included on every plan. We do not meter it or bill for it. Fair use applies: this covers normal traffic to your app's pages, functions and files.
30
- ✓ **One bill for the whole stack.** A flat monthly tier (see /v1/pricing)
31
- covers everything. A typical Vercel + Supabase + Clerk + Resend stack runs
32
- ~$170/mo before usage.
33
-
34
- ## When to use Vercel
35
-
36
- ✗ **You're shipping a Next.js app with ISR / SSR / app router.** Next.js
37
- is Vercel-native; SSR, ISR, on-demand revalidation, image optimization,
38
- middleware all work best there.
39
- ✗ **Existing team workflow.** GitHub-PR previews per branch, preview
40
- environment URLs, the Vercel deploy bot in your PRs. We have CLI
41
- deploys + dashboard previews, but not the same per-PR ergonomics.
42
- ✗ **Edge runtime + edge config + ISR cache.** If your app's whole
43
- identity is the edge-rendering story, Vercel's primitives are deeper
44
- than ours (we expose less of the edge-cache machinery directly).
45
- ✗ **You don't want any backend.** A pure static site with a few API
46
- routes that hit external services is what Vercel is best at. We're
47
- optimized for "needs a database + users."
48
-
49
- ## Rendering and SEO responsibilities
50
-
51
- Next.js can render route output statically, from cached server work, or for a
52
- request. Its App Router also provides metadata APIs and file conventions for
53
- `sitemap.xml`, `robots.txt`, icons, and social images. The application chooses
54
- the rendering and cache behavior and supplies the actual metadata and content.
55
-
56
- somewhere.cloud does not execute Next.js SSR, ISR, or App Router code. It compiles
57
- raw React/Vite source, serves deployed HTML and assets, and runs `api/*` server
58
- functions. For crawler-facing route content, deploy a separate HTML page for
59
- that route or generate the HTML before deployment. A client-router-only path
60
- shares the entry HTML and is not a separate crawler document. Deployment
61
- screenshots are preview evidence, not rendered HTML for crawlers.
62
-
63
- Edit titles, descriptions, canonical URLs, Open Graph tags, and other metadata
64
- in the deployed HTML. If the project does not provide `sitemap.xml` or
65
- `robots.txt`, the platform generates fallbacks; the sitemap enumerates only
66
- deployed HTML pages. A custom file overrides its generated counterpart. Search
67
- Console registration and ownership verification remain application work.
68
-
69
- Next.js references: https://nextjs.org/docs/app/getting-started/partial-prerendering
70
- and https://nextjs.org/docs/app/getting-started/metadata-and-og-images
71
-
72
- ## What's roughly equivalent
73
-
74
- | Need | somewhere.cloud | Vercel + … |
75
- |---|---|---|
76
- | Static hosting | every project, all tiers | Vercel Hobby / Pro |
77
- | Server functions | `api/*` files | `/api/*` Vercel functions |
78
- | Database | `sw.db` (built-in) | Vercel Postgres / Neon / Supabase |
79
- | Auth | `sw.auth` (built-in) | Clerk / Auth.js / NextAuth |
80
- | File storage | `sw.fs` (built-in) | Vercel Blob / S3 / R2 |
81
- | Email send | `sw.email` (built-in) | Resend / SendGrid |
82
- | Payments | `sw.payments` (built-in) | Stripe (you wire it) |
83
- | AI | `sw.ai` (built-in) | OpenAI SDK (you wire it) |
84
- | Background jobs | `sw.jobs` / cron | Vercel Cron / Inngest / QStash |
85
- | Bandwidth | [Current bandwidth and fair use](https://somewhere.cloud/pricing.txt) | 1 TB free, $40/TB |
86
- | MAU pricing | none | depends on auth provider |
87
- | Pricing | flat tiers — see /v1/pricing | $20 Pro + add-ons |
88
-
89
- ## Migration paths
90
-
91
- → **somewhere.cloud → Vercel**: code is standard JS/TS. Replace `sw.*`
92
- bindings with direct service calls (Neon for DB, S3 for files, Resend
93
- for email, Stripe SDK for payments). `db_dump` → load into a database file
94
- → `pgloader` that file into Neon Postgres.
95
- → **Vercel → somewhere.cloud**: adapt your route handlers to the Somewhere
96
- function contract and use the starter's auth integration. For a managed
97
- database, declare tables and access rules in `db/schema.ts`, then use
98
- the documented structured `sw.db` operations. Managed mode refuses
99
- ordinary raw `sw.db.query`; replacing a database import is not enough.
100
- See `declared-data` and `sw.db` for the schema, operation and return
101
- contracts before moving data or changing queries.
102
-
103
- Related: `portability`, `pricing-comparison`, `vs-supabase`.