refern.
Extensions

Publish to the extension directory

List a refern extension in the directory at refern.app/extensions: requirements, listing images, refern-cli plugin submit, the checks, how updates reach users, and how blocks and removals work.

The refern extension directory lists extensions that people install into refern with one click. You list an extension with one pull request to refern-labs/refern-extensions. After that, each new GitHub release of your extension reaches users without another pull request.

How it works:

  • Your entry is a pointer to a GitHub release of your extension, with the SHA-256 and size of the .refernplugin file. The package is deterministic, so the hash names exactly one build.
  • Automated checks decide. Nobody reads your code: refern runs every extension in a sandbox with the permissions it declares, and the checks make sure the package asks for exactly the permissions in your entry.
  • When the pull request merges, refern copies the package, its README and your listing images to dl.refern.app. The app and the site download only from there, so a deleted repository never breaks an install.
  • The app reads the directory index at start and every 24 hours. It shows updates and turns off blocked extensions.

Read the developer policy before you submit.

Before you submit

  • The source is in a public GitHub repository with an OSI-approved license that GitHub detects (a LICENSE file).
  • The package has a README.md. The directory shows it on your listing. refern-cli plugin pack adds the README.md next to manifest.json.
  • manifest.json has author, description and minAppVersion. Your listing takes the name, author, description, homepage and fundingUrl from the manifest, so they always match the package.
  • The ID is under your own name, such as yourname.my-extension. IDs under refern. are reserved. An ID or a name one edit away from a listed one is refused.
  • A name uses "refern" only as "... for refern" at its end.
  • The extension is free. A funding link (fundingUrl) is fine. If it needs a paid account of another service, set payment to needs-paid-service.

Listing images

Put them in a folder (by default listing/ in your project) and refern-cli plugin submit copies them into your registry folder.

FileSizeRules
icon.png256 x 256 pixelsPNG, at most 500 KB.
screenshot-1.png to screenshot-6.png1600 x 1000 pixels1 to 6 images, numbered from 1 with no gap. PNG, WebP (.webp) or JPEG (.jpg). Each at most 500 KB.

The images must show your extension in use in refern. They must be safe for work, also for an extension that works with NSFW items. Do not show other companies' logos as if they endorse you, prices, or ads. A maintainer looks at the images of a new listing once. refern serves the images from its own host, never from your server.

Submit

  1. Publish a GitHub release with your package. The starter templates have a workflow (.github/workflows/release.yml) that does this when you push a version tag:

     git tag v1.0.0 # the "version" in manifest.json, with a "v" git push origin v1.0.0 

    Without the workflow, run refern-cli plugin pack . and attach the file <id>-<version>.refernplugin to a release yourself. Do not mark the release as a draft or a prerelease.

  2. Fork refern-labs/refern-extensions and clone your fork.

  3. In your extension's folder, run:

     npx @refern/cli plugin submit . \ --registry ../refern-extensions/registry \ --release yourname/my-extension@v1.0.0 \ --category productivity --tag shortcuts 

    It reads the release from GitHub, downloads the package, writes registry/<id>/entry.json, copies the images, runs the checks and prints the next steps. It changes nothing on GitHub. Options: --category (1 to 3 of import, export, search, tagging, metadata, canvas, viewer, productivity, themes, formats, other), --tag (up to 8 lowercase words), --license (an SPDX ID; the default is the license in package.json), --payment, --support-url (the default is your issue tracker), --owner (more GitHub logins that may change the entry), --listing (the image folder) and --index (the directory's index.json, a file or https://dl.refern.app/plugins/index.json: the checks then also fail a name within one letter of a listed extension's name, ignoring case, spaces, dots, dashes and underscores).

  4. Commit the folder, push, and open the pull request. Fill in the template: you agree to the developer policy, grant refern the right to distribute the package and the images, and say what the extension sends off the device.

Change only registry/<your-id>/, one extension per pull request. You can also write the folder by hand; entry.schema.json and the registry README describe each key.

