Best practice to create our own packages?

We feel interested in creating a packages for RethinkDB. What is the best practice and advice we can take on?


It is possible to make packages and install to Meteor app

Existing RethinkDB driver is here:

For using RethinkDB with Meteor, you would install RethinkDB driver this way:

npm install rethinkdb

Then, for example at models at top of file, require it:

const r = require('rethinkdb');

And below add more code to use it:

if (Meteor.isServer()) {
  var connection = null;
  r.connect( {host: 'localhost', port: 28015}, function(err, conn) {
    if (err) throw err;
    connection = conn;

For a general setup of a Meteor package, you can check out the MCP template package: