Skip to content

Packages

SteffenBlake edited this page Nov 22, 2026 · 1 revision

Packages

Packages let you use another author's filters, stylesheets, and variable files from a Git repository.

Install Git and make it available in your terminal before restoring packages.

Declaring a Package

Add an import statement at the top level of your entrypoint:

import theme from "https://github.com/YourName/YourFilter.git";

theme is the alias you'll use to reference this package.

Package declarations belong in the selected entrypoint. Declare the packages needed by your imported filters there too.

Using Package Files

Use @alias/ followed by the path inside the repository:

using @theme/styles/main.fss;

You can use .filterx, .fss, and .json files this way, following the same file-type rules as local imports.

Paths inside a package must stay within that package's directory.

Restoring Packages

Run PoeFilterX: Restore Packages in VS Code, or poefilterx restore in your project directory.

Building from VS Code or the command line also restores packages.

The first restore records each package's commit in a lockfile beside the entrypoint. For entrypoint.filterx, the filename is entrypoint.filterx.lock.json.

Keep this lockfile with your project so subsequent restores use the same package versions.

Updating Packages

Run poefilterx restore --update to refresh packages whose declarations follow the repository's HEAD.

Pinning a Version

Add at followed by a full Git commit ID to select a particular version:

import theme from "https://github.com/YourName/YourFilter.git" at "0123456789abcdef0123456789abcdef01234567";

Replace the example commit with the full commit ID you want to use.

Explicitly pinned packages keep their selected commits when you run restore --update.

Building with Saved Versions

Use poefilterx build --locked to require a lockfile matching your package declarations.

Use poefilterx build --no-restore to build with packages already present in the local cache.

Clone this wiki locally