5 MUST USE METEOR PACKAGES
Meteor has spiked in popularity as more and more developers are going back to the mobile web. As an application framework, Meteor is designed to simplify development of applications. To ease such development, it allows the creation and use of packages: readymade blocks of code that can be imported into your pre-existing code in a modular fashion to add new features. Here, we discuss some of the most useful and popular packages for Meteor.
This is a simple and reactive package that is used for validating schema when building web applications in Meteor. Other packages like Collection2 and AutoForm include SimpleSchema to offer a more comprehensive code base and functionality but if you want granular control over your data, this allows data manipulation at the most basic level.
This Meteor package comprises UI and other data input components. This allows you to easily create forms to accept user data as input for appropriate processing. AutoForm also enables automatic reactive validation and can perform automatic insert and update events for the same. AutoForm requires the SimpleSchema package to run; if Collection2 is already installed, it can also run in cooperation with that.
The okgrow:promise is an API that adds a host of useful functionality to the core Meteor framework. It does so mainly by adding features related to returning Promise properties to various existing functions, thereby expanding their usefulness. Meteor.promise, Meteor.wrapPromise, Meteor.wrapAsync, HTTP.getPromise, and ReactivePromise are the additional functionality enabled by this package. This also improves existing Meteor.subscribe with a new property
_readyPromise_ in returned object which resolves when the subscription is ready.
- COLLECTION HOOKS
This add-on package extends the use and functionality of the Mongo.Collection by adding before/ after hooks for insert, update, remove, find and findOne. These hooks are platform agnostic and work across clients, servers or a mix. Functionality is maintained even when the client initiates a collection method and it is the server that runs the hook, keeping in accordance to the collection validators (allow/deny). It is a very small but efficient utility that excels at a single job; in this case, it is exposing hooks after the specified objects. This can, in turn, be utilised for denormalization of data, implementing chain deletion procedures, sanitising and securing user input risks, etc.
This package automatically arranges for transformations on pre-existing collections by using the transform option in the Mongo.Collection in Meteor. This allows for the creation of simple models with interfaces similar to those of template helpers with extreme ease and convenience by generating user defined "helpers" that ease such transformations.
There are a large number of Meteor packages out there for adding a variety of functionality to your application. Admittedly, there can be no "must use" packages since the choice of packages is mostly determined by the functionality you desire.
However, from a general and overall perspective, the highlighted packages are the ones that are can be used in a wide variety of scenarios and provide functionality for a great number of applications and not only niche ones.