@eventcatalog/core 3.39.5 → 3.40.0

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 (79) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/{chunk-KVAEAYEP.js → chunk-72BKUYSR.js} +1 -1
  6. package/dist/{chunk-M4S7PORQ.js → chunk-J5CG7FRO.js} +1 -1
  7. package/dist/{chunk-S4HLJWQ7.js → chunk-K762FILQ.js} +1 -1
  8. package/dist/{chunk-TNE5QSJ4.js → chunk-UPI6QQEZ.js} +1 -1
  9. package/dist/{chunk-H5BZMNK3.js → chunk-WFNAWDCB.js} +1 -1
  10. package/dist/constants.cjs +1 -1
  11. package/dist/constants.js +1 -1
  12. package/dist/docs/api/03-domain-api.md +16 -0
  13. package/dist/docs/api/04-service-api.md +16 -0
  14. package/dist/docs/api/05-command-api.md +16 -0
  15. package/dist/docs/api/06-event-api.md +16 -0
  16. package/dist/docs/api/06-query-api.md +16 -0
  17. package/dist/docs/api/08-channel-api.md +16 -0
  18. package/dist/docs/api/09-flow-api.md +16 -0
  19. package/dist/docs/api/10-entity-api.md +15 -0
  20. package/dist/docs/api/12-data-product-api.md +17 -0
  21. package/dist/docs/development/01-fundamentals.md +7 -0
  22. package/dist/docs/development/01-getting-started/installation.md +8 -0
  23. package/dist/docs/development/01-getting-started/project-structure.md +2 -0
  24. package/dist/docs/development/ask-your-architecture/03-mcp-server/getting-started.md +72 -0
  25. package/dist/docs/development/bring-your-own-documentation/01-introduction.md +3 -1
  26. package/dist/docs/development/customization/customize-sidebars/00-application-sidebar.md +45 -5
  27. package/dist/docs/editor/00-overview.md +73 -0
  28. package/dist/docs/editor/01-first-edit.md +124 -0
  29. package/dist/docs/editor/_category_.json +12 -0
  30. package/dist/docs/editor/explanation/_category_.json +11 -0
  31. package/dist/docs/editor/explanation/beta-status-feedback.md +48 -0
  32. package/dist/docs/editor/explanation/how-it-works.md +49 -0
  33. package/dist/docs/editor/explanation/markdown-mdx-git.md +58 -0
  34. package/dist/docs/editor/how-to/_category_.json +11 -0
  35. package/dist/docs/editor/how-to/add-schemas-and-specifications.md +66 -0
  36. package/dist/docs/editor/how-to/edit-resource.md +88 -0
  37. package/dist/docs/editor/how-to/invite-editors.md +68 -0
  38. package/dist/docs/editor/how-to/open-catalog.md +44 -0
  39. package/dist/docs/editor/how-to/preview-changes.md +55 -0
  40. package/dist/docs/editor/how-to/revert-local-changes.md +43 -0
  41. package/dist/docs/editor/how-to/review-and-commit-changes.md +57 -0
  42. package/dist/docs/editor/how-to/run-locally.md +71 -0
  43. package/dist/docs/editor/how-to/use-flow-editor.md +66 -0
  44. package/dist/docs/editor/how-to/use-slash-commands.md +67 -0
  45. package/dist/docs/editor/reference/_category_.json +11 -0
  46. package/dist/docs/editor/reference/cli.md +61 -0
  47. package/dist/docs/editor/reference/supported-content.md +81 -0
  48. package/dist/docs/editor/reference/supported-resources.md +51 -0
  49. package/dist/docs/editor/reference/troubleshooting.md +76 -0
  50. package/dist/eventcatalog.cjs +1 -1
  51. package/dist/eventcatalog.config.d.cts +42 -0
  52. package/dist/eventcatalog.config.d.ts +42 -0
  53. package/dist/eventcatalog.js +5 -5
  54. package/dist/generate.cjs +1 -1
  55. package/dist/generate.js +3 -3
  56. package/dist/utils/cli-logger.cjs +1 -1
  57. package/dist/utils/cli-logger.js +2 -2
  58. package/eventcatalog/src/components/Badge.astro +50 -0
  59. package/eventcatalog/src/components/Tables/Discover/DiscoverTable.tsx +1 -0
  60. package/eventcatalog/src/components/Tables/Discover/columns.tsx +35 -13
  61. package/eventcatalog/src/components/Tables/Table.tsx +1 -0
  62. package/eventcatalog/src/components/Tables/columns/SharedColumns.tsx +24 -11
  63. package/eventcatalog/src/content.config-shared-collections.ts +1 -0
  64. package/eventcatalog/src/enterprise/auth/middleware/middleware-auth.ts +6 -1
  65. package/eventcatalog/src/enterprise/custom-documentation/pages/docs/custom/index.astro +2 -18
  66. package/eventcatalog/src/enterprise/feature.ts +2 -0
  67. package/eventcatalog/src/enterprise/integrations/eventcatalog-features.ts +12 -0
  68. package/eventcatalog/src/enterprise/mcp/mcp-auth.ts +266 -0
  69. package/eventcatalog/src/enterprise/mcp/mcp-server.ts +13 -0
  70. package/eventcatalog/src/enterprise/mcp/oauth-protected-resource.ts +25 -0
  71. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/[docVersion]/index.astro +2 -14
  72. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/[docType]/[docId]/index.astro +2 -14
  73. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +3 -15
  74. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/graphql/[filename].astro +2 -18
  75. package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +2 -18
  76. package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +2 -11
  77. package/eventcatalog/src/utils/badge-styles.ts +31 -0
  78. package/eventcatalog/src/utils/feature.ts +1 -0
  79. package/package.json +4 -4
