npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

folyn-extension-sdk

v0.2.0

Published

Folyn Extension SDK — manifest schema, contribution points, contracts, and dev helpers. Type-only at runtime; publishable to npm.

Downloads

327

Readme

folyn-extension-sdk

Folyn Extension SDK — the public type surface extension authors program against. Publishable to npm; no runtime.

What's in here

  • Manifest schema — ExtensionManifest, ExtensionPermissions, ExtensionTier.
  • Contribution points — CommandContribution, FileTypeContribution, ContainerContribution, FeatureContribution, ToolContribution, ExporterContribution, FileTemplateContribution, KeybindingContribution, ExportEnhancerContribution.
  • Extension module contract — ExtensionModule (the export shape of a trusted extension's ESM bundle).
  • Lifecycle context — ExtensionContext with addDisposable, optional ai capability, optional env capability (host theme + locale).
  • Dev helpers — defineExtension, validateManifest, disposable.

The SDK is type-only at runtime — React appears as a peer type, erased at build. So this package has no production runtime dependency; the published tarball is just .d.ts + a tiny ESM barrel.

Install

Published on npm as folyn-extension-sdk.

npm install folyn-extension-sdk
# or
pnpm add folyn-extension-sdk
# or
yarn add folyn-extension-sdk

react is a peer dependency (^18.0.0) — install it yourself if your extension uses React types.

Quick start

import type { ExtensionManifest } from 'folyn-extension-sdk';
import { defineExtension, validateManifest } from 'folyn-extension-sdk';

const manifest: ExtensionManifest = {
  id: 'my-extension',
  name: 'My Extension',
  version: '0.1.0',
  tier: 'trusted',
  main: 'index.js',
};

validateManifest(manifest);

For the full extension authoring guide (manifest schema, contribution points, permissions, two execution tiers, sandbox RPC protocol, host environment capability), see docs/extension-development.md (bundled in this package, also in the source repo).

Two execution tiers

  • sandbox — untrusted extension in a sandboxed iframe (folyn-extension:// origin), talks to the host via a vetted postMessage RPC. No raw Tauri APIs.
  • trusted — TOFU-pinned extension import()-ed into the host realm; may contribute inline React/CodeMirror components and receive scoped Tauri capability grants.

See ExtensionTier in types.ts and the "Two execution tiers" section of the extension development guide for the trade-offs.

License

Same as the Folyn project (see the source repo).