MCPcopy Index your code
hub / github.com/SoftwareBrothers/adminjs

github.com/SoftwareBrothers/adminjs @v7.8.17 sqlite

repository ↗ · DeepWiki ↗ · release v7.8.17 ↗
664 symbols 2,140 edges 441 files 158 documented · 24% 1 cross-repo links
README

AdminJS

AdminJS is an automatic admin interface that can be plugged into your application. You, as a developer, provide database models (like posts, comments, stores, products or whatever else your application uses), and AdminJS generates UI which allows you (or other trusted users) to manage content.

Inspired by: django admin, rails admin and active admin.

Example application

Check out our demo application:

  • Login: example@adminjs.co
  • Password: password

https://demo.adminjs.co

You can also have a look at our customized AdminJS dashboard which shows various library statistics:

https://stats.adminjs.co

Getting started

Our open source community on Discord

What kind of problems it solves

So you have a working service built in Node.js. It uses (for example) Hapi.js for rendering a couple of REST routes and mongoose as the connector to the database.

Everything works fine, but now you would like to: * view all the data in the app, * perform custom business actions on objects in the database, * bootstrap the tables with the initial data, * build custom report pages, * allow other team members (not necessary programmers) to see what is going on in the application.

And all these cases can be solved by AdminJS. By adding couple of lines of code you have a running admin interface.

Features

  • CRUD any data in any resource
  • Custom actions
  • Form validation based on schema in your resources
  • Full featured dashboard with widgets
  • Custom resource decorators

Contribute

If you would like work on an AdminJS and develop new features please check out our Contribution Guide

There you can find instructions on how to run AdminJS locally for development.

If you're searching for tasks you can contribute to, we currently accept contributions to issues in our Kanban Board.

Any small or large contribution or any input into discussion is welcome!

License

AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the LICENSE file.

About rst.software

We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.

  • We are available for hire.
  • If you want to work for us - check out the career page.

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
vendor-types/global.ts
Assertion (Interface)
(no doc)
vendor-types/chai/index.d.ts
Global (Interface)
(no doc)
vendor-types/node/node.d.ts
CurrentAdmin (Interface)
(no doc)
src/current-admin.interface.ts
AdminJS (Interface)
(no doc)
src/adminjs.ts
AdminJSOptions (Interface)
(no doc)
src/adminjs-options.interface.ts
CoreScripts (Interface)
(no doc)
src/core-scripts.interface.ts
TranslateFunctions (Interface)
(no doc)
src/utils/translate-functions.factory.ts

Core symbols most depended-on inside this repo

allowOverride
called by 78
src/frontend/hoc/allow-override.tsx
find
called by 67
src/backend/adapters/resource/base-resource.ts
useTranslation
called by 62
src/frontend/hooks/use-translation.ts
translateMessage
called by 37
src/utils/translate-functions.factory.ts
reduce
called by 36
src/backend/utils/filter/filter.ts
property
called by 30
src/backend/adapters/resource/base-resource.ts
get
called by 29
src/backend/utils/filter/filter.ts
id
called by 23
src/backend/adapters/record/base-record.ts

Shape

Function 353
Method 212
Class 66
Interface 30
Enum 3

Languages

TypeScript100%

Modules by API surface

src/backend/decorators/property/property-decorator.ts23 symbols
src/backend/decorators/action/action-decorator.ts22 symbols
src/backend/utils/view-helpers/view-helpers.ts20 symbols
src/backend/adapters/resource/base-resource.ts19 symbols
src/backend/adapters/record/base-record.ts18 symbols
src/backend/adapters/property/base-property.ts18 symbols
src/backend/decorators/resource/resource-decorator.ts17 symbols
src/backend/utils/resources-factory/resources-factory.ts13 symbols
src/frontend/utils/api-client.ts12 symbols
src/adminjs.ts11 symbols
src/utils/translate-functions.factory.ts10 symbols
src/backend/utils/layout-element-parser/layout-element-parser.ts10 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/cli7.23.9 · 1×
@babel/core7.23.9 · 1×
@babel/parser7.23.9 · 1×
@babel/plugin-syntax-import-assertions7.23.3 · 1×
@babel/plugin-transform-runtime7.23.9 · 1×
@babel/preset-env7.23.9 · 1×
@babel/preset-react7.23.3 · 1×
@babel/preset-typescript7.23.3 · 1×
@babel/register7.23.7 · 1×
@commitlint/cli17.5.0 · 1×
@commitlint/config-conventional17.4.4 · 1×

Datastores touched

CarCollection · 1 repos
ChangeLogCollection · 1 repos
UserCollection · 1 repos
(mongodb)Database · 1 repos
admin-server-testDatabase · 1 repos

For agents

$ claude mcp add adminjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact