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

@cslegany/custom-dashboard-strapi5

v0.5.1

Published

A fully customizable Dashboard to replace the default one.

Readme

strapi5-custom-dashboard

This package adds a fully customizable Dashboard to replace the default one.

Installation

NPM:

npm install @cslegany/custom-dashboard-strapi5

Yarn:

yarn add @cslegany/custom-dashboard-strapi5

Usage

  • Install and configure the plugin. Each category is identified by a label, and can have an icon and a hint message. Create as many categories as you wish.
  • Create items in the selected category. An item is identified by a label, and can have an icon and a hint message. It can either be of collection or single type.
  • DB entity ID of the item follows strapi patterns (i.e. api::article.article)
  • A separate list of iframes can also be added. Each iframe is identified by a label, and can have an icon and a hint message. You can set a width and height value and can use iframe-resizer to get rid of the vertical scrollbar so famous for the '90s.
  • Use the drag-and-drop feature to reorder categories, items of iframes.
  • The UI of the plugin is accessible via the Menu link.

Iframes and middleware customization

  • In order to allow for example youtube.com and https://plausible.io to get loaded in an iframe, add the following code to config/middlewares.ts in your Strapi project:
export default [
  ...
  {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          "frame-src": [
            "'self'",
            "*.youtube.com",
            "https://plausible.io",
          ],
        },
        upgradeInsecureRequests: null
      }
    }
  },
  { resolve: "./src/middlewares/custom-dashboard" },
];

You'll need an extra middleware to replace the built-in welcome screen with Custom Dashboard. Add the following code to src/middlewares/custom-dashboard.ts :

import type * as strapi from '@strapi/strapi';

export default (config, { strapi }: { strapi: strapi.Core.Strapi }) => {
	strapi.server.routes([
		{
			method: 'GET',
			path: '/',
			handler(ctx) {
				ctx.redirect("/admin/plugins/custom-dashboard");
			},
			config: { auth: false },
		},
		{
			method: 'GET',
			path: '/admin',
			handler(ctx) {
				ctx.redirect("/admin/plugins/custom-dashboard");
			},
			config: { auth: false },
		},
		{
			method: 'GET',
			path: "/index.html",
			handler(ctx) {
				ctx.redirect("/admin/plugins/custom-dashboard");
			},
			config: { auth: false },
		},
	]);

	return async (context, next) => {
		strapi.log.info("In admin-redirect middleware.");
		await next();
	};
};

Note that this middleware rarely works well in develop mode but has been working in other environments.

If the custom middleware doesn't suit you, you can experiment with app.tsx redirects. Install @types/dom-navigation Rename src/admin/app.example.tsx to app.tsx and add the following code to bootstrap(app: StrapiApp) { }

bootstrap(app: StrapiApp) {
		const url = "/admin/plugins/custom-dashboard";

		if ("navigation" in window) {
			// Redirect soft /admin navigations to `url`
			// Chrome-only
			window.navigation.addEventListener("navigate", (e) => {
				const { pathname } = new URL(e.destination.url);

				if (new RegExp("^/admin/?$").test(pathname)) {
					window.navigation.navigate(url);
				}
			});
		}

		// Redirect hard /admin navigations to `url`
		if (new RegExp("^/admin/?$").test(location.pathname)) {
			location.href = url;
		}
	},

License

MIT