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

@verql/plugin-sdk

v0.11.0

Published

Public SDK for building Verql plugins — types, helpers, and the capability model third-party plugin authors code against.

Readme

Verql Plugin SDK (@verql/plugin-sdk)

The public package third-party developers install to build a Verql plugin. It ships the types, pure helpers, and the capability model a plugin codes against — everything you need to author a driver, exporter, theme, AI provider, panel, or tool without a checkout of the Verql repo.

npm install @verql/plugin-sdk
# or: pnpm add @verql/plugin-sdk
  • New to plugins? Start with the getting-started guide for a minimal end-to-end plugin.
  • Reference for every contribution surface (driver, exporter, importer, formatter, type mapper, theme, panel, command, AI provider, tool, …) lives in the plugin guide. That doc is the canonical catalogue; this package is how you consume those surfaces from outside the repo.
  • Security & permissions: read the plugin security model before you reach for keyring, connections, or ipc.

What's in the package

| Export group | Examples | Notes | |--------------|----------|-------| | Types | PluginContext, DriverFactory, DbAdapter, Tool, ConnectionField, RegisteredTheme, … | The full type surface a plugin codes against. Erased at runtime. | | Authoring | definePlugin, PluginModule | Typed identity helper that pins your manifest + activate/deactivate shape. | | SQL helpers | quoteIdentifier, validateIdentifier, formatSqlValue, generateCreateTable, generateInsertStatements, splitSqlStatements, importCsvToTable, createRelationalGetTableData | Parameterised on your driver's quote char — compose them instead of hardcoding a dialect. | | Themes | validateTheme, REQUIRED_THEME_TOKENS, RECOMMENDED_THEME_TOKENS | Validate a theme with the same checker the host uses. | | Tools | isWriteQuery, toJsonSchema, jsonSchemaToZodShape | Build AI/MCP tool schemas. | | Errors | safeCall, ErrorBudget, PluginError | Match the host's error-handling contract. | | Permissions | ALL_PERMISSIONS, ENFORCED_PERMISSIONS, ADVISORY_PERMISSIONS, PERMISSION_INFO, PermissionDeniedError, hasPermission, effectiveGrants, isPluginPermission | The capability model your manifest declares against. |

Driver capabilities (declared, never branched on)

The host treats every driver generically; a driver expresses dialect behaviour by declaring serializable capabilities on its DriverFactory (and a couple of optional adapter methods), not by the host special-casing its type:

  • statementSyntax — which statement splitter the CodeLens gutter uses ('sql' / 'redis' / 'mongodb').
  • errorRules — regex rules that classify query errors into a DbErrorCode (the host owns the friendly message).
  • parseQueryPlan(result) on the adapter — parse EXPLAIN output into a PlanNode tree for the Query Plan view.
  • plus sqlDialect, quoteChar, placeholderStyle, editorLanguage, defaultSchemaCandidates, session, explain, …

See the plugin guide for the full driver example.

What's deliberately not exported

createPluginContext and the registry implementations (DriverRegistryImpl, …) are the host's concern. A plugin receives a ready PluginContext in activate(ctx); it never constructs one. Those live in the app and pull in Electron, so the published package stays Electron-free and lightweight (~13 KB, zod as its only runtime dependency).

How a plugin is discovered

Verql loads plugins from userData/plugins/. Each plugin is a folder with a plugin-manifest.json (or a package.json carrying the verql-plugin keyword) and a compiled main entry that exports activate(ctx). The permissions array in the manifest declares the sensitive capabilities you need — see the getting-started guide and the security model.

Versioning

@verql/plugin-sdk is versioned and published independently of the desktop app so its API can stabilise on its own cadence: the app releases on v*.*.* tags, the SDK on sdk-v* tags.

Links

License

MIT © Arshad Shah