I'm looking for a module that would allow developers to code plugins for my 
application, based on hooks/filters. The best example I can think of would 
be something like the WordPress plugin system. Where you add 'tags' or 
'filters' all over, and plugins can fire off functions when the tags are 
applied. It also has 'filters', which would basically filter some data 
through any plugins that add functions to that filter tag.

Keep in mind, I'm not using ExpressJS. My application is using HapiJS for 
the API server, and BookshelfJS/KnexJS for the ORM.

Does anyone have any recommendations for this? I was looking at Senica 
<http://senecajs.org>, which bases everything on 'patterns' instead of 
tags. Meaning instead of applying a 'filter' to an object based on tags or 
hooks, it basically just uses the object itself as the pattern.. Which is 
very interesting. I also found that HapiJS has a plugin specifically for 
Senica, called Chario <https://github.com/hapijs/chairo>. Chario basically 
just adds a decoration to the server which contains the Senica object. 

If someone has something better in mind than Senica/Chario for a tag/hook 
based plugin system.. let me know!

Thanks!

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/ccbf2693-f619-4b57-8ac8-c445d953aacd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to