{
  "schemaVersion": "1.0.0",
  "id": "webcode",
  "name": "WebCode",
  "category": "Code Editor & Runner",
  "status": "operational",
  "description": "A distraction-free code editor with a phone-friendly keyboard. Write, test, and run code anywhere without installing anything.",
  "runtime": "client-edge",
  "capabilities": [
    "Pre-baked fullstack project boilerplate scaffolding (React+Tailwind, Hono Worker, MCP Server, FastAPI)",
    "AST delimiter balance inspection with line & column precision for syntax errors",
    "Dependency manifest generation with 2026/2027 stable pinned versions (package.json, requirements.txt, Cargo.toml)",
    "Multi-language AST formatting (JS, TS, Python, HTML, CSS, JSON)",
    "Client-side zero-install WebAssembly sandbox generation (Pyodide, QuickJS, iframe)"
  ],
  "endpoints": [
    {
      "method": "POST",
      "path": "/v1/format",
      "summary": "Format source code according to AST style rules",
      "url": "https://api.xicae.dev/webcode/v1/format"
    },
    {
      "method": "POST",
      "path": "/v1/scaffold",
      "summary": "Generate complete multi-file project workspace boilerplate",
      "url": "https://api.xicae.dev/webcode/v1/scaffold"
    },
    {
      "method": "POST",
      "path": "/v1/inspect-ast",
      "summary": "Check delimiter balance and extract token estimate",
      "url": "https://api.xicae.dev/webcode/v1/inspect-ast"
    },
    {
      "method": "POST",
      "path": "/v1/dependency-manifest",
      "summary": "Generate package.json, requirements.txt, or Cargo.toml",
      "url": "https://api.xicae.dev/webcode/v1/dependency-manifest"
    }
  ],
  "mcp": {
    "url": "https://xicae.dev/webcode/mcp",
    "tools": [
      {
        "name": "webcode_scaffold_project_boilerplate",
        "description": "Generate a complete, pre-baked multi-file project starter workspace (package.json, source files, config, README) ready to write and run with zero manual configuration.",
        "parameters": {
          "type": "object",
          "properties": {
            "preset": {
              "type": "string",
              "enum": [
                "react_tailwind_app",
                "hono_cloudflare_worker",
                "mcp_server_typescript",
                "python_fastapi_server",
                "vanilla_canvas_game",
                "node_cli_utility"
              ],
              "description": "Pre-baked fullstack archetype preset"
            },
            "project_name": {
              "type": "string",
              "description": "Name of the project directory"
            }
          },
          "required": [
            "preset",
            "project_name"
          ]
        }
      },
      {
        "name": "webcode_analyze_code_structure",
        "description": "Perform syntax inspection, precise delimiter matching (braces/brackets/parentheses with line & column reporting), token estimation, cyclomatic complexity, and import/export extraction.",
        "parameters": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "description": "Source code string to analyze"
            },
            "language": {
              "type": "string",
              "enum": [
                "javascript",
                "typescript",
                "python",
                "html",
                "css",
                "json"
              ],
              "description": "Source programming language"
            }
          },
          "required": [
            "code",
            "language"
          ]
        }
      },
      {
        "name": "webcode_generate_dependency_manifest",
        "description": "Generate verified, production-ready package.json, requirements.txt, or Cargo.toml dependency manifests with 2026/2027 stable pinned versions.",
        "parameters": {
          "type": "object",
          "properties": {
            "ecosystem": {
              "type": "string",
              "enum": [
                "node_npm",
                "python_pip",
                "rust_cargo"
              ],
              "description": "Package manager ecosystem"
            },
            "stack_preset": {
              "type": "string",
              "enum": [
                "agent_mcp_stack",
                "react_web_stack",
                "fastapi_ai_backend",
                "data_science_ml",
                "custom"
              ],
              "description": "Pre-bundled library stack profile"
            },
            "project_name": {
              "type": "string",
              "description": "Project name for manifest"
            }
          },
          "required": [
            "ecosystem"
          ]
        }
      },
      {
        "name": "webcode_format_source_code",
        "description": "Format unindented or messy code across Python, JavaScript, TypeScript, JSON, HTML, and CSS using deterministic AST style conventions.",
        "parameters": {
          "type": "object",
          "properties": {
            "language": {
              "type": "string",
              "enum": [
                "python",
                "javascript",
                "typescript",
                "json",
                "html",
                "css"
              ],
              "description": "Programming language"
            },
            "code": {
              "type": "string",
              "description": "Raw source code string to format"
            },
            "tab_size": {
              "type": "number",
              "description": "Indentation width (default 2 or 4)"
            }
          },
          "required": [
            "language",
            "code"
          ]
        }
      },
      {
        "name": "webcode_generate_sandbox_recipe",
        "description": "Generate zero-install client-side WebAssembly isolation snippets (Pyodide Python, QuickJS JavaScript, or sandboxed iframe) for running untrusted code safely in the browser.",
        "parameters": {
          "type": "object",
          "properties": {
            "runtime": {
              "type": "string",
              "enum": [
                "python_pyodide",
                "javascript_quickjs",
                "html_iframe"
              ],
              "description": "Client-side sandbox runtime engine"
            },
            "entry_code": {
              "type": "string",
              "description": "Entry source code to execute inside the sandbox"
            }
          },
          "required": [
            "runtime",
            "entry_code"
          ]
        }
      },
      {
        "name": "webcode_generate_workspace_manifest",
        "description": "Package multiple virtual file paths or starter project templates into a structured workspace manifest for in-browser IDE mounting or zip generation.",
        "parameters": {
          "type": "object",
          "properties": {
            "project_name": {
              "type": "string",
              "description": "Name of the coding project workspace"
            },
            "template": {
              "type": "string",
              "enum": [
                "vanilla-js",
                "python-cli",
                "static-html",
                "react-minimal",
                "custom"
              ],
              "description": "Starter template archetype"
            },
            "file_paths": {
              "type": "array",
              "description": "List of virtual file paths and directories to include"
            }
          },
          "required": [
            "project_name"
          ]
        }
      }
    ]
  },
  "rateLimit": {
    "requestsPerMinute": 60,
    "quotaReset": "sliding-window"
  },
  "documentation": "https://xicae.dev/llms.txt"
}