Links and params
A pin is a link with an icon. This page is for power users: the link format, how a project reads its params, and where each OS lets you edit a pin's link.
The open link
fullstacked://open/<project>?<params>
fullstacked://run/<project>?<params>The first word says how the project starts:
openbuilds the project from its sources, then runs it:fullstacked -l <link> <project>. For a project you work on. The build uses the plugins of the project'sbuildscript (elsestart) inpackage.json, read without running it: a singlefullstackedcommand (npx fullstackedtoo) whose only flags are-b/--buildand-p/--plugin, every plugin an@fullstacked/*package, with at most.as argument."build": "npx fullstacked --build -p @fullstacked/tailwindcss ."builds withfullstacked -p @fullstacked/tailwindcss -l <link> <project>; any other script builds without plugins, with a warning in the console.runruns what is built already, without a build:run -l <link> <project>. For a project that ships built, without its sources (a release, the FullStacked Cloud client). A project whose sources changed since its last build runs the old build: useopenfor it.
The rest is the same for both:
<project>is the project's directory in the projects folder, URL-encoded:dock-returns,tools/dock%20returns. Its segments are separated by/(or%2F).<params>is any query string. FullStacked doesn't read it: it is the project's.fullstacked:///open/…(three slashes) andfullstacked:open/…are the same link (runtoo). FullStacked writes the three-slash form.
A link whose project climbs out of the projects folder (..), is an absolute path, a drive (C:), or has backslashes or a NUL is refused.
Opening a link opens a new main window (the shell, or the FullStacked Cloud client in its place), which does the rest:
| The project | What happens |
|---|---|
| Pinned, not running | Built (open only), run, and handed the link |
| Pinned, running | Its window comes to the front and it gets the link, once |
| Not pinned, or not found | The shell fills in fullstacked -l '<link>' <project> (run -l … for a run link) at the prompt: nothing runs until you press Enter |
A pin matches on the project, whatever its params: a link with other params than the pin's still opens it. Only the project gets the link. Other running projects never see it.
Reading params in a project
A project receives its links through a deeplink plugin. Register it when the project starts: a link that arrives before (the one that started the project) waits in the core until it does.
import plugin from "fullstacked/plugin";
function applyParams(url: string) {
const params = new URL(url).searchParams;
showDock(params.get("dock"));
}
await plugin.register("deeplink", {
callback: applyParams
});The same callback runs again when the pin is tapped while the project is open, with the pin's current link: a pin edited with new params reaches the project without a restart.
Editing a pin's link
A pin is its link: pinning the same link again replaces its pin, and the icon follows. A link with other params is another pin of the same project, for a project opened more than one way (FullStacked Cloud under each of your sign-in authorities, for instance). To change a pin's params, pin the new link and unpin the old one (pin --remove <old link>).
Each OS also lets you edit the link where the pin lives:
| Platform | Where |
|---|---|
| iPhone, iPad, Mac | Shortcuts: duplicate Open <name> and set its Link query field (x=2), the query that replaces the pin's |
| Android | Tasker, an NFC tag or any automation app that opens a URL: open the link |
| Windows | Right-click the desktop shortcut, Properties, Web Document, URL |
| Linux | The Exec line of ~/.local/share/applications/fullstacked-<key>.desktop |
| Mac | The pin file: right-click it, Open With, TextEdit, and change its URL |
Opening a link by hand
| Platform | Command |
|---|---|
| Mac | open 'fullstacked:///open/demo?x=1' |
| Windows | start fullstacked:///open/demo?x=1 (cmd) or Start-Process 'fullstacked:///open/demo?x=1' |
| Linux | xdg-open 'fullstacked:///open/demo?x=1' |
| Android | adb shell am start -a android.intent.action.VIEW -d 'fullstacked:///open/demo?x=1' |
| iPhone, iPad | Safari's address bar, or a link in Notes |
| Shell | fullstacked -l 'fullstacked:///open/demo?x=1' demo builds and runs the project with the link; run -l 'fullstacked:///run/demo?x=1' demo runs it as built |
Other links
The FullStacked app's shell also handles fullstacked:///command/<url-encoded command>: it puts the command at the prompt, and runs it directly only when it is a single exec signed by FullStacked Cloud.
Which window gets a link
A link from the OS goes to one main window, never to every project: the one whose deeplink plugin claims it, else the window focused last that allows it, else a new window (deeplink plugins). A project gets a link only from the window that runs it. With several FullStacked Cloud windows open, one per sign-in authority, a pin goes to the window of its authority.