Integrations
An integration writes the settings that a task needs for one service into your task.yaml, with one command. You see every change before it is written.
1 · What an integration is
An integration is one npm package, @ignitify-integrations/<name>. It lists the settings that a task needs for one service: secret names, egress hosts, the network type, system packages and the smallest preset. Some integrations also have code that you import. They work with Node tasks.
- task.yaml stays the one truth. The platform enforces only
task.yaml, as today. It never reads the settings list of an integration. - package.json is the record. Your task's own dependency list shows which integrations it has.
task.yamlgets no new field. - It is an option. You can always write the same settings by hand, and add any library or system package that you want.
2 · Add one to a task
integration:add shows a plan and asks before it changes anything.
ignitify integration:add <name> --task <slug> [--yes | --dry-run] [--dir <base-dir>]- It downloads the latest version of the package into a temporary folder. Nothing in the task changes.
- It shows the plan: each setting it adds or raises, and what you must add yourself.
- It asks
Apply? [y/N].--dry-runstops after the plan.--yesskips the question. - Only after a yes, it installs that exact version as a normal dependency, with no install scripts, and writes
task.yaml. Your comments and the order of your keys stay.
The plan for stream on a task with no network and no preset:
$ ignitify integration:add stream --task live@ignitify-integrations/stream@0.1.3 · settings + code · runs ffmpeg execution.network.type: none -> bidirectional run.preset: (default) -> std.medium + execution: duration long, interaction continuous + execution.network: inbound_port 8080 + execution.network.inbound_routes: /live/ + build.system_packages: ffmpegyou add: egress host: the host of an https source (for example raw.githubusercontent.com); none for a local fileApply? [y/N]
- A conflict is refused, never overwritten. If your
task.yamlhas a value that the integration cannot use, the command stops and tells you which one. You change it by hand, or you use another task. - Settings are only raised. The network type and the preset go up, never down. Lists such as secrets and system packages are joined.
- "you add" is yours. A host that is different for each user, such as your bucket host, is not written for you. Add it to
execution.network.egress_allowyourself. - The task needs a package.json.
task:createwrites one for a Node task. A task folder with nopackage.jsonis refused before npm runs. - Without a terminal, use
--yesor--dry-run, or the command refuses before npm runs.
3 · Check a task before you deploy
task:validate checks that task.yaml still covers every integration that the task has.
- If
package.jsonlists an integration that is not innode_modules, it tells you to runnpm installand checks nothing else. - It reports each setting that
task.yamlno longer covers, for example a secret name that someone deleted or a preset that is too small. It cannot check the hosts that you add yourself. - It warns when an installed version is obsolete and names the latest one. For this it sends the package names to the public npm registry (
registry.npmjs.org). With no network it skips this warning and tells you so. The warning does not change the exit code.
4 · Upgrade or remove
To upgrade, run integration:add again. It installs the latest version and shows only the new settings. Adding the same version again changes nothing.
To remove an integration, run npm uninstall @ignitify-integrations/<name> in the task folder. The settings it wrote stay in task.yaml: delete the ones that you no longer need.
5 · The first integrations
Two integrations come first. Each one does the work that every task of that type repeats.
| Integration | Type | What you no longer build | Status |
|---|---|---|---|
s3-storage | Settings + code | Upload a file to an S3-compatible bucket and return a download link. Use it for a result that is too big to return. | Available |
stream | Settings + code, runs ffmpeg | Serve a live HLS stream that viewers open in a browser. It runs the server, the player page, the viewer link and the progress, and stops on cancel. | Available |
Each integration has a README with its settings and code. Read them in the public integrations repository: s3-storage and stream. All integrations are in the integration catalog.
6 · What runs where
- The code of an integration runs only in your task's VM, with the secrets and hosts of that task. The build installs it from your lockfile, the same as any other dependency.
- The plan shows every change before it is written, and your lockfile pins the exact version.
- An integration cannot ask for a wildcard host, so
--yesin a script cannot open egress to a whole domain.
7 · Try it
The tutorial Launch event uses both integrations in one task: stream a video live, and keep the recording in your own bucket.