Codebrahma

Work

5 MUST USE METEOR PACKAGES FOR METEOR DEVELOPERS

Meteor, also known as MeteorJS, is a JavaScript application framework purpose designed to develop platform agnostic web applications. Meteor is written using Node.js and is completely open source. Native web applications are slowly gaining ground; we no longer need to load entire pages when clicking a menu or changing some settings on a page inside a browser. Here in this article, we are trying to list down the packages that every meteor developer should know.

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.

  1. SIMPLESCHEMA

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.

  1. AUTOFORM

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.

  1. PROMISE

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.

  1. 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.

  1. COLLECTION-HELPERS

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.

Written by
Raviraj Hegde
Published at
Feb 08, 2016
Posted in
Research and Articles
Tags
If you want to get more posts like this, join our newsletter

Join our NEW newsletter to learn about the latest trends in the fast changing front end atmosphere

Mail hello@codebrahma.com

Phone +1 484 506 0634

Codebrahma is an independent company. Mentioned brands and companies are trademarked brands.
© 2024 codebrahma.com. All rights reserved.