Complete Guide to Hosteday for VS Code (hosteday.hosteday-vscode)
The official Hosteday for VS Code extension connects your editor directly to the Hosteday Control Plane (
dash.hosteday.com) so you can browse environments, SQL schemas, and dynamic routes; synchosteday_config.jsonand Firebase files; scaffold full starter projects and CRUD code; test endpoints in the built-in REST API Playground; and stream live Reverb WebSocket events without leaving VS Code.
- Official SDK Portal Page: Hosteday for VS Code
- Visual Studio Marketplace: marketplace.visualstudio.com/items?itemName=hosteday.hosteday-vscode
- Direct VS Code URI:
vscode:extension/hosteday.hosteday-vscode - GitHub Repository: mustafa3max/hosteday-vscode
- Direct VSIX Download: hosteday-vscode-{{vscode_ext_bare_version}}.vsix
- Current Release:
{{vscode_ext_version}}| Requirement:VS Code ^1.85.0(also supports VS Code Insiders, Cursor & Windsurf) | License:MIT
1. Installation & Quick Start
A. Install via Quick Open or Visual Studio Marketplace
Open Quick Open (Ctrl+P on Windows/Linux or Cmd+P on macOS) and run:
ext install hosteday.hosteday-vscode
B. Install via Terminal CLI
code --install-extension hosteday.hosteday-vscode
C. Offline / Direct .vsix Installation
curl -L -o hosteday-vscode-{{vscode_ext_bare_version}}.vsix \
https://github.com/mustafa3max/hosteday-vscode/releases/download/{{vscode_ext_version}}/hosteday-vscode-{{vscode_ext_bare_version}}.vsix
code --install-extension hosteday-vscode-{{vscode_ext_bare_version}}.vsix
2. Authentication & Security
A. Browser OAuth (Hosteday: Sign In)
- Opens
https://dash.hosteday.com/ide/connect?state=<uuid>&device_name=<editor>&scheme=<scheme>in your browser. - Automatically detects the editor URI scheme (
vscode://,vscode-insiders://,cursor://,windsurf://). - Enforces strict CSRF protection via
crypto.timingSafeEqualwith a 10-minutestateexpiration window on/auth-callback.
B. Access Token (Hosteday: Sign In with Access Token)
- Built for Remote SSH and GitHub Codespaces environments where a local browser cannot invoke the IDE URI handler.
- Validates the token immediately via
GET /api/ide/mebefore storing the session.
C. Encrypted Storage & Origin Lock
- Tokens are stored exclusively in OS-encrypted
vscode.SecretStorageand revoked server-side viaDELETE /api/ide/tokens/currentonHosteday: Sign Out. - Enforces Origin Lock and Path Traversal Guard so
AuthorizationandX-Api-Tokenheaders are never sent to any host outsidehttps://dash.hosteday.comor*.hosteday.com.
3. Environments, Schema & Routes Explorer
The Hosteday Activity Bar view displays:
- A clickable
SDK Targetselector at the top of the tree. Create Full Starter Projectonce a language target is selected.- All active owner and team environments with role badges (
owner,admin,developer), status indicators, and a(Linked)tag for the active workspace environment. - Expanding an environment reveals:
- Tables & Schema: SQL column types, primary keys (
PK), andnullableflags. - Dynamic Routes: Merged
/schemaand/routesendpoints (GET,POST,PUT,PATCH,DELETE) withauth/publicstatus.
- Tables & Schema: SQL column types, primary keys (
4. Project Language Target, Config & Firebase Sync
A. Mandatory Language Lock (hosteday.projectType)
Config and Firebase download actions remain locked until you explicitly select your target language via Hosteday: Select Project Language / Type (flutter, kotlin, python, web).
B. hosteday_config.json Paths (Hosteday: Download Config)
| Platform | Target Path | Behavior |
|---|---|---|
| Flutter | assets/hosteday_config.json |
Creates assets/ automatically if missing |
| Kotlin / Android | app/src/main/assets/hosteday_config.json |
Creates assets/ inside app/src/main/ when present |
| Python | hosteday_config.json |
Placed at workspace root |
| Web | hosteday_config.json |
Placed at workspace root |
C. Firebase Files (Hosteday: Setup Firebase Files — No Auto-Mkdir Rule)
Firebase client files strictly follow the No Auto-Mkdir rule (written only into existing platform directories):
- Flutter:
android/app/google-services.json(orandroid/google-services.json),ios/Runner/GoogleService-Info.plist,web/firebase-config.json, andweb/firebase-messaging-sw.jswith your realfirebaseConfiginjected automatically. - Kotlin / Android:
app/google-services.json(orandroid/app/google-services.json). - Web:
firebase-config.jsonandfirebase-messaging-sw.jsinpublic/or workspace root. - Python: Disabled since Firebase client config files apply to Flutter, Kotlin, and Web targets.
5. Create Full Starter Project from Official GitHub Examples
- Downloads live examples via the GitHub Git Trees API from:
mustafa3max/hosteday-fluttermustafa3max/hosteday-kotlinmustafa3max/hosteday-python
- Strict Empty Workspace Guard: Displays a modal confirmation (
modal: true) before clearing any non-empty workspace folder. - Automatic Latest SDK Resolution:
- Flutter: Replaces local
path: ../inpubspec.yamlwith the latest version frompub.dev. - Kotlin: Updates
build.gradle.ktsfromJitPack / Maven Central. - Python: Updates
requirements.txtandpyproject.tomlfromPyPI.
- Flutter: Replaces local
- Automatically injects
hosteday_config.jsonand Firebase files and opens the main entry file.
6. Unified Hosteday > Menus, Code Scaffolding & Schema Drift Detector
Two unified Hosteday submenus keep actions cleanly scoped:
- Explorer (
Explorer > Hosteday):Download Config (hosteday_config.json)Setup Firebase Files (Android / iOS / Web)New Component / Feature...(Bootstrap Service,BaseHostedayController,Auth Service,Realtime Manager,Table Feature Modulesprotected byOne-Time Creation Guard)Select Project Language / Type
- Editor (
Editor > Hosteday) & ShortcutCtrl+Alt+H/Cmd+Alt+H:Contextual Code Actions...adapts toeditor_entrypointvseditor_code_filecontexts.- Schema Drift Detector: Compares your local model fields against the live environment schema and highlights missing or changed columns.
7. Built-in Interactive REST API Playground (Hosteday: Open API Playground)
- Executes requests inside the Extension Host (zero CORS restrictions, enforced Origin Lock, and automatic
X-Api-Tokeninjection without exposing secrets to the Webview). - Auto-fills JSON request bodies from the live table schema, with smart
user_idhandling after quick sign-in (POST /api/auth/login). - Includes a Laravel filter builder (
filters[column]=value), syntax-highlighted JSON response viewer,Copy Response JSON, andCopy as SDK Code.
8. Smart IntelliSense & Hover Docs
Supports dart, kotlin, python, typescript, and javascript:
- Autocompletes table names and dynamic routes inside
Hosteday.client.*andHosteday.http.*calls. - Autocompletes column names inside
filtersandbodypayloads. - Shows live Markdown Hover cards summarizing table columns, SQL types, and available routes.
9. Live Realtime Monitor (Hosteday: Listen to Realtime Channel)
- Connects directly over WebSockets to your environment's Laravel Reverb / Pusher v7 node:
wss://{realtime_host}:{realtime_port}/app/{realtime_app_key}?protocol=7&client=hosteday_vscode&version=1.0.0&flash=false - Sends
pusher:pingheartbeats every 120 seconds automatically. - Streams formatted JSON event payloads live in
Output > Hosteday Realtime. - Stop listening and clean up timers anytime with
Hosteday: Stop Realtime Listener.
10. Complete Commands & Settings Reference
A. Configuration Settings (3)
| Key | Type | Default | Description |
|---|---|---|---|
hosteday.dashboardUrl |
string |
"https://dash.hosteday.com" |
Control plane base URL (Origin-locked to *.hosteday.com) |
hosteday.linkedEnvironmentId |
string |
"" |
Hosteday environment UUID linked to the current workspace |
hosteday.projectType |
enum ("", flutter, kotlin, python, web) |
"" |
Explicitly selected project language target for config, Firebase, and starter generation |
B. Registered Commands (17 — category: "Hosteday")
| Command ID | Title | Description |
|---|---|---|
hosteday.signIn |
Sign In |
Sign in via Browser OAuth with CSRF state verification |
hosteday.signInWithToken |
Sign In with Access Token |
Manual token sign-in for SSH and GitHub Codespaces |
hosteday.signOut |
Sign Out |
Revoke token server-side and clear SecretStorage |
hosteday.refresh |
Refresh Environments & Schema |
Refresh environments, tables, routes, and IntelliSense cache |
hosteday.selectProjectType |
Select Project Language / Type |
Select target project language (flutter, kotlin, python, web) |
hosteday.createStarterProject |
Create Full Starter Project |
Download a full starter project from official GitHub examples |
hosteday.linkEnvironment |
Link Workspace to Environment |
Link the workspace to an environment and write hosteday_config.json |
hosteday.fetchHostedayConfig |
Download Config (hosteday_config.json) |
Download hosteday_config.json to the standard platform path |
hosteday.fetchFirebaseConfigs |
Setup Firebase Files (Android / iOS / Web) |
Download Firebase configs and firebase-messaging-sw.js |
hosteday.syncConfigFiles |
Fetch & Place Config & Firebase Files |
Sync config and Firebase files into existing platform folders |
hosteday.explorerNewMenu |
New Component / Feature... |
Scaffold Hosteday components with one-time creation guard |
hosteday.generateTableCode |
Generate Model & Repository for Table |
Generate Model and Repository files for a table |
hosteday.codeWizard |
Contextual Code Actions... |
Context-aware code wizard (Ctrl+Alt+H / Cmd+Alt+H) & Schema Drift Detector |
hosteday.openApiPlayground |
Open API Playground |
Open the built-in interactive REST API Playground |
hosteday.listenRealtime |
Listen to Realtime Channel |
Stream live Reverb/Pusher events in OutputChannel |
hosteday.stopRealtime |
Stop Realtime Listener |
Close WebSocket listener and clean up timers |
hosteday.openDashboard |
Open Dashboard |
Open dash.hosteday.com in the browser |