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

@10x-media/fields

v0.1.0-beta.0

Published

Reusable admin fields for Payload: color picker, icon picker, encrypted fields, and more

Downloads

41

Readme

@10x-media/fields

Reusable fields for Payload v3 that look and behave native: a full color picker in a constant-height row, a searchable icon picker over pluggable icon libraries, and encrypted fields with key rotation and opt-in exact-match querying. Built from @payloadcms/ui primitives on Payload design tokens, indistinguishable from Payload's own fields.

npm

Part of the @10x-media Payload plugins collection. In beta: published under the beta dist-tag until a stable 1.0.

Features

  • Color field: saturation/hue/alpha picker, eyedropper, preset palettes (static or resolved from your data), any CSS color as input, one configured stored format (hex/rgb/hsl/oklch), and an opt-in linked mode that stores preset references so palette changes propagate everywhere.
  • Icon field: drawer browser with search, category rail, and keyboard navigation; Lucide, Radix, and Tabler adapters first-party; defineIconAdapter() plus codegen for any other library; per-icon lazy loading so no icon dataset ever enters an eager bundle; client and RSC frontend renderers.
  • Encrypted fields: AES-256-GCM with authenticated field binding, for twelve field types including richText and point; zero-config keys derived from PAYLOAD_SECRET or explicit multi-key config with async providers and online rotation; opt-in blind-index querying (equals/in/unique); masked admin UX with reveal toggle.
  • Native by construction: 40px rows, Payload tokens, full admin prop contract, typed translations (en, de), function-form overrides on every factory.
  • Isolated bundles: each family behind its own subpath export, isolation asserted on the built output in CI.
  • Plugin optional: every factory works standalone; the fields() plugin adds app-wide defaults that per-field options override.

Quick start

pnpm add @10x-media/fields
// collections/Brands.ts
import { colorField } from '@10x-media/fields/color'
import { iconField } from '@10x-media/fields/icon'
import { lucideAdapter } from '@10x-media/fields/icon/adapters/lucide'
import { encryptedField } from '@10x-media/fields/encrypted'

fields: [
  colorField({ name: 'primaryColor', required: true }),
  iconField({ name: 'icon', adapters: [lucideAdapter()] }),
  ...encryptedField({ name: 'apiToken', type: 'text' }),
]

Render stored icons on your frontend:

import { createIcon } from '@10x-media/fields/icon/react'
import { lucideRenderer } from '@10x-media/fields/icon/adapters/lucide'

const Icon = createIcon({ adapters: [lucideRenderer()] })
// <Icon icon={doc.icon} size={20} />

Documentation

Full documentation at docs.10xmedia.de:

License

MIT. Copyright 10x Media GmbH.