Ever platform integration
Ever Connect federates a Gauzy installation with Ever Platform. Ever Instance supplies the shared installation identity, while Ever Connect manages the connection, organization links, consented integrations, signed metadata, and event-driven updates. The integration is optional and stays idle until it is enabled and connected.
This page is a child of Collaboration suite. For the wider plugin model and real-time work flows, see Collaboration plugins and realtime workflows, Plugin architecture, Jira integration, and Task automation.
System boundary
Ever Instance and Ever Connect roles
packages/…/ever-instance.module.ts defines the shared installation identity used by Ever Platform features. It has no route, timer, or outbound request. It gives other plugins one stable installation record and the operator rules needed to protect installation-wide actions.
Ever Connect is the active federation layer. It uses that identity to connect to Ever Platform, link Gauzy organizations to Ever organizations, exchange signed documents and events, and expose the result through API and UI plugins. When EVER_CONNECT_ENABLED is not exactly true, its routes and background work are not active.
References: packages/…/ever-instance.module.ts• L6-13 packages/…/ever-connect.module.ts• L95-107 packages/…/README.md• L5-19
Installation identity
Shared installation record
Ever Instance keeps one identity for all API processes that use the same database. The identity includes the installation id and separate signing identities for anonymous statistics and the Ever Platform connection. This lets connected services recognize one installation without exposing private keys to the rest of Gauzy.
The connection key is protected by the installation secrets. If those secrets change and the key cannot be read, Ever Connect fails closed. The operator must disconnect and connect again before the installation can send new connection requests.
References: packages/…/ever-instance.entity.ts• L5-19 packages/…/ever-instance.service.ts• L58-99 packages/…/ever-instance.service.ts• L125-186
Connection lifecycle
Instance connection and organization links
The operator connects the installation with a code from app.ever.co. Ever Connect verifies Ever Platform signing keys before redeeming the code, then stores the connection only after the returned identity and entitlement data pass verification. The code may also link the operator's current Gauzy organization during the same action.
After connection, an organization administrator can link one Gauzy organization to one Ever organization with a link code. Ever Connect verifies the link's entitlement before it stores the link. Unlinking stops the link locally and asks Ever Platform to remove its side when the service is reachable.
The main connection flow is:
sequenceDiagram
participant O as Installation operator
participant G as Gauzy
participant E as Ever Platform
participant A as Organization administrator
O->>G: Submit connect code
G->>E: Verify keys and redeem code
E-->>G: Connection identity and entitlement
G-->>O: Connected or waiting for approval
A->>G: Submit organization link code
G->>E: Create tenant link
E-->>G: Link and signed entitlement
G-->>A: Linked organization
References: packages/…/ever-connect-connection.service.ts• L112-121 packages/…/ever-connect-connection.service.ts• L190-204 packages/…/ever-connect-connection.service.ts• L208-280 packages/…/ever-connect-link.service.ts• L64-69 packages/…/ever-connect-link.service.ts• L105-171
Authorization model
Operators, administrators, and consent owners
The operator controls installation-wide connection actions. On a self-hosted installation, Gauzy identifies that operator through configured user ids or verified operator email rules. A single-tenant installation can use its pinned first super admin when no explicit list exists. On Ever Cloud, only super admins listed by user id in the cloud operator setting can operate the connection.
Organization administrators use Gauzy's existing integration permissions to manage their organization's link and integration view. Consent is split across two actors: an owner or administrator of the linked Ever organization consents in app.ever.co, and the Gauzy operator accepts installation-wide integrations in Gauzy. Gauzy does not enable an integration by itself.
References: packages/…/ever-operator.service.ts• L29-49 packages/…/ever-connect-operator.service.ts• L11-37 packages/…/ever-connect.controller.ts• L64-73 packages/…/ever-connect-instance.controller.ts• L45-57 packages/…/README.md• L25-34
Federated state
Integration state and entitlements
Ever Platform is the source of consent state. Ever Connect reads that state and applies the local effect only for integrations supported by this Gauzy release. A local disable takes effect first, even when Ever Platform is unreachable. A policy or environment deny can block an integration for every linked organization.
The state model separates consent, local availability, policy, and entitlement. An integration can therefore be consented remotely but waiting for operator approval, denied by local policy, unavailable in this release, or paused because its signed entitlement is no longer usable. Entitlement expiry has a grace period for Ever features; it does not disable unrelated Gauzy features.
Supported integration families include the installation address, anonymous statistics linking, Sign in with Ever ID, contact lookup, and organization discoverability. Other catalog entries remain informational until Gauzy registers a handler for them.
References: packages/…/ever-connect-integration-state.service.ts• L160-175 packages/…/ever-connect-integration-state.service.ts• L237-276 packages/…/integration-definitions.ts• L5-19 packages/…/integration-definitions.ts• L45-64 packages/…/README.md• L78-91
Event feed
Heartbeats and feed delivery
While connected, one API process holds the Ever Connect lease and performs the heartbeat and event-feed work. The heartbeat reports the Gauzy version and local deny policy and refreshes keys, entitlements, and pending local effects. The feed uses long polling by default or a slower interval mode.
Each feed page is dispatched before its cursor is stored and acknowledged. This ordering lets a failed handler cause the page to be read again. Event handlers are designed to make repeats safe. Consent and entitlement events refresh local state, link events update organization status, and connection events can approve, revoke, or stop the connection.
The event path is:
flowchart LR
E[Ever Platform event feed] --> L[Lease holder]
L --> D[Dispatch by event type]
D --> S[Update state, links, entitlements, or memberships]
S --> C[Store cursor]
C --> A[Acknowledge cursor]
D --> R[Failure]
R --> P[Read page again]
References: packages/…/ever-connect-scheduler.service.ts• L47-64 packages/…/ever-connect-scheduler.service.ts• L194-226 packages/…/ever-connect-scheduler.service.ts• L242-315 packages/…/ever-connect-scheduler.service.ts• L364-431
Membership synchronization
Ever roles and Gauzy membership
Membership synchronization is an optional feed handler. It requires the membership switch and the Ever ID sign-in plugin. When enabled, Ever organization membership events update the Gauzy organization represented by the matching live tenant link.
The handler matches a person through a proven Ever ID link. It does not create users and does not change the tenant owner's SUPER_ADMIN role. Ever owners and admins can grant Gauzy ADMIN; a member can restore the role that the sync replaced. Direct Gauzy role changes remain protected from automatic removal. Each applied change is ordered and recorded so duplicate or old events do not repeat work.
If the feed reports that its history is no longer available, or after a process starts, the integration reads the current members again. The resync uses the same role rules and removes only membership changes that the sync itself owns. A database failure rolls back both the Gauzy change and its audit record.
References: packages/…/membership-sync.handler.ts• L163-197 packages/…/membership-sync.handler.ts• L263-306 packages/…/membership-resync.ts• L5-23 packages/…/ever-connect-scheduler.service.ts• L271-297
Discovery metadata
Public address and partner discovery
The installation address is an opt-in integration. After Ever consent and operator acceptance, the operator enters the public HTTPS address in Gauzy. Ever Connect reports that address and briefly serves a signed /.well-known/ever-connect statement so Ever Platform can prove that the installation answers there. Gauzy never guesses this address from its own server settings.
Organization discovery uses privacy-preserving metadata. Contact lookup sends hashes of normalized identifiers rather than the contact values. Organization discoverability sends a salted hash of the organization's tax id. Both features require remote consent and the matching entitlement. The UI presents results or profile handles, but does not write them into Gauzy contacts.
References: packages/…/ever-connect-instance.controller.ts• L208-234 packages/…/ever-connect-well-known.service.ts• L15-24 packages/…/ever-connect-well-known.service.ts• L66-109 packages/…/public-address.ts• L1-40 packages/…/README.md• L93-112
Configuration UI
Operator and organization views
The Ever Connect UI adds Integrations > Ever Platform. It asks the API first, so an installation without the server plugin shows an unavailable state and makes no further Ever request. The page separates installation control from organization control:
- Connection shows connection status, approval checks, key replacement, linked organizations, installation-wide approvals, policy, address reporting, and disconnect for the operator.
- Organization link lets an authorized organization administrator add or remove the Ever organization link.
- Integrations & data shows consent state, scope, policy, entitlement gates, consent links, and disable actions. Consent still happens in
app.ever.co. - Entitlements and Audit show the verified service limits and the recorded connection and integration history.
The Settings menu entry is added only after the operator-only probe succeeds. The contact page receives Check on Ever Platform through a UI extension slot. The browser calls Gauzy, and Gauzy performs the hash and Ever Platform exchange.
References: packages/…/ever-connect-ui.plugin.ts• L41-59 packages/…/ever-connect-ui.plugin.ts• L73-112 packages/…/ever-platform-page.component.ts• L33-50 packages/…/ever-platform-menu.service.ts• L18-52 packages/…/check-on-ever-platform-button.component.ts• L58-67
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the server plugin switch, route guards, scheduler activation, and UI unavailable state aligned.
- Keep operator rules aligned between self-hosted and Ever Cloud connection controls and the menu probe.
- Keep consent scope, integration availability, entitlement requirements, and UI state labels aligned.
- Keep feed event types, cursor acknowledgement order, membership role rules, resync behavior, and audit state aligned.
- Keep the public-address validation, reported URL, well-known statement, and discovery metadata contract aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
EVER_CONNECT_ENABLED is not exactly true | Ever Connect routes return 404 and no background request runs | The module and UI check availability before doing work |
| Connection key material is missing or unreadable | Connect or heartbeat work stops; the installation cannot send | Require valid secret material and reconnect after secret changes |
| Remote consent or required operator approval is absent | The integration stays pending or disabled and moves no data | Read remote state and require the correct consent owner and operator action |
| An entitlement expires beyond its grace period | Ever-specific features for that scope pause | Verify and refresh signed entitlement documents |
The feed returns resync_required | Incremental membership history is incomplete | Resync current members before advancing the feed cursor |
| A membership event has no unique linked Gauzy user | No membership or role change occurs | Match one proven Ever ID link and never create a user from the event |
Key files
| File | Why to read it |
|---|---|
| packages/…/ever-instance.module.ts | Defines the shared installation identity boundary. |
| packages/…/ever-instance.service.ts | Explains the identity and signing capabilities shared by Ever plugins. |
| packages/…/ever-connect.module.ts | Shows which server capabilities are registered and which optional features are gated. |
| packages/…/ever-connect-connection.service.ts | Shows the connection and approval lifecycle. |
| packages/…/ever-connect-integration-state.service.ts | Shows how remote consent becomes local integration state. |
| packages/…/ever-connect-link.service.ts | Shows the Gauzy organization to Ever organization boundary. |
| packages/…/ever-connect-scheduler.service.ts | Shows heartbeat, feed, lease, dispatch, and cursor ownership. |
| packages/…/membership-sync.handler.ts | Shows the safety rules for Ever roles in Gauzy. |
| packages/…/ever-connect-well-known.service.ts | Shows the signed discovery statement for the installation address. |
| packages/…/ever-connect.controller.ts | Shows organization-facing API permissions and integration actions. |
| packages/…/ever-connect-instance.controller.ts | Shows operator-only connection and installation controls. |
| packages/…/ever-connect-ui.plugin.ts | Shows routes, extensions, menu behavior, and plugin registration. |
| packages/…/ever-platform-page.component.ts | Shows the configuration page model and its user-facing areas. |
| packages/…/README.md | Gives the product-level contract, switches, outbound actions, and privacy boundaries. |