To repeat the checks at any time, run this in your clone of the registry:

 npx @refern/cli plugin check-entry registry/ < your-i d > 

The checks

The Validate workflow runs on every pull request and writes a summary that says what to fix. It fails when:

  • the pull request changes a file outside registry/<your-id>/;
  • you are not the owner of the repository and not in owners;
  • the asset is not a published release asset of the repository in repo;
  • the package is not the pinned file (SHA-256 and size), or its manifest is not valid in strict mode;
  • the package holds an unsafe path, misses a file the manifest names, has a decoder that imports anything, has a page that loads anything from outside the package, or has a theme with text below a 4.5:1 contrast;
  • the package asks for other permissions than permissions in the entry;
  • the ID or the name breaks the rules above, or the ID was removed before;
  • the version is not higher than the listed one;
  • the license is not OSI-approved, or not the license GitHub detects;
  • the package has no README.md, or an image has the wrong size or format.

Some changes also wait for a maintainer, who approves them with the label maintainer-approved:

  • a new listing: a maintainer looks at it once for spam and misleading text, usually within 7 days;
  • a permission increase: a new scope, network host or managed tool, or includeNsfw;
  • an ownership change: another repo or other owners.

A push after the approval removes the label, so a maintainer looks at the new commits and adds it again.

Where people find it

Your listing is on refern.app/extensions and in the app, on the Extensions page under Available, where people search, sort and install without a browser. Both show two numbers, each only from 5 on:

  • installs: first installs by the app. Updates and website downloads do not count. A built-in extension shows none.
  • likes: people signed in to a refern account who chose Recommend on the installed extension. One per account; a second click takes it back. The app never asks anyone to recommend.

Updates

After your first listing, you only publish releases.

  1. Raise version in manifest.json and publish a GitHub release with the asset <id>-<version>.refernplugin (push a tag with the template workflow). Release notes go into the directory, at most 2000 characters.
  2. Within 3 hours the registry finds the release and opens a pull request that updates your entry.
  3. It merges on its own when the checks pass, the permissions did not grow and the release is in your repository. Otherwise it waits for a maintainer.
  4. On merge, the new version goes to dl.refern.app and into the index. Apps see it at their next index read (at start, then every 24 hours) and update. The app installs a download only when its size and SHA-256 are the index's, checked before it unpacks anything. An update that asks for nothing new installs on its own, unless the user turned off Update extensions automatically on the Extensions page. One that asks for a new scope, network host or managed tool, or for includeNsfw, waits until the user confirms the new permissions.

Every version passes the same checks as the first. To change only the listing (categories, tags, images, owners), open a pull request yourself and keep the same version.

Blocks and removals

refern can act on a listed extension in two ways. Both are public records in the registry.

  • Block: an entry in registry/kill-list.json for the ID, some versions or some package hashes, with a reason and a date. An app turns a blocked extension off at its next index read: at start, or within 24 hours while it runs. If a newer version is not blocked, the app can update to it.
  • Removal: the listing moves to registry/removed.json with a reason and a date, and its folder is deleted. The ID is never listed again. Installed copies keep working unless the extension is also blocked.

Reports come through the report link on each listing and in the app. Response times:

ReportResponse
Malicious code, stolen data or a hijacked releaseThe same day: the version is blocked first, then the report is checked.
Other reports (impersonation, copyright, adult content, spam)Within 7 days.

refern tells the owners in the registry pull request or by an issue in your repository. To appeal a block or a removal, email refern at the address on the contact page, with the ID and what changed.

Security model

How refern isolates the three extension tiers: validated theme data, sandboxed app frames with host-mediated network, and fuel-limited WebAssembly decoders with no imports.

Extension developer policy

The rules for extensions in the refern directory: public source, OSI licenses, no paid extensions, names and IDs, content, privacy, abandoned extensions, ownership transfer and enforcement.

On this page

Before you submitListing imagesSubmitThe checksWhere people find itUpdatesBlocks and removals