NodeBB Plugin best practices

Plugin Development
  • Global Moderator Plugin & Theme Dev

    I'm thinking it would be good if we establish some best practices for NodeBB plugin development.

    Feel free to contribute by replying and I'll add it to the list.

    • Database keys should start with plugin:[your-plugin-name]: ex: if the plugin is nodebb-plugin-mentions then the database keys would start with plugin:mentions:
    • Use sockets instead of ajax
    • Use CSS transitions instead of jQuery animations, trigger them by toggling classes on the elements
    • Use Bootstrap elements as much as possible or not at all
    • your suggestion here

Suggested Topics

| | | |