## Sign and install on your developer edition `aancer-pack connector pack` makes the connector pack on your machine: Node.js 20+ and `npm`, no repository, no container. **Step 1: trust your developer key as a developer key (once per installation).** ```bash aancer-pack trust-key --print ``` In the product: **Admin → Extensions** → **Add trust key**. Key id: the `pub-…` id printed. Label: anything. Public key: the PEM block. Tick **Developer key: may sign my own connectors on this development install** (the box shows on a developer edition only). Save. The list tags it "developer key". (`aancer-pack dev` against your developer edition does this for you the first time.) **Step 2: build, pack and sign.** ```bash npm run build aancer-pack connector pack ``` ```text wrote …/dist-pack/dev.my-items-0.1.0.ancpack (dev.my-items 0.1.0, signed by pub-<12 hex>, bytes archive, runtime packages) next: on a developer edition, trust this key as a developer key (aancer-pack trust-key --print), then import … ``` It applies the rules of `connector check` to a fresh `npm ci` of your lock, points the compiled `require("@aancer/connector-framework")` at the runner's framework, drops source files and maps, makes the archive, and writes `dist-pack/manifest.json`, `dist-pack/content/piece.tar` and the signed `dist-pack/-.ancpack`. `publisher.keyId` is always the id of the key it signs with. Options: `--key ` (default `~/.aancer/dev-signing.key`, made on first use), `--out `, `--id ` (default `dev.`), `--publisher `. Exit `0` written, `2` a rule refused or the input is wrong (nothing written). It makes free packs only: a `pack.json` with `"licence": "required"` is refused (licence binding is done by certification). Unlike certification, it does not load the built connector in a locked-down container; the installation loads it when you activate it. **Step 3: verify (and optionally validate).** ```bash aancer-pack verify dist-pack/dev.my-items-0.1.0.ancpack --pubkey ~/.aancer/dev-signing.pub aancer-pack validate dist-pack/dev.my-items-0.1.0.ancpack --remote http://localhost # the installation's checks, nothing stored ``` **Step 4: import and activate.** **Admin → Extensions → Import pack** → choose the file → Import. The summary and the pack card say "Developer key: this development install only" (never "Certified" or "Platform"). Activate. The connector row turns Ready once the automation runner has loaded it (it needs the developer licence). At import the installation runs the build rules again over the archive: the build must record 0 known vulnerabilities and 0 install scripts, no install script in any package of the archive, no `prepare` in the connector's own `package.json`, no native add-on files, permissive licences only. **Before step 5: point it at a real API.** The scaffold's example host `api.example.com` does not exist on the internet. Put your API's host into `pack.json` `egressHosts` (and its address into the connection's Base URL), raise the version and pack again. **Step 5: use it.** **Admin → Connectors → Catalog**: the connector is listed. Enable it (this opens its egress hosts), add a connection with a test account, and call an action from a workflow step, or start a workflow with its trigger. To ship a fix, raise the version in `package.json` and repeat steps 2 to 4: a pack id plus version never changes (`PACK_VERSION_CONFLICT` for different content under a known version). For a faster loop, `aancer-pack dev [dir] --target http://localhost --trust-key-on-target --watch` signs with your developer key, imports and activates on your developer edition, and does it again on every save. ### The same file on any other edition Imported on an installation that is not a developer edition (or a developer edition without the developer licence, or with the key not ticked), the pack is refused with `PACK_SIGNER_NOT_ALLOWED` ("must be signed by the platform publisher"). Nothing is listed. To reach customers, a connector goes through certification. ## Submit for certification Build and test the connector on your own machine. Then submit the source folder through the [AANCER partner programme](https://aancer.ai/partners). AANCER runs the build rules, a security review and the archive checks, builds the archive and signs the pack with the platform key. You get back a `conn.-.ancpack` file that any AANCER installation accepts. ### Install a certified connector pack | Action | UI | API | |---|---|---| | Upload the pack | Admin > Connectivity > Connectors > **Add from files**, or Platform Settings > Extensions > **Import pack** | `POST /api/extensions/packs/import?activate=1` with the raw `.ancpack` bytes (`extensions.manage`) | | Install from the release library | Catalog > **Install** | `POST /api/admin/connectors/install {"ids": [""]}` (`connectors.install`) | | Enable network access | Catalog > **Enable** | `POST /api/admin/connectors/{id}/enable` | | Disable | Catalog > **Disable** | `POST /api/admin/connectors/{id}/disable` | | Uninstall | Catalog > **Uninstall** | `POST /api/admin/connectors/uninstall {"ids": [...]}` | | Browse | Admin > Connectivity > Connectors | `GET /api/admin/connectors/browse` (`connectors.view`) | An installed connector is usable about 90 seconds later. No restart is needed. Then create a connection, and use the connector in a workflow, an agent or chat. ## Stability `STABILITY.md` in the framework package says what you can rely on: - A connector pack records the framework `major.minor` it was built against, and an installation loads it only when that equals its runner's; otherwise `PACK_FRAMEWORK_MISMATCH`. A different patch version always loads. - Deprecated exports keep working until a new framework line removes them; removals are named in the release notes. ## Common errors | Code | Message | Fix | |---|---|---| | `PACK_SIGNER_NOT_ALLOWED` | Connector packs must be signed by the platform key. This pack was signed by another key. | Outside the developer edition: submit the connector for certification. On the developer edition: add your key under Extensions > Trust keys with **developer key** ticked, and check the developer licence | | `PACK_FRAMEWORK_MISMATCH` | | Rebuild against the framework of the installation's runner | | `PACK_SCHEMA_INVALID` | `/egressHosts/0: a bare '*' is not allowed; name the hosts` | List the real hosts | | `PACK_SCHEMA_INVALID` | `/egressHosts/0: must be a hostname (optionally *.domain and :port)` | No scheme or path, just the host | | `PACK_SCHEMA_INVALID` | `/items: a connector pack carries no other kinds` | Put other items in a separate pack | | `PACK_CONTENT_FORBIDDEN` | The connector archive contains forbidden content: ... native addon (*.node) | Remove native dependencies | | `PACK_PIECE_NAME_TAKEN` | A connector named ... is already installed on this platform. | Choose a unique connector name | | `PACK_VERSION_CONFLICT` | Pack ... is already imported with different content. Bump the version. | Raise `version` in `package.json` | | `PACK_LICENCE_REQUIRED` | This connector pack needs an active licence. | Activate the licence first | | `PACK_LICENCE_MISMATCH` | This connector pack was issued for a different licence. | Request a pack issued for this installation | | `CONNECTOR_NOT_INSTALLED` | Install this connector first, then enable it. | | | `CONNECTOR_LICENCE_REQUIRED` | This connector is not part of your licence. | | | `CREDENTIAL_REQUIRED` | Add the provider API key first. | Configure the connector | | `EXTENSION_REFERENCED` | Enabled flows use this connector: ... | Disable those workflows first | | Validation | A connector must declare at least one allowed egress host before it can be enabled. | Add `egressHosts` or `egressFromConnection` | ## Limits and editions - One connector per pack. Archive at most 96 MiB, unzipped at most 128 MiB. - Connectors are installation-wide. There is no per-workspace install. - Connector packs for customers are signed by AANCER through certification. Partners submit them. On the developer edition you sign your own. - Some catalog connectors are licensed and can be installed but not enabled without the matching licence feature. Paid partner connectors are bound to one customer licence. - Check your edition on [aancer.ai/pricing](https://aancer.ai/pricing). --- Source: https://aancer.ai/developers-dashboards --- title: Dashboards, datasets and models | AANCER Developers description: Build AANCER dashboards as data: datasets, semantic models, widgets with declarative charts, KPIs, tables and forms, and dashboard layouts. --- ## Dashboards An AANCER dashboard is data, not code. It is built from four object kinds that stack: 1. a **dataset**: a typed table stored in the installation; 2. a **model**: the semantic layer with entities, dimensions, measures, named filters, variables and joins; 3. a **widget**: a table, a chart, a KPI, Markdown text or a form, bound to a model query; 4. a **dashboard**: a 12-column grid of widgets plus global filters. Charts are declarative chart specifications (JSON) without data: the platform runs the query and injects the result. Dashboards are versioned. You save a draft, then publish version N, with rollback and retire. You can build them in the UI under **Work > Dashboards**, through the REST API, or ship them in a signed pack with items of kind `dataset`, `model`, `widget` and `dashboard`. Every published dashboard also gets a 2D and 3D view switch, which needs no authoring. ## Quick start One dataset, one model, one chart, one dashboard, as pack item specs. ```json { "id": "sales_orders", "title": "Sales orders", "columns": [ { "id": "date", "type": "date", "required": true }, { "id": "region", "type": "string", "required": true }, { "id": "amount", "type": "number", "min": 0 } ], "retention": { "maxAgeDays": 730 } } ``` ```json { "id": "sales", "entities": { "orders": { "dataset": "sales_orders" } }, "dimensions": { "region": { "entity": "orders", "column": "region", "label": "Region" } }, "measures": { "revenue": { "entity": "orders", "agg": "sum", "column": "amount", "label": "Revenue", "format": "currency" } } } ``` ```json { "id": "revenue_by_region", "type": "chart", "title": "Revenue by region", "source": { "model": "sales", "query": { "measures": ["revenue"], "dimensions": ["region"] } }, "chart": { "mark": "bar", "encoding": { "x": { "field": "region", "type": "nominal" }, "y": { "field": "revenue", "type": "quantitative" } } } } ``` ```json { "id": "sales-overview", "title": "Sales overview", "icon": "BarChart3", "layout": [ { "widget": "revenue_by_region", "x": 0, "y": 0, "w": 12, "h": 8 } ] } ``` ## File layout ```text acme-sales-dashboard/ manifest.json # items: dataset, model, widget(s), dashboard content/ dataset.sales_orders.json model.sales.json widget.revenue_by_region.json dashboard.sales-overview.json ``` Each item uses `"schemaVersion": 1` and `"scope": "workspace"` with `"workspace": "{{param.target_workspace}}"`. Declare `target_workspace` as a `workspace` pack parameter. Next part: https://aancer.ai/dev/parts/pages/13-field-reference.md