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 🙏

© 2024 – Pkg Stats / Ryan Hefner

bunadmin

v1.1.0

Published

A simple graphql admin dashboard. Easy to expand with the flexible plugin. Graphql first, also supports api. Based on React, Material-UI, Realtime RxDB, Formik, I18N.

Downloads

351

Readme

BunAdmin

A simple graphql admin dashboard(Front-End Only). Easy to expand with the flexible plugin. Graphql first, also supports api. Based on React, Next.js, Material-UI, Realtime RxDB, Formik, I18N. Free and Open Source for personal and commercial purposes.

Feature

  • ✅   Package / Use as a node module *
  • ✅   Plugins / One-click Update Plugins *
  • ✅️   Multi-user *
  • ✅️   Multi-language
  • ✅   Data migration *
  • ✅   Log / message *
  • ✅   Common Components
  • ✅   MDX Documentation
  • ✅   Dockerfile & Deploy Shell

Quick Start

yarn create react-app my-admin --template bunadmin
cd my-admin
yarn update-plugins && yarn dev

Open http://localhost:1911/

Example Code

Screenshot

Sign in Sign in

Data Migration Data Migration

More screenshots

Plugins

Functions need to be implemented by plugins, you need to build and update plugin-info

[
  {
    "enable": true,
    "plugin-id": "bunadmin-plugin-auth",
    "plugin-folder": "buncms-user"
  }
]

Required

User Auth: api example

Examples

Strapi User: api example

File Explore: graphql example

Data Source Strapi: data source api example

Strapi Blog: api example


Plugin structure

  • /plugins/[team]-[group]
    • /[name]
      • index.tsx
      • column.tsx
      • types.ts
    • /[name]
      • index.tsx
      • column.tsx
      • types.ts
    • /utils
      • i18n/
        • en.ts
        • zh.ts
      • initData.ts
    • package.json

Example:

  • /plugins/bunadmin-blog
    • /post
      • index.tsx
      • column.tsx
    • /category
      • index.tsx
    • /utils
      • initData.ts
    • package.json

Develop

intData

Used to generate schema and menus data. example code

Column

Column define how your data looks. example code | read more

Theme

There is only one theme for now which refers to ngx-admin.

Deployment

cp e.g./deploy-*.sh deploy-my-admin.sh
./deploy.sh

AliCloud:

Append the following content to deploy.sh

docker tag ${container} registry.cn-shenzhen.aliyuncs.com/bunlu/${container}:1.0.1
docker push registry.cn-shenzhen.aliyuncs.com/bunlu/${container}:1.0.1

Heroku: Checkout the branch delpoy_heroku_example Replace the following content to deploy.sh

heroku container:push web
heroku container:release web

Demo

Online Demo

Documentation

Username / password: bunadmin_test

See more on bunadmin-example-strapi

Backup private files

Usually you need to manually backup the following files

  • env-prod.env
  • deploy-my-admin.sh

Create your own document

Use mdx to combine your own components.

Add these two plugins to plugin-info.json doc file

Refer to bunadmin-plugin-doc to make your document

Thanks

material-ui material-table next.js rxdb formik ngx-admin ant-design-pro react-admin ...

❤️🎉