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

@survicate/builder-plugin-article-editor

v0.0.1

Published

Long-form article editor for Survicate blog posts in the Builder.io dashboard

Downloads

144

Readme

@survicate/builder-plugin-article-editor

Long-form article editor for Survicate blog posts in the Builder.io dashboard.

The plugin registers a custom field type named survicateArticle and renders a TipTap editor in place of the default rich text field. It is built for the content field of the blog-post data model, which stores sanitized article HTML including div[data-article-embed] placeholders for surveys and other embeds.

Registering a new type rather than overriding the built-in richText type keeps every other rich text field in the space untouched.

Requirements

  • Node 22 (see .nvmrc)
  • Access to the Survicate Builder.io space to load the plugin

Development

npm install
npm start          # serves dist/plugin.system.js on http://localhost:1268

Load the local build into Builder from Space Settings → Integrations → Plugins → Edit, adding:

http://localhost:1268/plugin.system.js?pluginId=@survicate/builder-plugin-article-editor

The pluginId query parameter is required for Builder to match the plugin with its settings. Plugins are loaded once per session, so reload the Builder tab to pick up code changes.

Plugin settings are shared by everyone in the space. Loading a development build replaces the editor for all users, so run dev sessions outside of editorial hours and remove the local URL when finished.

Scripts

| Script | Purpose | | ------------------- | -------------------------------------------- | | npm start | Dev server on port 1268 | | npm run build | Production bundle in dist/plugin.system.js | | npm run lint | ESLint | | npm run typecheck | TypeScript, no emit | | npm test | Vitest in watch mode | | npm run test:run | Vitest once | | npm run format | Prettier write | | npm run pre-pr | lint + typecheck + tests + build |

Corpus gate

Before the editor goes anywhere near real content, every migrated post has to survive a round-trip. Point CORPUS_PATH at the transformed posts and run:

CORPUS_PATH=../www/scripts/.webflow-export/<date>/transformed/posts.json npm run verify:corpus

The gate loads each post into the editor, serializes it back and fails if any link, embed source or image URL disappears, if a single character of article text changes, or if the number of tables, header cells, figures, captions, images, quotes, headings or embeds shifts.

Publishing

The package is published publicly under the @survicate scope, owned by the Marketing team. Builder loads plugins from npm by package name, which requires the package to be publicly readable — only private plugins hosted on your own URL need an Enterprise plan, which is why this route was chosen.

npm run pre-pr
npm version <patch|minor|major>
npm publish            # publishConfig.access is already set to public
git push --follow-tags

Grant the Marketing team write access once, after the first publish:

npm access grant read-write @survicate:marketing @survicate/builder-plugin-article-editor

Install in Builder by entering the package name in Space Settings → Integrations → Plugins.

Conventions

Mirrors the main www repository: ESLint flat config with the same rule set (padding-line-between-statements, sort-keys, func-style: expression, simple-import-sort, TypeScript strictness), Prettier with identical options, @/ import alias, Husky with lint-staged on commit, and Vitest for tests. Source files carry no comments — names and tests describe behaviour.