deploy-fullstack-vercel
Skill1.4k starsChanged 5 months agoMITView on GitHub
Build and deploy a full-stack app (React frontend + Python/FastAPI backend) or a Vellum app to Vercel as a serverless demo with seeded data
Trending
More talk lately.thin dataabout the whole repository
Who's talking about vellum-ai/vellum-assistant
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → …”Bluesky · May 13, 2026 · 1 likes
- sudosubin/agents.nix“agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- awesome-selfhosted/awesome-selfhosted-data“Add Vellum”GitHub · Sep 15, 2026
- janhq/awesome-local-ai“Add Vellum personal AI assistant”GitHub · Sep 15, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 13
- Oct 4, 2026agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Sep 15, 2026Add Vellum — awesome-selfhosted/awesome-selfhosted-data0 reactions · 3 comments
- Sep 15, 2026Add Vellum personal AI assistant — janhq/awesome-local-ai0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — mihaiwillberich/awesome-desktop-ai-assistants0 reactions
8 more on GitHub
- Sep 15, 2026Add Vellum personal AI assistant — punkpeye/awesome-mcp-clients0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — elyase/awesome-personal-ai-assistants0 reactions
- Sep 14, 2026Add Vellum to alternatives and comparison table — T31K/awesome-openclaw-alternatives0 reactions
- Aug 26, 2026feat: send a canned denial when the gateway refuses a sender — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: pick the iMessage provider from a dropdown — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: add Linq as a selectable iMessage provider — vellum-ai/imessage0 reactions
- Aug 14, 2026feat: engine settings, Lightpanda, and a plugin browser skill — vellum-ai/browser0 reactions
- Aug 2, 2026vellum-ai — Viktor6886/evaself0 reactions
On Bluesky · 1
- May 13, 2026🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → https://github.com/Arvincreator/project-golem vellum-assistant… — @githubfeed.bsky.social1 likes and repost
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- assistant/AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- clients/AGENTS.mdAGENTS.md
- gateway/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- assistant/CLAUDE.mdCLAUDE.md
- gateway/CLAUDE.mdCLAUDE.md
- skills/assistant-migration/references/claude.mdCLAUDE.md
- add-mcp-integrationSkill
- cli-testingSkill
- releaseSkill
- updateSkill
- vellum-boundary-guardSkill
- vellum-change-reviewSkill
- vellum-feature-flag-rolloutSkill
- vellum-migration-checklistSkill
- vellum-pr-readinessSkill
- vellum-skill-authoringSkill
- vellum-test-selectionSkill
- vellum-user-facing-copySkill
- amazonSkill
- api-mappingSkill
- assistant-migrationSkill
- chat-complex-documentsSkill
- chatgpt-importSkill
- cli-discoverSkill
- conversation-launcherSkill
- daily-briefingSkill
- deepgram-voiceSkill
- discord-app-setupSkill
- doordashSkill
- elevenlabs-voiceSkill
- email-setupSkill
- fish-audioSkill
- frontend-designSkill
- geo-auditSkill
- geo-writingSkill
- gmailSkill
- gmail-triggerSkill
- google-calendarSkill
- guardian-verify-setupSkill
- headless-claude-codeSkill
- inbox-cleanupSkill
- inbox-managementSkill
- influencerSkill
- linear-app-setupSkill
- llm-cost-optimizerSkill
- llm-provider-setupSkill
- macos-automationSkill
- mailgun-setupSkill
- mcp-setupSkill
- meme-generatorSkill
- memory-corpus-ingestSkill
- notificationsSkill
- notionSkill
- oura-setupSkill
- ouraSkill
- outlook-calendarSkill
- outlookSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Use vercel login to authenticate interactively (opens browser for the user).
- Distinctive: line 37
If the user does not want to use CLI auth, stop and ask them for an approved deployment path.
- Very specific: line 41
When the user asks to deploy a Vellum app from their library (from /workspace/data/apps/<app-name>/):
- Distinctive: line 45
Check the compiled app for Vellum bridge API usage:
- Distinctive: line 51
If found, the app depends on the Vellum bridge and needs a shim to work standalone.
- Very specific: line 77
Add a <script src="vellum-shim.js"></script> tag in dist/index.html BEFORE any <script type="module"> tags:
- Very specific: line 89
Create a vercel.json in the dist directory:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy Fullstack to Vercel
Deploy a full-stack app with a React/Vite frontend and Python/FastAPI backend to Vercel as a serverless demo, OR deploy a Vellum-built app from the library. No auth required - meant for demos, portfolio pieces, and quick showcases.
When to Use
- User says "deploy this to Vercel", "host this", "publish this"
- User has a project with a frontend + backend they want live
- User wants to deploy a Vellum app that uses backend features (data store, custom routes)
- User wants a quick demo deployment (no persistent database needed)
Authentication
Vellum App Publishing
For publishing Vellum apps from the library, use the built-in publish_page tool. This is the preferred path — it uses the stored Vercel API token (vercel/api_token) via the brokered publish flow without exposing the token to shell commands.
The stored Vercel API token is reserved for brokered publish_page and unpublish_page actions only. Do not pass it to bash, curl, Vercel CLI commands, or proxy credential injection. Do not use network_mode: "proxied" with credential_ids for Vercel deployments.
Custom Full-Stack Deployments
For custom projects that need Vercel deployment (not Vellum app publishing):
- Install the Vercel CLI with
bun install -g vercel(not npm — npm is not available in the sandbox). - Use
vercel loginto authenticate interactively (opens browser for the user). - If the user does not want to use CLI auth, stop and ask them for an approved deployment path. Do not extract, inject, or shell with the stored API token.
Deploying a Vellum App
When the user asks to deploy a Vellum app from their library (from /workspace/data/apps/<app-name>/):
1. Detect Vellum Bridge Usage
Check the compiled app for Vellum bridge API usage:
grep -l "window\.vellum\.\|vellum\.fetch\|vellum\.data\|vellum\.sendAction" /workspace/data/apps/<app-name>/dist/*.js /workspace/data/apps/<app-name>/dist/*.html 2>/dev/nullIf found, the app depends on the Vellum bridge and needs a shim to work standalone.
2. Create Vellum Bridge Shim
The app uses window.vellum.* APIs that are normally injected by the Vellum viewer. For standalone deployment, create a vellum-shim.js file in the app's dist/ directory that provides browser-native replacements.
Before writing the shim, read the app's compiled JavaScript (dist/main.js or equivalent) to understand exactly which window.vellum.* APIs the app calls and what data shapes it expects. The shim must match the app's actual usage — don't guess at signatures.
Common APIs to shim (implement only what the app actually uses):
| Bridge API | Standalone replacement | Notes |
vellum.data.query() | localStorage-backed store | Read the app code to determine the record shape — some apps expect {id, data: {...}} wrappers, others use flat records |
vellum.data.create(...) | localStorage insert with crypto.randomUUID() | Match the argument signature the app passes (some pass a payload, others pass {id, ...fields}) |
vellum.data.update(...) | localStorage update | Match the argument signature (typically (id, payload)) |
vellum.data.delete(...) | localStorage delete | Typically (id) |
vellum.fetch(path, opts) | console.warn + return empty success Response | Custom routes aren't available standalone |
vellum.sendAction(id, data) | No-op with console.warn | Surface actions aren't available standalone |
vellum.openLink(url) | window.open(url, '_blank') | |
vellum.widgets.toast(msg) | Create a temporary styled <div> that auto-dismisses | |
vellum.route | null | Deep-link routes aren't available standalone |
Structure: Wrap everything in an IIFE that guards against the real bridge: (function() { if (window.vellum) return; ... })();
3. Inject the Shim into index.html
Add a <script src="vellum-shim.js"></script> tag in dist/index.html BEFORE any <script type="module"> tags:
sed -i 's|<script type="module"|<script src="vellum-shim.js"></script>\n<script type="module"|' dist/index.html4. Deploy the App
cd /workspace/data/apps/<app-name>/distCreate a vercel.json in the dist directory:
{
"rewrites": [
{
"source": "/((?!main\\.js|main\\.css|vellum-shim\\.js|assets/).*)",
"destination": "/index.html"
}
]
}Then deploy using the publish_page tool (preferred). For Vellum apps, use the built-in app publish flow rather than raw Vercel API calls from shell.
Deploying a Custom Full-Stack Project
1. Build the Frontend
cd <project>/frontend
bun install
bunx vite buildThis produces static files in frontend/dist/.
2. Create the Vercel Deploy Directory
<project>/vercel-deploy/
├── api/
│ ├── index.py ← FastAPI app wrapper (entry point)
│ ├── database.py ← DB config (use /tmp for SQLite)
│ ├── models.py
│ ├── schemas.py
│ ├── seed_data.py ← Must seed ALL required data (users, etc.)
│ ├── routers/
│ │ ├── __init__.py
│ │ └── *.py
│ └── requirements.txt ← Python deps (fastapi, sqlalchemy, pydantic)
├── index.html ← From frontend/dist/
├── assets/ ← From frontend/dist/assets/
└── vercel.jsonKey steps:
mkdir -p <project>/vercel-deploy/api
# Copy frontend build output to deploy root
cp -r <project>/frontend/dist/* <project>/vercel-deploy/
# Copy backend files into api/
cp <project>/backend/models.py <project>/vercel-deploy/api/
cp <project>/backend/database.py <project>/vercel-deploy/api/
cp <project>/backend/schemas.py <project>/vercel-deploy/api/
cp <project>/backend/seed_data.py <project>/vercel-deploy/api/
cp -r <project>/backend/routers <project>/vercel-deploy/api/
cp <project>/backend/requirements.txt <project>/vercel-deploy/api/3. Create api/index.py (Serverless Entry Point)
import sys, os
sys.path.insert(0, os.path.dirname(__file__))
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from database import engine, Base, SessionLocal
from seed_data import seed_exercises, seed_default_user # all seed functions
from routers import users, exercises, workouts, schedule, progress
# Create tables and seed on EVERY cold start
Base.metadata.create_all(bind=engine)
db = SessionLocal()
try:
seed_exercises(db)
seed_default_user(db) # IMPORTANT: seed all required data
finally:
db.close()
app = FastAPI(title="MyApp")
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(users.router)
# ... other routers
@app.get("/api/health")
def health_check():
return {"status": "ok"}4. Update database.py for Vercel
Critical: Vercel serverless functions can only write to /tmp. Update the SQLite path:
SQLALCHEMY_DATABASE_URL = "sqlite:////tmp/app.db"5. Seed ALL Required Data
This is the #1 gotcha. Since /tmp is ephemeral, every cold start gets a fresh database. If your frontend assumes certain data exists (like user ID 1), you MUST seed it:
def seed_default_user(db: Session):
count = db.query(UserProfile).count()
if count > 0:
return
user = UserProfile(name="Demo User", ...)
db.add(user)
db.commit()6. Create vercel.json
{
"rewrites": [
{ "source": "/api/(.*)", "destination": "/api/index.py" },
{ "source": "/((?!assets/).*)", "destination": "/index.html" }
]
}This routes:
/api/*→ Python serverless function- Everything else → React SPA (index.html)
7. Deploy
cd <project>/vercel-deploy
vercel --yes --prod8. Verify
curl -s <deployed-url>/api/health
# Should return: {"status":"ok"}Gotchas & Limitations
| Issue | Solution |
| SQLite resets on cold start | Seed ALL required data in index.py startup |
| No persistent storage | Acceptable for demos. For production, use Vercel Postgres or Supabase |
| No auth | Fine for demos/portfolios. Add auth layer for real apps |
requirements.txt location | Must be inside api/ folder (next to index.py) |
| Module imports in routers | Use sys.path.insert(0, os.path.dirname(__file__)) in index.py |
| CORS | Set allow_origins=["*"] for demo deployments |
--name flag deprecated | Don't use --name with Vercel CLI, just deploy from the directory |
| Vellum bridge APIs | Use the vellum-shim.js to provide localStorage-backed data + no-op stubs |
| npm not available | Use bun install -g vercel to install Vercel CLI in sandbox |
Vercel CLI Quick Reference
bun install -g vercel # Install
vercel login # Authenticate (opens browser for user-mediated auth)
vercel --yes --prod # Deploy to production (skip prompts)
vercel logs --project <name> # Check function logsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

