@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.
- package/dist/cli/cli.js +2196 -1352
- package/dist/declarations/cli/platform/client/platform-api.d.ts +29 -0
- package/dist/declarations/cli/platform/helpers/platform-plan-catalog.d.ts +6 -0
- package/dist/declarations/config/validators/ZudokuConfig.d.ts +2 -0
- package/dist/declarations/lib/authentication/providers/openid.d.ts +2 -1
- package/dist/declarations/lib/plugins/markdown/index.d.ts +2 -1
- package/dist/flat-config.d.ts +1 -0
- package/docs/cli/commands.md +50 -32
- package/docs/cli/go-live.md +66 -93
- package/docs/cli/overview.md +18 -17
- package/docs/cli/setup.md +130 -141
- package/docs/cli/shape.md +94 -11
- package/docs/cli/walkthrough.md +1 -1
- package/docs/components/slot.mdx +116 -119
- package/docs/configuration/api-reference.md +98 -397
- package/docs/configuration/authentication.md +118 -159
- package/docs/configuration/footer.mdx +89 -118
- package/docs/configuration/make-config.mdx +2 -2
- package/docs/configuration/overview.md +97 -166
- package/docs/configuration/plans.md +100 -110
- package/docs/configuration/portal.md +116 -0
- package/docs/customization/colors-theme.mdx +255 -278
- package/docs/customization/fonts.md +105 -110
- package/docs/customization/landing-page.md +189 -188
- package/docs/deploy/apitogo.md +13 -17
- package/docs/deployment.md +15 -9
- package/docs/guides/stripe-setup.mdx +123 -0
- package/docs/markdown/frontmatter.md +172 -173
- package/docs/mcp/go-live.md +100 -100
- package/docs/mcp/overview.md +76 -76
- package/docs/quickstart.md +88 -72
- package/docs/writing.mdx +68 -72
- package/package.json +1 -1
- package/src/config/v2/docs-navigation.ts +7 -2
- package/src/config/v2/index.ts +1 -0
- package/src/config/v2/resolve.ts +28 -0
- package/src/config/v2/rules.ts +32 -1
- package/src/config/v2/schema.ts +9 -0
- package/src/config/v2/services.ts +90 -15
- package/src/config/v2/starter-landing.ts +41 -0
- package/src/config/v2/wrapper.ts +141 -7
- package/src/config/validators/ZudokuConfig.ts +794 -792
- package/src/lib/authentication/providers/openid.tsx +6 -1
- package/src/lib/plugins/markdown/index.tsx +86 -82
- package/src/vite/dev-server.ts +9 -1
- package/src/vite/dev-ssr-config.ts +32 -0
- package/src/vite/plugin-config.ts +4 -2
- package/src/vite/plugin-docs.ts +213 -205
- package/docs/concepts/auth-provider-api-identities.md +0 -105
- package/docs/configuration/ai-assistants.md +0 -65
- package/docs/configuration/api-catalog.md +0 -109
- package/docs/configuration/authentication-auth0.md +0 -181
- package/docs/configuration/authentication-azure-ad.md +0 -245
- package/docs/configuration/authentication-clerk.md +0 -117
- package/docs/configuration/authentication-firebase.md +0 -69
- package/docs/configuration/authentication-pingfederate.md +0 -143
- package/docs/configuration/authentication-supabase.md +0 -233
- package/docs/configuration/build-configuration.mdx +0 -147
- package/docs/configuration/docs.md +0 -282
- package/docs/configuration/llms.md +0 -90
- package/docs/configuration/manifest.md +0 -129
- package/docs/configuration/navigation.mdx +0 -415
- package/docs/configuration/protected-routes.md +0 -150
- package/docs/configuration/search.md +0 -164
- package/docs/configuration/sentry.mdx +0 -44
- package/docs/configuration/site.md +0 -124
- package/docs/configuration/slots.mdx +0 -125
- package/docs/configuration/vite-config.md +0 -18
- package/docs/custom-plugins.md +0 -285
- package/docs/deploy/apache-nginx.md +0 -41
- package/docs/deploy/cloudflare-pages.md +0 -74
- package/docs/deploy/direct-upload.md +0 -17
- package/docs/deploy/github-pages.md +0 -49
- package/docs/deploy/vercel.md +0 -101
- package/docs/extending/events.md +0 -124
- package/docs/guides/environment-variables.md +0 -94
- package/docs/guides/managing-api-keys-and-identities.md +0 -89
- package/docs/guides/navigation-rules.mdx +0 -203
- package/docs/guides/processors.mdx +0 -234
- package/docs/guides/transforming-examples.md +0 -156
- package/docs/guides/using-multiple-apis.md +0 -87
- package/docs/plugins.md +0 -24
package/docs/mcp/go-live.md
CHANGED
|
@@ -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/
|
|
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)
|
package/docs/mcp/overview.md
CHANGED
|
@@ -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/
|
|
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)
|
package/docs/quickstart.md
CHANGED
|
@@ -1,72 +1,88 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Quickstart
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
|
13
|
-
2. **Add frontmatter** with title and metadata
|
|
14
|
-
3. **
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
├──
|
|
55
|
-
│
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
- **[
|
|
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
|