@lukoweb/apitogo 0.2.54 → 0.2.57

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.
Files changed (82) hide show
  1. package/dist/cli/cli.js +2196 -1352
  2. package/dist/declarations/cli/platform/client/platform-api.d.ts +29 -0
  3. package/dist/declarations/cli/platform/helpers/platform-plan-catalog.d.ts +6 -0
  4. package/dist/declarations/config/validators/ZudokuConfig.d.ts +2 -0
  5. package/dist/declarations/lib/authentication/providers/openid.d.ts +2 -1
  6. package/dist/declarations/lib/plugins/markdown/index.d.ts +2 -1
  7. package/dist/flat-config.d.ts +1 -0
  8. package/docs/cli/commands.md +50 -32
  9. package/docs/cli/go-live.md +66 -93
  10. package/docs/cli/overview.md +18 -17
  11. package/docs/cli/setup.md +130 -141
  12. package/docs/cli/shape.md +94 -11
  13. package/docs/cli/walkthrough.md +1 -1
  14. package/docs/components/slot.mdx +116 -119
  15. package/docs/configuration/api-reference.md +98 -397
  16. package/docs/configuration/authentication.md +118 -159
  17. package/docs/configuration/footer.mdx +89 -118
  18. package/docs/configuration/make-config.mdx +2 -2
  19. package/docs/configuration/overview.md +97 -166
  20. package/docs/configuration/plans.md +100 -110
  21. package/docs/configuration/portal.md +116 -0
  22. package/docs/customization/colors-theme.mdx +255 -278
  23. package/docs/customization/fonts.md +105 -110
  24. package/docs/customization/landing-page.md +189 -188
  25. package/docs/deploy/apitogo.md +13 -17
  26. package/docs/deployment.md +15 -9
  27. package/docs/guides/stripe-setup.mdx +123 -0
  28. package/docs/markdown/frontmatter.md +172 -173
  29. package/docs/mcp/go-live.md +100 -100
  30. package/docs/mcp/overview.md +76 -76
  31. package/docs/quickstart.md +88 -72
  32. package/docs/writing.mdx +68 -72
  33. package/package.json +1 -1
  34. package/src/config/v2/docs-navigation.ts +7 -2
  35. package/src/config/v2/index.ts +1 -0
  36. package/src/config/v2/resolve.ts +28 -0
  37. package/src/config/v2/rules.ts +32 -1
  38. package/src/config/v2/schema.ts +9 -0
  39. package/src/config/v2/services.ts +90 -15
  40. package/src/config/v2/starter-landing.ts +41 -0
  41. package/src/config/v2/wrapper.ts +141 -7
  42. package/src/config/validators/ZudokuConfig.ts +794 -792
  43. package/src/lib/authentication/providers/openid.tsx +6 -1
  44. package/src/lib/plugins/markdown/index.tsx +86 -82
  45. package/src/vite/dev-server.ts +9 -1
  46. package/src/vite/dev-ssr-config.ts +32 -0
  47. package/src/vite/plugin-config.ts +4 -2
  48. package/src/vite/plugin-docs.ts +213 -205
  49. package/docs/concepts/auth-provider-api-identities.md +0 -105
  50. package/docs/configuration/ai-assistants.md +0 -65
  51. package/docs/configuration/api-catalog.md +0 -109
  52. package/docs/configuration/authentication-auth0.md +0 -181
  53. package/docs/configuration/authentication-azure-ad.md +0 -245
  54. package/docs/configuration/authentication-clerk.md +0 -117
  55. package/docs/configuration/authentication-firebase.md +0 -69
  56. package/docs/configuration/authentication-pingfederate.md +0 -143
  57. package/docs/configuration/authentication-supabase.md +0 -233
  58. package/docs/configuration/build-configuration.mdx +0 -147
  59. package/docs/configuration/docs.md +0 -282
  60. package/docs/configuration/llms.md +0 -90
  61. package/docs/configuration/manifest.md +0 -129
  62. package/docs/configuration/navigation.mdx +0 -415
  63. package/docs/configuration/protected-routes.md +0 -150
  64. package/docs/configuration/search.md +0 -164
  65. package/docs/configuration/sentry.mdx +0 -44
  66. package/docs/configuration/site.md +0 -124
  67. package/docs/configuration/slots.mdx +0 -125
  68. package/docs/configuration/vite-config.md +0 -18
  69. package/docs/custom-plugins.md +0 -285
  70. package/docs/deploy/apache-nginx.md +0 -41
  71. package/docs/deploy/cloudflare-pages.md +0 -74
  72. package/docs/deploy/direct-upload.md +0 -17
  73. package/docs/deploy/github-pages.md +0 -49
  74. package/docs/deploy/vercel.md +0 -101
  75. package/docs/extending/events.md +0 -124
  76. package/docs/guides/environment-variables.md +0 -94
  77. package/docs/guides/managing-api-keys-and-identities.md +0 -89
  78. package/docs/guides/navigation-rules.mdx +0 -203
  79. package/docs/guides/processors.mdx +0 -234
  80. package/docs/guides/transforming-examples.md +0 -156
  81. package/docs/guides/using-multiple-apis.md +0 -87
  82. package/docs/plugins.md +0 -24
