@somewhere-cloud/cli 0.38.154 → 0.38.155
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.
- package/CHANGELOG.md +7 -0
- package/dist/docs/adopt.md +39 -0
- package/dist/docs/analytics.md +161 -0
- package/dist/docs/api-reference.md +339 -0
- package/dist/docs/api-surface.md +2067 -0
- package/dist/docs/app-mcp.md +162 -0
- package/dist/docs/architecture-patterns.md +334 -0
- package/dist/docs/auth-client.md +531 -0
- package/dist/docs/billing.md +76 -0
- package/dist/docs/browser.md +639 -0
- package/dist/docs/calendar.md +298 -0
- package/dist/docs/changes.md +323 -0
- package/dist/docs/cli.md +407 -0
- package/dist/docs/common-mistakes.md +199 -0
- package/dist/docs/connect-agent.md +72 -0
- package/dist/docs/cors.md +114 -0
- package/dist/docs/cron.md +167 -0
- package/dist/docs/database-engine.md +167 -0
- package/dist/docs/declared-data.md +1656 -0
- package/dist/docs/declared-files.md +475 -0
- package/dist/docs/deploy-intelligence.md +188 -0
- package/dist/docs/deploy.md +733 -0
- package/dist/docs/design-system.md +273 -0
- package/dist/docs/dev-environments.md +496 -0
- package/dist/docs/domain-ownership.md +31 -0
- package/dist/docs/domains.md +370 -0
- package/dist/docs/feedback.md +88 -0
- package/dist/docs/file-tools.md +116 -0
- package/dist/docs/functions.md +489 -0
- package/dist/docs/getting-started.md +238 -0
- package/dist/docs/github.md +95 -0
- package/dist/docs/google-calendar.md +212 -0
- package/dist/docs/groups.md +836 -0
- package/dist/docs/guarantees.md +58 -0
- package/dist/docs/handled-for-you.md +224 -0
- package/dist/docs/inspect.md +171 -0
- package/dist/docs/limits.md +68 -0
- package/dist/docs/live-data.md +197 -0
- package/dist/docs/live.md +92 -0
- package/dist/docs/local-dev.md +30 -0
- package/dist/docs/migration-supabase.md +58 -0
- package/dist/docs/payments.md +1102 -0
- package/dist/docs/portability.md +194 -0
- package/dist/docs/postgres.md +301 -0
- package/dist/docs/pricing-comparison.md +42 -0
- package/dist/docs/pricing.md +39 -0
- package/dist/docs/project-groups.md +107 -0
- package/dist/docs/projects.md +380 -0
- package/dist/docs/recipe-ai-agent.md +112 -0
- package/dist/docs/recipe-ai-features.md +227 -0
- package/dist/docs/recipe-ai-receipts.md +783 -0
- package/dist/docs/recipe-background-jobs.md +369 -0
- package/dist/docs/recipe-booking.md +348 -0
- package/dist/docs/recipe-csv-import.md +390 -0
- package/dist/docs/recipe-ecommerce.md +127 -0
- package/dist/docs/recipe-email.md +282 -0
- package/dist/docs/recipe-escalation.md +133 -0
- package/dist/docs/recipe-file-uploads.md +159 -0
- package/dist/docs/recipe-import-app.md +110 -0
- package/dist/docs/recipe-login.md +457 -0
- package/dist/docs/recipe-multi-chat.md +198 -0
- package/dist/docs/recipe-paid-api.md +161 -0
- package/dist/docs/recipe-pdfs.md +205 -0
- package/dist/docs/recipe-push-notifications.md +107 -0
- package/dist/docs/recipe-seo.md +200 -0
- package/dist/docs/recipe-signed-in-app.md +330 -0
- package/dist/docs/render.md +99 -0
- package/dist/docs/rooms.md +554 -0
- package/dist/docs/sdk.md +287 -0
- package/dist/docs/sdks.md +24 -0
- package/dist/docs/search.md +199 -0
- package/dist/docs/security-model.md +168 -0
- package/dist/docs/setup.md +212 -0
- package/dist/docs/smoke.md +102 -0
- package/dist/docs/speed.md +298 -0
- package/dist/docs/sql-compatibility.md +96 -0
- package/dist/docs/sw.agent.md +248 -0
- package/dist/docs/sw.ai.md +1291 -0
- package/dist/docs/sw.auth.md +1811 -0
- package/dist/docs/sw.billing.md +171 -0
- package/dist/docs/sw.db.md +2128 -0
- package/dist/docs/sw.email.md +661 -0
- package/dist/docs/sw.endpoint.md +187 -0
- package/dist/docs/sw.env.md +303 -0
- package/dist/docs/sw.fetch.md +115 -0
- package/dist/docs/sw.fs.md +424 -0
- package/dist/docs/sw.groups.md +836 -0
- package/dist/docs/sw.image.md +69 -0
- package/dist/docs/sw.jobs.md +520 -0
- package/dist/docs/sw.logs.md +61 -0
- package/dist/docs/sw.mail.md +106 -0
- package/dist/docs/sw.notifications.md +78 -0
- package/dist/docs/sw.push.md +161 -0
- package/dist/docs/sw.rateLimit.md +67 -0
- package/dist/docs/sw.web.md +128 -0
- package/dist/docs/tasks.md +269 -0
- package/dist/docs/test.md +220 -0
- package/dist/docs/tool-reference-account.md +7 -0
- package/dist/docs/tool-reference-ai.md +121 -0
- package/dist/docs/tool-reference-analytics.md +37 -0
- package/dist/docs/tool-reference-api.md +19 -0
- package/dist/docs/tool-reference-artifacts.md +35 -0
- package/dist/docs/tool-reference-auth.md +163 -0
- package/dist/docs/tool-reference-browser.md +114 -0
- package/dist/docs/tool-reference-code.md +26 -0
- package/dist/docs/tool-reference-connect.md +21 -0
- package/dist/docs/tool-reference-cron.md +48 -0
- package/dist/docs/tool-reference-db.md +282 -0
- package/dist/docs/tool-reference-domains.md +107 -0
- package/dist/docs/tool-reference-email.md +55 -0
- package/dist/docs/tool-reference-env.md +19 -0
- package/dist/docs/tool-reference-feedback.md +56 -0
- package/dist/docs/tool-reference-fs.md +265 -0
- package/dist/docs/tool-reference-github.md +57 -0
- package/dist/docs/tool-reference-groups.md +85 -0
- package/dist/docs/tool-reference-help.md +29 -0
- package/dist/docs/tool-reference-jobs.md +39 -0
- package/dist/docs/tool-reference-live.md +48 -0
- package/dist/docs/tool-reference-logs.md +16 -0
- package/dist/docs/tool-reference-payments.md +44 -0
- package/dist/docs/tool-reference-project.md +706 -0
- package/dist/docs/tool-reference-push.md +78 -0
- package/dist/docs/tool-reference-rate-limit.md +18 -0
- package/dist/docs/tool-reference-search.md +68 -0
- package/dist/docs/tool-reference-security.md +42 -0
- package/dist/docs/tool-reference-smoke.md +17 -0
- package/dist/docs/tool-reference-stock-photos.md +20 -0
- package/dist/docs/tool-reference-tasks.md +73 -0
- package/dist/docs/tool-reference-telegram.md +32 -0
- package/dist/docs/tool-reference-usage.md +9 -0
- package/dist/docs/tool-reference-web.md +71 -0
- package/dist/docs/tool-reference-webhooks.md +9 -0
- package/dist/docs/troubleshooting.md +411 -0
- package/dist/docs/typed-functions.md +94 -0
- package/dist/docs/verify-before-deploy.md +67 -0
- package/dist/docs/vs-supabase.md +75 -0
- package/dist/docs/vs-vercel.md +103 -0
- package/dist/lib/bundle.js +303 -221
- package/dist/lib/bundle.js.map +3 -3
- package/dist/types/lib/test-session.d.ts +8 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -2
|
@@ -0,0 +1,103 @@
|
|
|
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`.
|