FullStackedpin-a-project.mdEdit

Pin a project

A pin puts a project on your device like an app of its own: an icon with its name, which opens the project in FullStacked. The project still runs inside FullStacked, in its webview, with the same files, sandbox and permissions as when you run it from the shell.

text
pin [-i|--icon <png>] [-n|--name <name>] <link>
pin --list
pin --remove <link>
bash
pin -i ./app-icon.png -n "Dock returns" "fullstacked://open/dock-returns?dock=3"
  • <link> is the project's open link: fullstacked://open/<project>?<params> (built, then run), or fullstacked://run/<project>?<params> for a project that ships built, without its sources (run as built). <project> is its directory in your projects folder. The params reach the project when the pin opens it.
  • -n, --name: the label under the icon. Default: the project's directory name. One line, 100 characters at most.
  • -i, --icon: a square PNG, 512×512 or larger (256×256 at least; a picture that isn't square is centered on a transparent square). Default: a monogram, the name's first letter on a colour of its own. FullStacked makes every size and format the OS asks for.
  • --list shows the pinned projects, --remove unpins one by its link (pin --remove dock-returns works too, when the project has one pin).

A pin is its link. Pinning the same link again replaces its pin, its name and its icon: the icon already on your home screen or desktop follows where the OS lets FullStacked update it. A link with other params is another pin of the same project, with its own icon.

From code, pin with pin() from fullstacked/pin.

What a pin does

Tapping a pin opens a new FullStacked shell window with the pin's link:

  • The project isn't running: FullStacked builds it, runs it and hands it the link.
  • It is running: its window comes to the front and the project gets the new link, with its new params. It isn't started a second time.

Only pinned projects open like this. Any other open link only fills in the command at the shell's prompt, for you to read and run: a link can't start just anything on your device.

Where it shows

Platform What pin creates Notes
Android A home screen shortcut, through the launcher's own Add to Home screen dialog Up to four pinned projects also show on a long press of the FullStacked icon. A pinned project opens as its own card in Recents, with its name and icon. Unpinning greys the icon out: Android doesn't let an app remove it, remove it yourself.
iPhone, iPad An Open <name> shortcut in Shortcuts and Spotlight, and the icon saved to Photos iOS has no way for an app to add a Home Screen icon. In Shortcuts: +, the Open Project action (FullStacked) set to the project, Share, Add to Home Screen, then Image, Choose Photo and the picture FullStacked saved. FullStacked asks for permission to add to Photos the first time (add only, it never reads your photos).
Mac A pin file, <name>.fullstacked-pin, with the project's icon, in a folder you choose once (a Pinned Projects folder in your home folder, for instance) It shows in Spotlight. Drag it, or its folder, to the right side of the Dock. Opening it opens the project in FullStacked: it is a file FullStacked opens, not an app. For an app among the others in the Dock: in Shortcuts, a new shortcut with Open Project and the project, then File, Add to Dock. For the project's icon on it, copy the pin file's in Finder (Get Info, select the icon, ⌘C) and paste it on the new app in your Applications folder (⌘V).
Windows A shortcut on the desktop, and an entry in the Pinned projects list when you right-click FullStacked in Start or the taskbar A project opened from its pin gets its own taskbar button with its icon: right-click it, Pin to taskbar, to open the project from there. The Store version of FullStacked can't write to the Start menu's folder.
Linux A desktop entry in your app grid (~/.local/share/applications/fullstacked-<key>.desktop) and its icons in your icon theme On Wayland (GNOME, for instance), a project opened from its pin gets its own entry in the dock, with its icon.
CLI (npx fullstacked) Nothing pin answers that pinning isn't supported.

pin prints what it did, and on iOS the steps above.

The pinned list

The pins of a device live in its projects folder, in .git/fullstacked/pins/: one folder per project with its pin.json and the icon in every size. Every way of running FullStacked on the device reads the same list, the shell and FullStacked Cloud alike.

A project can only pin the projects in its own folder or under it, like run.

See also