@@ -1,100 +1,100 @@
1
- ---
2
- title: Go live with MCP
3
- description:
4
- Publish an APIToGo developer portal — platform plans, secrets, publish_dev_portal, and verify.
5
- sidebar_icon: rocket
6
- ---
7
-
8
- **Go live** publishes your shaped portal to APItoGo hosting, optionally deploys the backend, upserts
9
- gateway plans, and verifies the live site.
10
-
11
- ## Before you publish
12
-
13
- 1. Confirm **gateway / API plans** in the manifest (or pass them in `apply_product_intent`). Do not
14
- invent Free + Pro.
15
- 2. Save secrets in the site **`.env`** (never in chat):
16
-
17
- ```sh
18
- APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
19
- APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
20
- APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
21
- # Only when you have paid project plans:
22
- APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
23
- APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
24
- ```
25
-
26
- 3. Choose a **platform hosting** plan: **Free**, **Starter**, or **Professional**. Agents should
27
- call `list_platform_plans` / explain `freeProjectsQuota` before you pick. Starter and
28
- Professional use Stripe checkout (`checkoutUrl`).
29
-
30
- ## Happy path
31
-
32
- ```text
33
- apply_product_intent({ mode: "goLive", siteDirectory, platformPlan?, ... })
34
- → check_dev_portal_publish_readiness
35
- → ensure_platform_plan (if needed)
36
- → publish_dev_portal
37
- → verify_dev_portal_live
38
- ```
39
-
40
- If status is `blocked`, fix the readiness checklist (missing secrets, plan, OpenAPI). Do not invent
41
- credentials.
42
-
43
- After success, register **`manualSteps.oidcRedirectUri`** in your IdP. When `stripeRequired` is
44
- true, create a Stripe webhook at `manualSteps.stripeWebhookUrl` for the listed events.
45
-
46
- Do not treat warm-pool URLs as live until publish / deploy / verify succeed.
47
-
48
- ## Granular go-live paths
49
-
50
- ### Portal-first
51
-
52
- Docs and billing before the API backend:
53
-
54
- ```text
55
- shape → publish_dev_portal → deploy_backend → sync_gateway_plans_from_manifest(syncActionsOnly: true)
56
- ```
57
-
58
- ### Full-stack
59
-
60
- Backend already healthy:
61
-
62
- ```text
63
- shape → deploy_backend → publish_dev_portal(skipBackendRedeploy: true)
64
- ```
65
-
66
- ### CI one-shot
67
-
68
- `bootstrap_dev_portal` provisions and deploys in one call (advanced).
69
-
70
- ## Platform plan vs API plans
71
-
72
- | Kind | Meaning | How |
73
- | ---------------- | ------------------------------------------- | ------------------------- |
74
- | Platform hosting | Free / Starter / Professional on APItoGo | `ensure_platform_plan` |
75
- | Gateway / API | End-user SKUs and rate limits on `/pricing` | Manifest / intent `plans` |
76
-
77
- ## Publish behavior
78
-
79
- - Unchanged healthy backend/site artifacts are reused unless you force redeploy.
80
- - `publish_dev_portal` upserts gateway plans from the manifest; do **not** call
81
- `sync_gateway_plans_from_manifest` before publish.
82
- - After a post-publish `deploy_backend`, sync actions with
83
- `sync_gateway_plans_from_manifest({ syncActionsOnly: true })`.
84
- - Resume from `.apitogo/publish-state.json` or `resumeFromStep` if a previous publish stopped early.
85
-
86
- ## CLI deploy vs MCP publish
87
-
88
- | Path | Use when |
89
- | ------------------------ | --------------------------------------------------- |
90
- | MCP `publish_dev_portal` | Full product go-live (plans, auth, hosting, verify) |
91
- | CLI `npx apitogo deploy` | Publish config to platform (apihub + portal) |
92
-
93
- See [Go live with CLI](../cli/go-live.md).
94
-
95
- ## Related
96
-
97
- - [Shape](./shape.md)
98
- - [Tools](./tools.md)
99
- - [Authentication](../configuration/authentication.md)
100
- - [Manifest](../configuration/manifest.md)
1
+ ---
2
+ title: Go live with MCP
3
+ description:
4
+ Publish an APIToGo developer portal — platform plans, secrets, publish_dev_portal, and verify.
5
+ sidebar_icon: rocket
6
+ ---
7
+
8
+ **Go live** publishes your shaped portal to APItoGo hosting, optionally deploys the backend, upserts
9
+ gateway plans, and verifies the live site.
10
+
11
+ ## Before you publish
12
+
13
+ 1. Confirm **gateway / API plans** in the manifest (or pass them in `apply_product_intent`). Do not
14
+ invent Free + Pro.
15
+ 2. Save secrets in the site **`.env`** (never in chat):
16
+
17
+ ```sh
18
+ APITOGO_CONFIG_AUTHENTICATION__OIDC__AUTHORITY=https://login.example.com
19
+ APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_ID=your-client-id
20
+ APITOGO_CONFIG_AUTHENTICATION__OIDC__CLIENT_SECRET=your-client-secret
21
+ # Only when you have paid project plans:
22
+ APITOGO_CONFIG_AUTHENTICATION__STRIPE__SECRET_KEY=sk_test_...
23
+ APITOGO_CONFIG_AUTHENTICATION__STRIPE__WEBHOOK_SECRET=whsec_...
24
+ ```
25
+
26
+ 3. Choose a **platform hosting** plan: **Free**, **Starter**, or **Professional**. Agents should
27
+ call `list_platform_plans` / explain `freeProjectsQuota` before you pick. Starter and
28
+ Professional use Stripe checkout (`checkoutUrl`).
29
+
30
+ ## Happy path
31
+
32
+ ```text
33
+ apply_product_intent({ mode: "goLive", siteDirectory, platformPlan?, ... })
34
+ → check_dev_portal_publish_readiness
35
+ → ensure_platform_plan (if needed)
36
+ → publish_dev_portal
37
+ → verify_dev_portal_live
38
+ ```
39
+
40
+ If status is `blocked`, fix the readiness checklist (missing secrets, plan, OpenAPI). Do not invent
41
+ credentials.
42
+
43
+ After success, register **`manualSteps.oidcRedirectUri`** in your IdP. When `stripeRequired` is
44
+ true, create a Stripe webhook at `manualSteps.stripeWebhookUrl` for the listed events.
45
+
46
+ Do not treat warm-pool URLs as live until publish / deploy / verify succeed.
47
+
48
+ ## Granular go-live paths
49
+
50
+ ### Portal-first
51
+
52
+ Docs and billing before the API backend:
53
+
54
+ ```text
55
+ shape → publish_dev_portal → deploy_backend → sync_gateway_plans_from_manifest(syncActionsOnly: true)
56
+ ```
57
+
58
+ ### Full-stack
59
+
60
+ Backend already healthy:
61
+
62
+ ```text
63
+ shape → deploy_backend → publish_dev_portal(skipBackendRedeploy: true)
64
+ ```
65
+
66
+ ### CI one-shot
67
+
68
+ `bootstrap_dev_portal` provisions and deploys in one call (advanced).
69
+
70
+ ## Platform plan vs API plans
71
+
72
+ | Kind | Meaning | How |
73
+ | ---------------- | ------------------------------------------- | ------------------------- |
74
+ | Platform hosting | Free / Starter / Professional on APItoGo | `ensure_platform_plan` |
75
+ | Gateway / API | End-user SKUs and rate limits on `/pricing` | Manifest / intent `plans` |
76
+
77
+ ## Publish behavior
78
+
79
+ - Unchanged healthy backend/site artifacts are reused unless you force redeploy.
80
+ - `publish_dev_portal` upserts gateway plans from the manifest; do **not** call
81
+ `sync_gateway_plans_from_manifest` before publish.
82
+ - After a post-publish `deploy_backend`, sync actions with
83
+ `sync_gateway_plans_from_manifest({ syncActionsOnly: true })`.
84
+ - Resume from `.apitogo/publish-state.json` or `resumeFromStep` if a previous publish stopped early.
85
+
86
+ ## CLI deploy vs MCP publish
87
+
88
+ | Path | Use when |
89
+ | ------------------------ | --------------------------------------------------- |
90
+ | MCP `publish_dev_portal` | Full product go-live (plans, auth, hosting, verify) |
91
+ | CLI `npx apitogo deploy` | Publish config to platform (apihub + portal) |
92
+
93
+ See [Go live with CLI](../cli/go-live.md).
94
+
95
+ ## Related
96
+
97
+ - [Shape](./shape.md)
98
+ - [Tools](./tools.md)
99
+ - [Authentication](../configuration/authentication.md)
100
+ - [Manifest](../configuration/overview.md)
@@ -1,76 +1,76 @@
1
- ---
2
- title: MCP overview
3
- description:
4
- Use the APItoGo MCP server to scaffold, shape, and publish API products from an AI agent.
5
- sidebar_icon: bot
6
- ---
7
-
8
- The **APItoGo MCP** server lets AI agents manage projects, developer portals, gateway plans, backend
9
- deploy, and go-live. You can use MCP tools, edit site files yourself, or mix both.
10
-
11
- **First time?** Install and wire the server in your agent →
12
- **[Configure MCP in your agent](./setup.md)**. Then follow the [Quickstart](../quickstart.md).
13
-
14
- ## What you get
15
-
16
- - Scaffold a local portal site (`create_dev_portal` / `apply_product_intent`)
17
- - Shape OpenAPI, plans, branding, theme, and docs pages
18
- - Publish to APItoGo hosting (`publish_dev_portal`) with platform plans **Free**, **Starter**, or
19
- **Professional**
20
- - Deploy backends and sync gateway actions after publish
21
-
22
- Prefer **`apply_product_intent`** for “create / shape / go live” prompts. See [Shape](./shape.md)
23
- and [Go live](./go-live.md).
24
-
25
- ## Prerequisites
26
-
27
- ### MCP host environment
28
-
29
- | Variable | Required | Purpose |
30
- | -------------------- | -------- | ----------------- |
31
- | `APITOGO_API_KEY_ID` | Yes | Platform API auth |
32
- | `APITOGO_API_SECRET` | Yes | Platform API auth |
33
-
34
- ### Agent host
35
-
36
- - Node.js 20+ (scaffold, build, preview)
37
- - Network access to the npm registry during install/build
38
- - OIDC credentials at publish time (site `.env` only — never in chat)
39
- - Stripe secrets at publish only when you have **paid** project plans
40
-
41
- ## Changing your site
42
-
43
- You choose how to edit the portal:
44
-
45
- | Approach | When it helps |
46
- | ----------------------- | --------------------------------------------------------------------------------------------------- |
47
- | **MCP tools** | Agent-driven changes; tools can wire navigation/config and run validation. See [Tools](./tools.md). |
48
- | **Edit files directly** | Full control in your editor — `apitogo.config.json`, `pages/**`, `landing/LandingPage.tsx`, etc. |
49
-
50
- Useful MCP tools (optional — not required):
51
-
52
- | Change | Tool |
53
- | ----------------------------------- | ------------------------------------------------ |
54
- | Add / edit a docs page | `add_dev_portal_page` / `update_dev_portal_page` |
55
- | OpenAPI | `set_dev_portal_openapi` |
56
- | Plans, branding, backend, projectId | `update_dev_portal_manifest` |
57
- | Theme | `set_dev_portal_theme` |
58
-
59
- Home page content often lives in `landing/LandingPage.tsx`. Site footer can live under
60
- `modules.landing.content.footer` in `apitogo.config.json`.
61
-
62
- ## Config model (local site)
63
-
64
- | File | Role |
65
- | --------------------- | ------------------------------------- |
66
- | `apitogo.config.json` | Site, modules, plans, auth type, apis |
67
- | `.env` | `VITE_*` + `APITOGO_CONFIG_*` secrets |
68
-
69
- Details: [Manifest](../configuration/manifest.md).
70
-
71
- ## Next
72
-
73
- - [Configure MCP](./setup.md)
74
- - [Quickstart](../quickstart.md)
75
- - [Shape](./shape.md) · [Go live](./go-live.md) · [Tools](./tools.md)
76
- - CLI without an agent: [CLI overview](../cli/overview.md)
1
+ ---
2
+ title: MCP overview
3
+ description:
4
+ Use the APItoGo MCP server to scaffold, shape, and publish API products from an AI agent.
5
+ sidebar_icon: bot
6
+ ---
7
+
8
+ The **APItoGo MCP** server lets AI agents manage projects, developer portals, gateway plans, backend
9
+ deploy, and go-live. You can use MCP tools, edit site files yourself, or mix both.
10
+
11
+ **First time?** Install and wire the server in your agent →
12
+ **[Configure MCP in your agent](./setup.md)**. Then follow the [Quickstart](../quickstart.md).
13
+
14
+ ## What you get
15
+
16
+ - Scaffold a local portal site (`create_dev_portal` / `apply_product_intent`)
17
+ - Shape OpenAPI, plans, branding, theme, and docs pages
18
+ - Publish to APItoGo hosting (`publish_dev_portal`) with platform plans **Free**, **Starter**, or
19
+ **Professional**
20
+ - Deploy backends and sync gateway actions after publish
21
+
22
+ Prefer **`apply_product_intent`** for “create / shape / go live” prompts. See [Shape](./shape.md)
23
+ and [Go live](./go-live.md).
24
+
25
+ ## Prerequisites
26
+
27
+ ### MCP host environment
28
+
29
+ | Variable | Required | Purpose |
30
+ | -------------------- | -------- | ----------------- |
31
+ | `APITOGO_API_KEY_ID` | Yes | Platform API auth |
32
+ | `APITOGO_API_SECRET` | Yes | Platform API auth |
33
+
34
+ ### Agent host
35
+
36
+ - Node.js 20+ (scaffold, build, preview)
37
+ - Network access to the npm registry during install/build
38
+ - OIDC credentials at publish time (site `.env` only — never in chat)
39
+ - Stripe secrets at publish only when you have **paid** project plans
40
+
41
+ ## Changing your site
42
+
43
+ You choose how to edit the portal:
44
+
45
+ | Approach | When it helps |
46
+ | ----------------------- | --------------------------------------------------------------------------------------------------- |
47
+ | **MCP tools** | Agent-driven changes; tools can wire navigation/config and run validation. See [Tools](./tools.md). |
48
+ | **Edit files directly** | Full control in your editor — `apitogo.config.json`, `pages/**`, `landing/LandingPage.tsx`, etc. |
49
+
50
+ Useful MCP tools (optional — not required):
51
+
52
+ | Change | Tool |
53
+ | ----------------------------------- | ------------------------------------------------ |
54
+ | Add / edit a docs page | `add_dev_portal_page` / `update_dev_portal_page` |
55
+ | OpenAPI | `set_dev_portal_openapi` |
56
+ | Plans, branding, backend, projectId | `update_dev_portal_manifest` |
57
+ | Theme | `set_dev_portal_theme` |
58
+
59
+ Home page content often lives in `landing/LandingPage.tsx`. Site footer can live under
60
+ `modules.landing.content.footer` in `apitogo.config.json`.
61
+
62
+ ## Config model (local site)
63
+
64
+ | File | Role |
65
+ | --------------------- | ------------------------------------- |
66
+ | `apitogo.config.json` | Site, modules, plans, auth type, apis |
67
+ | `.env` | `VITE_*` + `APITOGO_CONFIG_*` secrets |
68
+
69
+ Details: [Manifest](../configuration/overview.md).
70
+
71
+ ## Next
72
+
73
+ - [Configure MCP](./setup.md)
74
+ - [Quickstart](../quickstart.md)
75
+ - [Shape](./shape.md) · [Go live](./go-live.md) · [Tools](./tools.md)
76
+ - CLI without an agent: [CLI overview](../cli/overview.md)
@@ -1,72 +1,88 @@
1
- ---
2
- title: Quickstart
3
- description: Get started with APIToGo MCP — connect your agent, shape a portal, and preview locally.
4
- sidebar_icon: circle-play
5
- ---
6
-
7
- Build an API product (developer portal, plans, gateway, backend) with an AI agent and the **APItoGo
8
- MCP** server. Works with Cursor, Claude, Codex, and other MCP hosts.
9
-
10
- ## Prerequisites
11
-
12
- - **Node.js 20+** on the agent machine
13
- - An MCP-capable agent (Cursor, Claude Desktop / Claude Code, Codex, …)
14
- - Platform API keys from [apitogo.com](https://apitogo.com)
15
-
16
- ## Get started
17
-
18
- <Stepper>
19
-
20
- 1. **Create API credentials**
21
-
22
- In the [APItoGo dashboard](https://apitogo.com), create an API key and copy the **key id** and
23
- **secret**.
24
-
25
- 1. **Configure MCP in your agent**
26
-
27
- Wire `@lukoweb/apitogo-mcp` with your keys. Paste-ready snippets for **Cursor**, **Claude
28
- Desktop**, **Claude Code**, **Codex**, and other hosts:
29
-
30
- → **[Configure MCP in your agent](./mcp/setup.md)**
31
-
32
- Verify with `whoami` or by listing APItoGo tools.
33
-
34
- 1. **Shape a product**
35
-
36
- Ask your agent something like:
37
-
38
- > Create a portal in `./dev-portal` for my API in `./api` with Free (100/min) and Pro (1000/min);
39
- > make `/health` public.
40
-
41
- The agent should call `apply_product_intent` with `mode: "shape"` (or `create_dev_portal` for a
42
- default scaffold). See [Shape](./mcp/shape.md).
43
-
44
- 1. **Preview locally**
45
-
46
- ```bash
47
- cd ./dev-portal
48
- npx apitogo run
49
- ```
50
-
51
- Open `http://localhost:3000`. Iterate with MCP tools (pages, OpenAPI, theme, plans). Customize
52
- the home page in `landing/LandingPage.tsx` when you have real copy.
53
-
54
- 1. **Go live when ready**
55
-
56
- Save OIDC (and Stripe if you have paid plans) in the site `.env`, then ask the agent to publish —
57
- see [Go live](./mcp/go-live.md). Never paste secrets into chat.
58
-
59
- </Stepper>
60
-
61
- ## What's next
62
-
63
- - [Configure MCP](./mcp/setup.md) — agent-specific install
64
- - [MCP overview](./mcp/overview.md) — what the server does
65
- - [Shape](./mcp/shape.md) · [Go live](./mcp/go-live.md) · [Tools](./mcp/tools.md)
66
- - [Manifest](./configuration/manifest.md) · [Authentication](./configuration/authentication.md)
67
-
68
- ## Without an agent (CLI)
69
-
70
- Prefer the terminal? Use the **`apitogo`** CLI for the same config-first workflow:
71
-
72
- → **[Install the CLI](./cli/setup.md)** · [Shape](./cli/shape.md) · [Go live](./cli/go-live.md)
1
+ ---
2
+ title: Quickstart
3
+ description: >-
4
+ From an empty folder to a live API product in a few commands: create the project, preview it
5
+ locally, then deploy the portal, gateway, sign-in and plans.
6
+ sidebar_icon: circle-play
7
+ ---
8
+
9
+ APItoGo turns your API into a product: a developer portal with docs and an API reference, a gateway
10
+ that checks API keys and limits, sign-in for your users, and plans they pick. One file,
11
+ `apitogo.config.json`, describes it all, and the `apitogo` CLI builds and deploys it.
12
+
13
+ ## Prerequisites
14
+
15
+ - **Node.js 20+**
16
+ - An account on [apitogo.com](https://apitogo.com) (needed to deploy, not to try it locally)
17
+
18
+ ## Get started
19
+
20
+ <Stepper>
21
+
22
+ 1. **Create the project**
23
+
24
+ ```bash
25
+ npx @lukoweb/apitogo@latest create --template full
26
+ ```
27
+
28
+ It asks for a name, makes a folder for it and writes everything a working product needs:
29
+ - `apitogo.config.json` with a portal, a gateway, sign-in and plans
30
+ - a home page, a footer, a theme and a first docs page in `apitogo/portal/`
31
+ - a small Node.js API in `server/` with its OpenAPI file
32
+ - `apitogo/plans.json` with starter plans you can change
33
+
34
+ Run `create` without `--template` to pick the services one at a time instead.
35
+
36
+ 1. **Preview it locally**
37
+
38
+ ```bash
39
+ cd <your project folder>
40
+ npx apitogo run
41
+ ```
42
+
43
+ Open `http://localhost:3000`. The console signs in with a demo account (`demo@apitogo.local` /
44
+ `password`), so you can try the pricing, plans and API keys pages before anything is deployed.
45
+ Edit the pages in `apitogo/portal/` and the preview updates.
46
+
47
+ 1. **Sign in to APItoGo**
48
+
49
+ ```bash
50
+ npx apitogo login
51
+ ```
52
+
53
+ A browser window opens; sign in there.
54
+
55
+ 1. **Deploy**
56
+
57
+ ```bash
58
+ npx apitogo deploy
59
+ ```
60
+
61
+ The first deploy creates the project (it asks which hosting plan: Free, Starter or Professional),
62
+ then sets up each service and prints the addresses:
63
+
64
+ ```
65
+ portal: deployed to production (https://<name>.apitogo.com)
66
+ gateway: deployed (https://<name>.api.apitogo.com/)
67
+ ```
68
+
69
+ 1. **Try it as your users will**
70
+
71
+ Open the portal, create an account, pick the Free plan, create an API key on the **API keys**
72
+ page, and call your API through the gateway with it.
73
+
74
+ </Stepper>
75
+
76
+ ## What's next
77
+
78
+ - [Configuration overview](./configuration/overview.md): every section of `apitogo.config.json`
79
+ - [Portal](./configuration/portal.md): docs, home page, footer, logo and theme
80
+ - [Plans](./configuration/plans.md) and [Set up Stripe for paid plans](./guides/stripe-setup.mdx)
81
+ - [Walkthrough](./cli/walkthrough.md): the same journey one service at a time, with a customer's
82
+ first call
83
+ - [CLI commands](./cli/commands.md)
84
+
85
+ ## With an AI agent
86
+
87
+ The **APItoGo MCP** server lets an agent such as Claude Code or Cursor run the same steps for you.
88
+ See [Configure MCP in your agent](./mcp/setup.md).
package/docs/writing.mdx CHANGED
@@ -1,72 +1,68 @@
1
- ---
2
- title: Writing
3
- sidebar_icon: book-open-text
4
- description: A guide to writing documentation in APIToGo using Markdown and MDX.
5
- ---
6
-
7
- Get started with creating rich documentation in APIToGo using Markdown and MDX. This guide covers
8
- the essentials to help you begin documenting your project.
9
-
10
- ## Quick Start
11
-
12
- 1. **Create a markdown file** in your `pages` directory
13
- 2. **Add frontmatter** with title and metadata
14
- 3. **Configure navigation** to make it discoverable
15
- 4. **Write content** using Markdown or MDX
16
-
17
- ### Basic Document Structure
18
-
19
- ```md
20
- ---
21
- title: My Document
22
- sidebar_icon: file-text
23
- ---
24
-
25
- Your content goes here using standard Markdown syntax.
26
- ```
27
-
28
- ## Adding to Navigation
29
-
30
- To make your documentation discoverable, add it to the navigation configuration. Documents are
31
- referenced by their file path:
32
-
33
- ```ts title="config"
34
- const config = {
35
- navigation: [
36
- {
37
- type: "doc",
38
- file: "my-document",
39
- label: "My Document",
40
- },
41
- ],
42
- };
43
- ```
44
-
45
- Learn more about configuring navigation at
46
- [Navigation → Documents](/docs/configuration/navigation#type-doc).
47
-
48
- ## File Organization
49
-
50
- Organize your documentation files in logical directories:
51
-
52
- ```
53
- pages/
54
- ├── getting-started/
55
- │ ├── installation.md
56
- │ └── quick-start.md
57
- ├── guides/
58
- │ ├── authentication.md
59
- │ └── deployment.md
60
- └── api/
61
- └── reference.md
62
- ```
63
-
64
- ## What's Next?
65
-
66
- Explore the detailed guides to enhance your documentation:
67
-
68
- - **[Markdown Overview](/docs/markdown/overview)** - Complete markdown syntax reference
69
- - **[Frontmatter](/docs/markdown/frontmatter)** - Document metadata and configuration
70
- - **[MDX](/docs/markdown/mdx)** - Interactive components in markdown
71
- - **[Admonitions](/docs/markdown/admonitions)** - Callouts and alerts
72
- - **[Code Blocks](/docs/markdown/code-blocks)** - Syntax highlighting and features
1
+ ---
2
+ title: Writing
3
+ sidebar_icon: book-open-text
4
+ description: A guide to writing documentation in APIToGo using Markdown and MDX.
5
+ ---
6
+
7
+ Get started with creating rich documentation in APIToGo using Markdown and MDX. This guide covers
8
+ the essentials to help you begin documenting your project.
9
+
10
+ ## Quick Start
11
+
12
+ 1. **Create a markdown file** in `apitogo/portal/pages/`
13
+ 2. **Add frontmatter** with title and metadata
14
+ 3. **Write content** using Markdown or MDX
15
+
16
+ The page shows in the sidebar on its own.
17
+
18
+ ### Basic Document Structure
19
+
20
+ ```md
21
+ ---
22
+ title: My Document
23
+ sidebar_icon: file-text
24
+ ---
25
+
26
+ Your content goes here using standard Markdown syntax.
27
+ ```
28
+
29
+ ## Adding to Navigation
30
+
31
+ The sidebar is built from the files: every page in `apitogo/portal/pages/` (or the folders
32
+ `portal.docs.content` names) is listed, and each folder becomes a section. A folder's `index` page
33
+ comes first, then pages with an `order`, lowest first, then the rest by name:
34
+
35
+ ```md
36
+ ---
37
+ title: Authentication
38
+ order: 2
39
+ ---
40
+ ```
41
+
42
+ A page with `draft: true` is left out of deployed portals.
43
+
44
+ ## File Organization
45
+
46
+ Organize your documentation files in logical directories:
47
+
48
+ ```
49
+ pages/
50
+ ├── getting-started/
51
+ │ ├── installation.md
52
+ │ └── quick-start.md
53
+ ├── guides/
54
+ │ ├── authentication.md
55
+ │ └── deployment.md
56
+ └── api/
57
+ └── reference.md
58
+ ```
59
+
60
+ ## What's Next?
61
+
62
+ Explore the detailed guides to enhance your documentation:
63
+
64
+ - **[Markdown Overview](/docs/markdown/overview)** - Complete markdown syntax reference
65
+ - **[Frontmatter](/docs/markdown/frontmatter)** - Document metadata and configuration
66
+ - **[MDX](/docs/markdown/mdx)** - Interactive components in markdown
67
+ - **[Admonitions](/docs/markdown/admonitions)** - Callouts and alerts
68
+ - **[Code Blocks](/docs/markdown/code-blocks)** - Syntax highlighting and features