@@ -0,0 +1,124 @@
1
+ ---
2
+ sidebar_position: 2
3
+ sidebar_label: First edit tutorial
4
+ title: Make your first edit with EventCatalog Editor
5
+ description: Learn the basic editor workflow by opening a local catalog, changing a resource, previewing it, and reviewing the Git change.
6
+ slug: /editor/first-edit
7
+ ---
8
+
9
+ This tutorial takes you through the first successful editor workflow:
10
+
11
+ 1. Run EventCatalog locally
12
+ 2. Run EventCatalog Editor
13
+ 3. Open a catalog resource
14
+ 4. Make a small documentation change
15
+ 5. Preview the resource
16
+ 6. Review the Git diff
17
+ 7. Publish the change
18
+
19
+ The goal is not to document a whole architecture. The goal is to learn the editor loop.
20
+
21
+ ::::info Need a catalog?
22
+
23
+ This tutorial assumes you already have an EventCatalog project on your machine. If you do not, follow the [EventCatalog installation guide](/docs/development/getting-started/installation) first.
24
+
25
+ ::::
26
+
27
+ ## Prerequisites
28
+
29
+ Before you start, make sure you have:
30
+
31
+ - Node.js 22 or later
32
+ - Git installed
33
+ - An EventCatalog project containing `eventcatalog.config.js`
34
+ - Access to EventCatalog Editor through [EventCatalog Cloud](https://eventcatalog.cloud)
35
+ - A terminal open in or near your catalog project
36
+
37
+ If a teammate needs access, an organization admin can [invite them as an editor](/docs/editor/how-to/invite-editors).
38
+
39
+ Check Node and Git with:
40
+
41
+ ```bash
42
+ node -v
43
+ git --version
44
+ ```
45
+
46
+ ## Start your EventCatalog preview
47
+
48
+ Open a terminal in your EventCatalog project and start EventCatalog:
49
+
50
+ ```bash
51
+ npm run dev
52
+ ```
53
+
54
+ By default, EventCatalog runs at [http://localhost:3000](http://localhost:3000).
55
+
56
+ The editor can still run without a preview, but preview links are only available when EventCatalog is running locally.
57
+
58
+ ## Start the editor
59
+
60
+ Open another terminal in the same catalog directory and run:
61
+
62
+ ```bash
63
+ npx @eventcatalog/editor
64
+ ```
65
+
66
+ The editor starts on [http://localhost:3900](http://localhost:3900) and opens your browser.
67
+
68
+ If the editor asks you to sign in, sign in with [EventCatalog Cloud](https://eventcatalog.cloud) and return to the local editor.
69
+
70
+ ## Open a resource
71
+
72
+ Choose a resource from the left navigation. A good first edit is a [service](/docs/development/guides/services/introduction), [domain](/docs/development/guides/domains/introduction), [event](/docs/development/guides/messages/events/introduction), [command](/docs/development/guides/messages/commands/introduction), or [query](/docs/development/guides/messages/queries/introduction) that already exists in your catalog.
73
+
74
+ The editor shows:
75
+
76
+ - The resource list on the left
77
+ - The resource documentation in the center
78
+ - Metadata and relationship fields around the editor
79
+
80
+ ![Service resource open in EventCatalog Editor](./images/editor.png)
81
+
82
+ ## Make a small change
83
+
84
+ Change a short paragraph, summary, [owner](/docs/owners), badge, or other low-risk field.
85
+
86
+ The editor writes changes back to your local catalog files. For example, editing a service updates the matching `index.mdx` file in your catalog.
87
+
88
+ You can use the rich editor for normal writing, or switch to source mode when you need to work directly with Markdown, MDX, or frontmatter.
89
+
90
+ ## Preview the resource
91
+
92
+ Use **Open Preview** to view the resource in your running EventCatalog site.
93
+
94
+ ![Open Preview button in EventCatalog Editor](./images/open-preview.png)
95
+
96
+ Preview opens the page from your local EventCatalog development server. If preview is unavailable, check that EventCatalog is running and that the editor detected the correct preview port.
97
+
98
+ ## Review the change
99
+
100
+ Open **Changes** from the editor navigation.
101
+
102
+ The changes page groups local Git changes by EventCatalog resource. Open the changed file to inspect the diff.
103
+
104
+ ![Changes page showing a local Git diff](./images/change-diff.png)
105
+
106
+ ## Publish the change
107
+
108
+ When the diff looks right, click **Publish** in the editor.
109
+
110
+ In the beta editor, **Publish** commits your changes locally to Git. It does not deploy your catalog or open a pull request.
111
+
112
+ After publishing, continue with your team's normal review and release workflow. For example, you might push a branch and open a pull request, or push directly if that is how your catalog is maintained.
113
+
114
+ ## What you learned
115
+
116
+ You have completed the core editor loop:
117
+
118
+ - Open a local catalog
119
+ - Edit a resource
120
+ - Preview the resource locally
121
+ - Review the Git diff
122
+ - Publish a local commit
123
+
124
+ Next, learn how to [edit resources](/docs/editor/how-to/edit-resource), [add schemas and specifications](/docs/editor/how-to/add-schemas-and-specifications), or [review and publish changes](/docs/editor/how-to/review-and-commit-changes).
@@ -0,0 +1,12 @@
1
+ {
2
+ "label": "Editor",
3
+ "position": 2,
4
+ "collapsible": false,
5
+ "collapsed": false,
6
+ "link": {
7
+ "type": "generated-index",
8
+ "slug": "editor",
9
+ "title": "EventCatalog Editor",
10
+ "description": "Edit, preview, review, and commit EventCatalog documentation from a local visual editor."
11
+ }
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "label": "Explanation",
3
+ "position": 5,
4
+ "collapsible": true,
5
+ "collapsed": false,
6
+ "link": {
7
+ "type": "generated-index",
8
+ "title": "Editor explanation",
9
+ "description": "Conceptual guides that explain how EventCatalog Editor fits with files, Markdown, MDX, Git, and beta access."
10
+ }
11
+ }
@@ -0,0 +1,48 @@
1
+ ---
2
+ sidebar_position: 3
3
+ sidebar_label: Beta and feedback
4
+ title: Beta status and feedback
5
+ description: Understand the beta status of EventCatalog Editor and how to give feedback.
6
+ ---
7
+
8
+ EventCatalog Editor is in beta.
9
+
10
+ You can start using it today, but expect some features, workflows, and interface details to change as the product moves toward general availability.
11
+
12
+ ## What beta means
13
+
14
+ During beta:
15
+
16
+ - Some workflows may be incomplete
17
+ - Some resource fields may only be editable in source mode
18
+ - Pull request creation and richer publishing flows may change
19
+ - Documentation and screenshots may lag behind fast-moving features
20
+
21
+ The editor is ready for real feedback, but not every planned workflow is finished.
22
+
23
+ ## Access and seats
24
+
25
+ EventCatalog Editor is a seat-based paid product.
26
+
27
+ Community includes 1 editor seat. Starter includes 3 editor seats. Scale includes 10 editor seats. Enterprise includes unlimited editor seats.
28
+
29
+ Organization admins can [invite editors](/docs/editor/how-to/invite-editors) through [EventCatalog Cloud](https://eventcatalog.cloud). Admin and editor roles use editor seats; viewer roles are free.
30
+
31
+ See the [pricing page](/pricing) for current plan details.
32
+
33
+ ## Give feedback
34
+
35
+ The best feedback is specific:
36
+
37
+ - What you were trying to document
38
+ - What catalog resource you were editing
39
+ - What worked
40
+ - What was confusing
41
+ - What blocked you
42
+ - What you expected the editor to do
43
+
44
+ Share feedback in the [EventCatalog Discord](https://eventcatalog.dev/discord) or [open an issue in the editor repository](https://github.com/event-catalog/eventcatalog-editor-code/issues).
45
+
46
+ ## What the beta looks like
47
+
48
+ ![EventCatalog Editor beta interface](../images/editor.png)
@@ -0,0 +1,49 @@
1
+ ---
2
+ sidebar_position: 1
3
+ sidebar_label: How it works
4
+ title: How EventCatalog Editor works
5
+ description: Understand the local architecture and workflow behind EventCatalog Editor.
6
+ ---
7
+
8
+ EventCatalog Editor is local-first.
9
+
10
+ It starts a small local server, opens a browser UI, reads your EventCatalog project from disk, and writes changes back to the same files.
11
+
12
+ ```mermaid
13
+ flowchart LR
14
+ A[Browser UI] <--> B[Local editor server]
15
+ B <--> C[EventCatalog project files]
16
+ B <--> D[Git repository]
17
+ B -. detects .-> E[Local EventCatalog preview]
18
+ ```
19
+
20
+ ## The editor runs on your machine
21
+
22
+ The editor binds to your local machine and opens at [http://localhost:3900](http://localhost:3900) by default.
23
+
24
+ Your catalog stays on disk. Editing a resource changes files in the catalog directory, such as `index.mdx`, schema files, specification files, or `eventcatalog.config.js`.
25
+
26
+ ## The browser talks to the local server
27
+
28
+ The browser UI does not edit files directly. It talks to the local editor server, which:
29
+
30
+ - Validates catalog paths
31
+ - Reads resources
32
+ - Writes resource files
33
+ - Manages schema and specification files
34
+ - Reads Git status and diffs
35
+ - Detects local EventCatalog preview URLs
36
+
37
+ ## [EventCatalog Cloud](https://eventcatalog.cloud) controls access
38
+
39
+ The beta editor uses [EventCatalog Cloud](https://eventcatalog.cloud) for sign-in and editor access.
40
+
41
+ Organizations in [EventCatalog Cloud](https://eventcatalog.cloud) control which people can open the local editor. Admins and editors can start local editor sessions. Viewers can belong to an organization without using an editor seat, but they cannot open a local editor session.
42
+
43
+ After sign-in, editing still happens locally. The editor does not become a hosted catalog editor; it remains a local tool pointed at your local catalog files.
44
+
45
+ ## Git remains the review boundary
46
+
47
+ The editor shows local Git changes, diffs, revert actions, and commits.
48
+
49
+ It does not replace your team's review and release process. After committing, push and publish the catalog the same way your team already does.
@@ -0,0 +1,58 @@
1
+ ---
2
+ sidebar_position: 2
3
+ sidebar_label: Markdown, MDX, and Git
4
+ title: Editor, Markdown, MDX, and Git
5
+ description: Understand how the editor works with EventCatalog's file-based authoring model.
6
+ ---
7
+
8
+ EventCatalog is file-based. The editor keeps that model.
9
+
10
+ Instead of asking every contributor to edit Markdown, MDX, YAML frontmatter, schemas, and Git diffs by hand, the editor gives them a visual workflow on top of the same project files.
11
+
12
+ ## Markdown and MDX are still the source of truth
13
+
14
+ Each EventCatalog resource is still represented by files in your catalog.
15
+
16
+ For example, a [service](/docs/development/guides/services/introduction) might live at:
17
+
18
+ ```txt
19
+ domains/Orders/services/OrderService/index.mdx
20
+ ```
21
+
22
+ When you edit that service in the editor, the editor updates the same file.
23
+
24
+ ## Visual editing is an authoring layer
25
+
26
+ The editor helps with common tasks:
27
+
28
+ - Writing documentation
29
+ - Changing summaries and owners
30
+ - Adding badges
31
+ - Modeling relationships
32
+ - Adding schemas and specifications
33
+ - Managing draft status
34
+
35
+ For advanced content, source mode lets you edit the underlying Markdown, MDX, and frontmatter.
36
+
37
+ ## Git shows exactly what changed
38
+
39
+ Because the editor writes to files, Git can show the exact change.
40
+
41
+ That makes the editor useful for contributors who prefer a visual workflow while still giving reviewers the normal file diff.
42
+
43
+ ```mermaid
44
+ flowchart LR
45
+ A[Visual edit] --> B[MDX and schema files]
46
+ B --> C[Git diff]
47
+ C --> D[Commit]
48
+ D --> E[Review and publish]
49
+ ```
50
+
51
+ ## Why this matters
52
+
53
+ This keeps EventCatalog portable:
54
+
55
+ - You can still edit files in an IDE
56
+ - You can still review changes in pull requests
57
+ - You can still build and deploy with your existing pipeline
58
+ - You can let non-MDX contributors improve documentation safely
@@ -0,0 +1,11 @@
1
+ {
2
+ "label": "How-to guides",
3
+ "position": 3,
4
+ "collapsible": true,
5
+ "collapsed": false,
6
+ "link": {
7
+ "type": "generated-index",
8
+ "title": "Editor how-to guides",
9
+ "description": "Task-focused guides for running EventCatalog Editor and working with catalog changes."
10
+ }
11
+ }
@@ -0,0 +1,66 @@
1
+ ---
2
+ sidebar_position: 7
3
+ sidebar_label: Add schemas and specifications
4
+ title: Add schemas and specifications
5
+ description: Attach message schemas and API specifications from EventCatalog Editor.
6
+ ---
7
+
8
+ Use schemas and specifications to keep implementation contracts close to the architecture resources they describe.
9
+
10
+ ## Add a schema to a message
11
+
12
+ Schemas are supported on:
13
+
14
+ - [Events](/docs/development/guides/messages/events/introduction)
15
+ - [Commands](/docs/development/guides/messages/commands/introduction)
16
+ - [Queries](/docs/development/guides/messages/queries/introduction)
17
+
18
+ Open the message resource, then use the **Schema** section to add or edit the schema file.
19
+
20
+ Supported schema formats include:
21
+
22
+ - JSON Schema
23
+ - Avro
24
+ - Protobuf
25
+ - Other text-based schema files
26
+
27
+ When you save a schema, the editor writes the schema file into the resource folder and updates the resource metadata so EventCatalog can render it.
28
+
29
+ If the schema editor does not expose the exact change you need yet, use source mode or edit the schema file directly.
30
+
31
+ ## Add a specification to a domain or service
32
+
33
+ Specifications are supported on:
34
+
35
+ - [Domains](/docs/development/guides/domains/introduction)
36
+ - [Services](/docs/development/guides/services/introduction)
37
+
38
+ Open the domain or service, then use the specifications area to add:
39
+
40
+ - OpenAPI
41
+ - AsyncAPI
42
+ - GraphQL
43
+
44
+ The editor writes the specification file into the resource folder and updates the resource `specifications` metadata.
45
+
46
+ ![Service resource showing attached API specifications](../images/editor.png)
47
+
48
+ ## Preview schema and specification changes
49
+
50
+ Start EventCatalog locally with:
51
+
52
+ ```bash
53
+ npm run dev
54
+ ```
55
+
56
+ Then use **Open Preview** in the editor to check how the schema or specification renders in the catalog.
57
+
58
+ ## When to use source mode
59
+
60
+ Use source mode when you need to:
61
+
62
+ - Adjust a custom `SchemaViewer` component
63
+ - Add custom MDX around a schema
64
+ - Edit specification metadata the visual form does not expose yet
65
+
66
+ For more on schema documentation in EventCatalog, see the [schema documentation guides](/docs/development/guides/schemas/introduction).
@@ -0,0 +1,88 @@
1
+ ---
2
+ sidebar_position: 4
3
+ sidebar_label: Edit a resource
4
+ title: Edit an EventCatalog resource
5
+ description: Update resource documentation, metadata, relationships, and source content in EventCatalog Editor.
6
+ ---
7
+
8
+ Use this guide when you want to update a resource that already exists in your catalog.
9
+
10
+ ## Open the resource
11
+
12
+ Start the editor and choose a resource from the resource list.
13
+
14
+ The editor supports common EventCatalog resource types, including [domains](/docs/development/guides/domains/introduction), [services](/docs/development/guides/services/introduction), [events](/docs/development/guides/messages/events/introduction), [commands](/docs/development/guides/messages/commands/introduction), [queries](/docs/development/guides/messages/queries/introduction), [channels](/docs/development/guides/channels/introduction), [entities](/docs/development/guides/domains/entities/introduction), [data stores](/docs/development/guides/data/introduction), [flows](/docs/development/guides/flows/introduction), [users](/docs/development/guides/owners/users/introduction), and [teams](/docs/development/guides/owners/teams/introduction).
15
+
16
+ ![Resource list with a service selected](../images/editor.png)
17
+
18
+ ## Edit the documentation
19
+
20
+ Use the rich editor to change the resource body.
21
+
22
+ The rich editor supports common writing blocks such as headings, paragraphs, lists, tables, blockquotes, code blocks, links, and dividers.
23
+
24
+ Use `/` in an empty paragraph to open the block menu. Slash commands also help you insert EventCatalog components such as diagrams, callouts, steps, tiles, prompts, and resource-aware blocks. Learn more in [Use slash commands](/docs/editor/how-to/use-slash-commands).
25
+
26
+ ![Slash command menu showing EventCatalog components](../images/custom-slash-commands.png)
27
+
28
+ ## Edit resource metadata
29
+
30
+ Use the resource fields to update common frontmatter values such as:
31
+
32
+ - Name
33
+ - Summary
34
+ - Owners
35
+ - Badges
36
+ - Repository links
37
+ - Draft status
38
+ - Resource image or icon
39
+
40
+ Some resource types have extra fields. For example, services can model sent and received messages, and data stores can describe type, technology, access mode, classification, retention, and residency.
41
+
42
+ ## Edit relationships
43
+
44
+ Use relationship fields to connect resources.
45
+
46
+ For example:
47
+
48
+ - Add services to a domain
49
+ - Show messages a service sends or receives
50
+ - Connect services to data stores they read from or write to
51
+ - Connect [owners](/docs/owners) to resources
52
+
53
+ These fields update the same resource metadata that EventCatalog uses when it renders architecture relationships.
54
+
55
+ ## Create related resources
56
+
57
+ When a relationship field allows new resources, the editor can create the resource and model how it relates to the current resource.
58
+
59
+ For example, when creating an event from a service, choose whether the service publishes the event, consumes the event, or only contains the event in its folder.
60
+
61
+ ![Create event dialog showing relationship choices](../images/creating-new-event-modal.png)
62
+
63
+ ## Edit flows
64
+
65
+ Flow resources include a visual Flow Editor for modeling business processes, user journeys, and architecture workflows.
66
+
67
+ ![Flow editor showing a service node in a business flow](../images/flow-editor.png)
68
+
69
+ Learn how to [use the Flow Editor](/docs/editor/how-to/use-flow-editor).
70
+
71
+ ## Use source mode
72
+
73
+ Switch to source mode when you need to edit Markdown, MDX, or frontmatter directly.
74
+
75
+ ![Editor source mode showing Markdown and frontmatter](../images/using-source-mode.png)
76
+
77
+ Source mode is useful for:
78
+
79
+ - Checking exact frontmatter
80
+ - Editing custom MDX components
81
+ - Making changes the rich editor does not expose yet
82
+ - Copying content from another file
83
+
84
+ ## Save conflicts
85
+
86
+ If the file changed on disk after the editor loaded it, the editor protects you from overwriting those changes.
87
+
88
+ Reload the resource, review the external change, and apply your edit again.
@@ -0,0 +1,68 @@
1
+ ---
2
+ sidebar_position: 3
3
+ sidebar_label: Invite editors
4
+ title: Invite editors to your organization
5
+ description: Add team members in EventCatalog Cloud and assign editor seats so they can use EventCatalog Editor locally.
6
+ ---
7
+
8
+ Use [EventCatalog Cloud](https://eventcatalog.cloud) to manage who can use EventCatalog Editor.
9
+
10
+ The editor still runs locally on each person's machine. Cloud verifies that the person belongs to your organization and has a role that can open a local editor session.
11
+
12
+ ![Invite team members in EventCatalog Cloud](../images/invite-team-members.png)
13
+
14
+ ## Before you start
15
+
16
+ You need:
17
+
18
+ - An [EventCatalog Cloud](https://eventcatalog.cloud) organization
19
+ - Admin access to that organization
20
+ - An available editor seat if you want to invite another admin or editor
21
+
22
+ If you have not created an organization yet, sign in to [EventCatalog Cloud](https://eventcatalog.cloud) and complete the organization setup first.
23
+
24
+ ## Editor seats by plan
25
+
26
+ Editor seats control how many people can use EventCatalog Editor for an organization.
27
+
28
+ - Community includes 1 editor seat
29
+ - Starter includes 3 editor seats
30
+ - Scale includes 10 editor seats
31
+ - Enterprise includes unlimited editor seats
32
+
33
+ Admins and editors use editor seats. Viewers are free, but viewers cannot open a local editor session.
34
+
35
+ You can compare plans on the [pricing page](/pricing).
36
+
37
+ ## Invite a team member
38
+
39
+ 1. Sign in to [EventCatalog Cloud](https://eventcatalog.cloud).
40
+ 2. Open the organization you want the editor to use.
41
+ 3. Go to **Team**.
42
+ 4. Enter the team member's email address.
43
+ 5. Choose their role.
44
+ 6. Click **Invite**.
45
+
46
+ Invitations expire after 7 days.
47
+
48
+ Pending invitations for admin and editor roles count toward your editor seat usage. If you run out of editor seats, invite the person as a viewer, cancel an unused pending invitation, change an existing member's role, or upgrade your plan.
49
+
50
+ ## Choose the right role
51
+
52
+ - Admin can manage the organization, invite members, and use EventCatalog Editor.
53
+ - Editor can use EventCatalog Editor for the organization.
54
+ - Viewer can belong to the organization without using an editor seat.
55
+
56
+ Use **Editor** for most people who need to maintain catalog content. Use **Admin** when the person also needs to manage organization settings and team access.
57
+
58
+ ## What the invited person does next
59
+
60
+ After accepting the invitation, the team member can:
61
+
62
+ 1. Clone or open the EventCatalog project locally.
63
+ 2. Install catalog dependencies if needed.
64
+ 3. [Run EventCatalog Editor locally](/docs/editor/how-to/run-locally).
65
+ 4. Sign in with [EventCatalog Cloud](https://eventcatalog.cloud) when the editor asks for access.
66
+ 5. Choose the organization if their account belongs to more than one organization.
67
+
68
+ The editor changes their local files and gives them a Git UI to publish a local commit. It does not upload catalog source files to [EventCatalog Cloud](https://eventcatalog.cloud).
@@ -0,0 +1,44 @@
1
+ ---
2
+ sidebar_position: 2
3
+ sidebar_label: Open a catalog
4
+ title: Open a catalog in the editor
5
+ description: Mount an EventCatalog project from the CLI or from the editor UI.
6
+ ---
7
+
8
+ EventCatalog Editor needs a local catalog directory before it can show resources.
9
+
10
+ ## How the editor finds a catalog
11
+
12
+ When you run `npx @eventcatalog/editor`, the editor looks for a catalog in this order:
13
+
14
+ 1. The path passed with `--catalog`
15
+ 2. The current directory, if it contains `eventcatalog.config.js`
16
+ 3. The first child directory containing `eventcatalog.config.js`
17
+ 4. The catalog path screen in the browser
18
+
19
+ ## Open a catalog from the CLI
20
+
21
+ Pass the catalog path:
22
+
23
+ ```bash
24
+ npx @eventcatalog/editor --catalog /path/to/my-catalog
25
+ ```
26
+
27
+ Use an absolute path when possible. It makes it clear which catalog the editor is changing.
28
+
29
+ ## Open a catalog from the browser
30
+
31
+ If the editor cannot find a catalog automatically, it shows a catalog path screen.
32
+
33
+ Enter the path to your EventCatalog project and choose **Open**.
34
+
35
+ ## Fix catalog loading errors
36
+
37
+ If the editor cannot open the catalog, check that:
38
+
39
+ - The path points to the catalog root
40
+ - The directory contains `eventcatalog.config.js`
41
+ - The config file can be imported by Node.js
42
+ - Dependencies for the catalog are installed
43
+
44
+ If you are not sure what the catalog root should look like, read the [EventCatalog project structure guide](/docs/development/getting-started/project-structure).
@@ -0,0 +1,55 @@
1
+ ---
2
+ sidebar_position: 8
3
+ sidebar_label: Preview changes
4
+ title: Preview editor changes
5
+ description: Open local EventCatalog preview links from the editor.
6
+ ---
7
+
8
+ Preview lets you check how a resource looks in EventCatalog before committing your changes.
9
+
10
+ ## Start EventCatalog locally
11
+
12
+ In your catalog project, run:
13
+
14
+ ```bash
15
+ npm run dev
16
+ ```
17
+
18
+ EventCatalog usually runs at [http://localhost:3000](http://localhost:3000).
19
+
20
+ ## Start the editor
21
+
22
+ In another terminal, run:
23
+
24
+ ```bash
25
+ npx @eventcatalog/editor
26
+ ```
27
+
28
+ The editor checks whether EventCatalog is running locally. When it detects a preview, resource pages show **Open Preview**.
29
+
30
+ ## Use a custom preview port
31
+
32
+ If EventCatalog is running on a different port, tell the editor:
33
+
34
+ ```bash
35
+ npx @eventcatalog/editor --eventcatalog-port 3001
36
+ ```
37
+
38
+ ## Open a preview
39
+
40
+ Open a resource in the editor and choose **Open Preview**.
41
+
42
+ The editor opens the matching resource page in the local EventCatalog site.
43
+
44
+ ![Editor header with Open Preview action](../images/header.png)
45
+
46
+ ## Fix missing preview links
47
+
48
+ If preview is unavailable:
49
+
50
+ - Check that EventCatalog is running
51
+ - Check the preview port
52
+ - Restart the editor after starting EventCatalog
53
+ - Open the local EventCatalog URL directly to confirm it works
54
+
55
+ Preview is local. It does not publish your changes.
@@ -0,0 +1,43 @@
1
+ ---
2
+ sidebar_position: 10
3
+ sidebar_label: Revert local changes
4
+ title: Revert local editor changes
5
+ description: Discard local catalog edits from the editor changes view.
6
+ ---
7
+
8
+ Use revert when you want to discard local edits before committing them.
9
+
10
+ ## Open the Changes page
11
+
12
+ Choose **Changes** from the editor navigation.
13
+
14
+ The editor shows modified, added, deleted, renamed, and untracked files when Git change tracking is available.
15
+
16
+ ## Revert one file
17
+
18
+ Open a changed file and choose **Revert**.
19
+
20
+ The editor asks for confirmation before it discards the local file change.
21
+
22
+ ![Changes page with revert actions for local edits](../images/change-diff.png)
23
+
24
+ ## Revert a resource group
25
+
26
+ If a resource has multiple changed files, you can revert the group from the Changes page.
27
+
28
+ For example, reverting a message resource might discard changes to both:
29
+
30
+ - `index.mdx`
31
+ - `schema.json`
32
+
33
+ ## What revert does
34
+
35
+ Revert restores modified and deleted files from Git.
36
+
37
+ Untracked files are removed from disk.
38
+
39
+ ::::warning Revert cannot be undone by the editor
40
+
41
+ Only revert files when you are sure you do not need the local edits. If you are unsure, inspect the diff first or commit the work to a temporary branch.
42
+
43
+ ::::