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

@droplinked_inc/editor-core

v0.2.2

Published

Hardened core primitives (types + validators + tree helpers) for the Droplinked page editor. Successor to droplinked-editor-core, types-and-runtime split; UI components deferred to @droplinked_inc/editor-ui.

Readme

@droplinked_inc/editor-core

Hardened type-and-runtime core primitives for the Droplinked page editor. Successor to the legacy [email protected]. Built from the original .d.ts API surface with the runtime re-implemented from a behavioural oracle of the published dist/.

Scope

This package now ships only the parts that can be reasoned about and tested without React rendering:

  • Public TypeScript types (Config, Data, ComponentData, Field, …)
  • zod schemas + parseEditorData / parseEditorConfig validators
  • Pure-data helpers: defaultData, walkTree, transformProps, migrate
  • DoS-safe utilities: safeDeepMerge, safeDeepClone, isPlainObject
  • Centralised structural limits (LIMITS) and forbidden keys (FORBIDDEN_KEYS)

The original substrate also shipped a Puck-fork editor UI (<Puck>, <Render>, <AutoField>, <DropZone>, etc.). Those are deferred to a sibling @droplinked_inc/editor-ui package so this core stays testable in a Node-only jest environment and so the dependency footprint (no Chakra, no DnD-Kit, no Framer Motion, no zustand) stays minimal. icons is similarly deferred.

Install

pnpm add @droplinked_inc/editor-core

Quick start

import { parseEditorData, walkTree, migrate, transformProps } from '@droplinked_inc/editor-core';

// 1. Validate untrusted input at the trust boundary
const parsed = parseEditorData(rawJsonFromDB);
if (!parsed.ok) {
  throw new Error(`Editor data invalid: ${parsed.issues.join('; ')}`);
}

// 2. Migrate forward through known schema revisions
const { data, report } = migrate(parsed.value);

// 3. Walk every content array (zones + root) and transform
const walked = walkTree(data, (content, { parentId, propName }) => {
  return content.filter((c) => c.type !== 'Deprecated');
});

// 4. Apply per-type prop transforms (e.g. URL rewriting)
const finalData = transformProps(walked, {
  Image: (props) => ({ ...props, src: rewriteToCdn(props.src as string) }),
  root:  (props) => ({ ...props, title: (props.title as string).trim() }),
});

Security

This package replaces a previously hostile-published predecessor. Every external boundary funnels through a zod schema; every recursive helper is depth-and-breadth-capped (see LIMITS). See THREAT_MODEL.md for the full attacker model and the mitigations.

Highlights:

  • No eval, no Function(), no dynamic require anywhere in the package.
  • Prototype-pollution-safe deep merge. __proto__, constructor, prototype keys are silently dropped from both base and patch, and intermediate scratch objects use Object.create(null) so a malicious toString etc. cannot shadow Object.prototype.
  • DoS caps on object depth, key count, array length, total node count, registered components, categories, and zones (LIMITS).
  • URL allow-list on shop-default favicon: http:/https:/mailto: only — javascript: / data: URLs are rejected by the schema.
  • No React/UI surface in this package — that runtime lives in @droplinked_inc/editor-ui (deferred) and can be reviewed independently.

Compatibility note for @droplinked_inc/editor-configs

The current editor-configs (PR #1) package uses a local EditorConfigShape placeholder. This package exports EditorConfigShape as an alias for Config, so the follow-up swap is a one-line import change in editor-configs.

License

MIT.