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

@samuel-erb/strapi-plugin-lucide-icon-picker

v1.1.0

Published

A Strapi v5 custom field plugin for selecting Lucide icons. Icons are stored as kebab-case strings.

Downloads

544

Readme

Lucide Icon Picker for Strapi

A Strapi v5 custom field plugin that provides an intuitive icon picker for Lucide icons. Icons are stored as kebab-case strings and accessible via the Strapi API.

Strapi Version License TypeScript

Plugin Preview

✨ Features

  • 🎨 Visual Icon Browser - Browse through 1600+ Lucide icons with live preview
  • 📂 Category Organization - Icons grouped by categories (Design, Text, Communication, etc.)
  • 🔍 Smart Search - Filter icons by name, tags, and categories
  • 🌙 Dark Mode Support - Seamless integration with Strapi's dark theme
  • 💾 String Storage - Icons stored as kebab-case strings (e.g., "arrow-down")
  • 🌐 API Ready - Access icon names through Strapi's REST & GraphQL APIs
  • TypeScript Support - Full type safety and IntelliSense
  • 📱 Responsive Design - Works seamlessly across all device sizes
  • Auto-sync - Automatically downloads latest icons from Lucide before building
  • 🎯 Enhanced UX - Tooltips and improved visual feedback

🚀 Installation

  1. Install the plugin in your Strapi project:
npm install lucide-icon-picker
  1. Enable the plugin in config/plugins.js:
module.exports = () => ({
  'lucide-icon-picker': {
    enabled: true,
  },
});
  1. Rebuild and restart your Strapi application:
npm run build
npm run develop

📖 Usage

Adding Icon Fields

  1. Navigate to Content-Type Builder
  2. Select an existing content type or create a new one
  3. Click Add another field
  4. Choose CustomLucide Icon
  5. Configure your field settings and save

Content Management

The icon picker provides an intuitive interface where you can:

  • Browse icons in a grid layout
  • Search by icon name
  • Preview icons in real-time
  • Clear selections easily

Frontend Integration

Use the included ApiIcon component to display icons in your React application:

import { ApiIcon } from 'lucide-react';

// In your component
function ArticleCard({ article }) {
  return (
    <div>
      <ApiIcon apiName={article.icon} size={24} />
      <h2>{article.title}</h2>
    </div>
  );
}

API Response Format

Icons are returned as kebab-case strings in your API responses:

{
  "data": {
    "id": 1,
    "attributes": {
      "title": "My Article",
      "icon": "arrow-down",
      "publishedAt": "2024-01-15T10:00:00.000Z"
    }
  }
}

🎨 Available Icons

This plugin supports all icons from the Lucide icon library, including:

  • Interface icons (arrows, buttons, controls)
  • Communication icons (mail, phone, chat)
  • Media icons (play, pause, volume)
  • File and folder icons
  • And many more...

🛠 Development

Requirements

  • Node.js >= 18
  • Strapi v5.x
  • React 18+

Building the Plugin

# Install dependencies
npm install

# Download latest Lucide icons and build the plugin
npm run build

# Or update icons manually
npm run update:lucide-data

# Run TypeScript checks
npm run test:ts:front
npm run test:ts:back

# Watch for changes during development
npm run watch

Testing

The plugin can be tested locally using Yalc:

# In the plugin directory
npm run build
npx yalc publish

# In your Strapi project
npx yalc add lucide-icon-picker
npm install
npm run develop

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and enhancement requests.

☕ Support

If you find this plugin helpful, consider supporting its development:

ko-fi

📄 License

MIT License - see LICENSE file for details.

🙏 Acknowledgments

  • Built with the Strapi Plugin SDK
  • Icons provided by Lucide
  • Inspired by the Strapi community's needs for better icon management