Hosteday for VS Code (hosteday-vscode)
The official Visual Studio Code extension for Hosteday (https://hosteday.com | Control Plane: https://dash.hosteday.com). Connect your IDE directly to your Hosteday environments to scaffold full starter projects, inspect live database schemas & dynamic routes, test REST APIs in-editor, get live IntelliSense & Hover Docs, and stream realtime WebSocket channels.
Features
1. Secure Authentication & Origin Lock
- One-Click Browser Sign-In (
Hosteday: Sign In): Opens https://dash.hosteday.com/ide/connect with a cryptographic CSRF state token and automatically detects your editor URI scheme (vscode, vscode-insiders, cursor, windsurf).
- Remote / SSH / Codespaces (
Hosteday: Sign In with Access Token): Paste an IDE access token verified via GET /api/ide/me.
- Encrypted SecretStorage & Origin Lock: All credentials live exclusively in VS Code
SecretStorage and are only transmitted over HTTPS to dash.hosteday.com or *.hosteday.com.
2. Environments, Schema & Dynamic Routes Explorer
Open the Hosteday sidebar to:
- Select your workspace SDK Target (
Flutter, Kotlin (Android), Python, Web).
- Browse all owned and team environments with role badges (
owner, admin, developer), status, and (Linked) indicator.
- Inspect Tables & Schema (columns, SQL types, primary keys, nullability) alongside each table's Dynamic Routes (
GET, POST, PUT, PATCH, DELETE).
3. Create Full Starter Project from Official GitHub Examples
After selecting your SDK Target, click Create Full Starter Project ($(rocket)) in the sidebar:
- Fetches official starter examples live from
mustafa3max/hosteday-flutter, mustafa3max/hosteday-kotlin, and mustafa3max/hosteday-python.
- Automatically resolves the latest published SDK version from pub.dev, JitPack / Maven Central, and PyPI and updates
pubspec.yaml, build.gradle.kts, requirements.txt, or pyproject.toml.
- Enforces a Strict Empty Workspace Guard (modal warning before wiping any non-empty folder).
- Automatically injects live
hosteday_config.json and Firebase files when linked to an environment.
- Explorer (
Right-click > Hosteday):
Download Config (hosteday_config.json) — writes canonical HostedayOptionKeys JSON into assets/hosteday_config.json (Flutter, auto-creating assets/ if missing), app/src/main/assets/hosteday_config.json (Kotlin), or workspace root (Python/Web).
Setup Firebase Files (Android / iOS / Web) — places google-services.json, GoogleService-Info.plist, firebase-config.json, and firebase-messaging-sw.js (with real project firebaseConfig injected) strictly inside existing platform directories.
New Component / Feature... — scaffolds official Bootstrap/Initializer services, BaseHostedayController, Auth Services, Realtime Managers, and full Table Feature Modules with One-Time Creation protection.
- Editor (
Right-click > Hosteday or Ctrl+Alt+H / Cmd+Alt+H):
- Strictly scoped to the active
.dart, .kt, or .py file role (editor_entrypoint vs editor_code_file), including SDK initialization, full table module scaffolding, Auth/Realtime snippets, and Schema Drift Detector.
5. In-Editor REST API Playground
Launch Hosteday: Open API Playground from the sidebar or right-click any Environment, Table, or Route:
- Executes live requests in the Extension Host (no CORS limits, Origin Lock enforced,
X-Api-Token kept off the Webview).
- Schema-aware JSON payload auto-fill with smart
user_id ownership handling, Laravel bracket-syntax filter builder (filters[column]=value), and quick tenant login (POST /api/auth/login).
- Syntax-highlighted JSON response viewer with status, latency (
ms), size, Copy Response JSON, and Copy as SDK Code.
6. Smart IntelliSense & Hover Docs
Across Dart, Kotlin, Python, TypeScript, and JavaScript:
- Autocompletes table and route names inside
Hosteday.client.index / show / create / update / delete and Hosteday.http.*.
- Autocompletes column names and SQL types inside
filters and body blocks.
- Shows formatted Markdown schema & dynamic route cards on hover over any table name string.
7. Realtime WebSocket Channel Monitor
Run Hosteday: Listen to Realtime Channel to connect directly to Laravel Reverb / Pusher v7 (wss://{realtime_host}:{realtime_port}/app/{realtime_app_key}), maintain 120s heartbeats, and stream formatted JSON events into Output → Hosteday Realtime.
Extension Settings
| Setting |
Default |
Scope |
Description |
hosteday.dashboardUrl |
"https://dash.hosteday.com" |
Window |
Base URL of the Hosteday Control Plane dashboard. |
hosteday.linkedEnvironmentId |
"" |
Resource |
ID of the Hosteday environment linked to the current workspace. |
hosteday.projectType |
"" |
Resource |
Explicitly selected project language/type (flutter, kotlin, python, web). |
Development & Packaging
npm ci
npm run compile
npx tsc --noEmit
npx @vscode/vsce package
License
MIT © Hosteday
| |