sails
API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)
Last updated 8 years ago by mikermcneil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install sails 
SYNC missed versions from official npm registry.

Sails.js

Website   Get Started   Docs   News   Submit Issue

NPM version   Gitter   Twitter Follow

Sails.js is a web framework that makes it easy to build custom, enterprise-grade Node.js apps. It is designed to resemble the MVC architecture from frameworks like Ruby on Rails, but with support for the more modern, data-oriented style of web app & API development. It's especially good for building realtime features like chat.

Since version 1.0, Sails supports await out of the box. This replaces nested callbacks (and the commensurate error handling) with simple, familiar usage:

var orgs = await Organization.find();

Installation  

With node installed:

# Get the latest stable release of Sails
$ npm install sails -g
Upgrading from an earlier version of Sails?

Upgrade guides for all major releases since 2013 are available on the Sails website under Upgrading.

Your First Sails Project

Create a new app:

# Create the app
sails new my-app

Lift sails:

# cd into the new folder
cd my-app

# fire up the server
sails lift

Screenshot from the original Sails video

For the most up-to-date introduction to Sails, get started here.

Compatibility

Sails is built on Node.js, Express, and Socket.io.

Sails actions are compatible with Connect middleware, so in most cases, you can paste code into Sails from an existing Express project and everything will work-- plus you'll be able to use WebSockets to talk to your API, and vice versa.

The ORM, Waterline, has a well-defined adapter system for supporting all kinds of datastores. Officially supported databases include MySQL, PostgreSQL, MongoDB, Redis, and local disk / memory. Community adapters exist for CouchDB, neDB, SQLite, Oracle, MSSQL, DB2, ElasticSearch, Riak, neo4j, OrientDB, Amazon RDS, DynamoDB, Azure Tables, RethinkDB and Solr; for various 3rd-party REST APIs like Quickbooks, Yelp, and Twitter, including a configurable generic REST API adapter; plus some eclectic projects.

Powered by MySQL                                

For the latest core adapters and notable community adapters, see Available Adapters.

Tutorial Course

Books

Support

Need help or have a question?

Issue submission

Please read the submission guidelines and code of conduct before opening a new issue. Click here to search/post issues in this repository.

Contribute

There are many different ways you can contribute to Sails:

Please carefully read our contribution guide and check the build status for the relevant branch before submitting a pull request with code changes.

Links

Team

Sails is actively maintained with the help of many amazing contributors. Our core team consists of:

Mike McNeil Kelvin Omereshone Eric Shaw
Mike McNeil Kelvin Omereshone Eric Shaw

Our company designs/builds Node.js websites and apps for startups and enterprise customers. After building a few applications and taking them into production, we realized that the Node.js development landscape was very much still the Wild West. Over time, after trying lots of different methodologies, we decided to crystallize all of our best practices into this framework. Six years later, Sails is now one of the most widely-used web application frameworks in the world. I hope it saves you some time! :)

License

MIT License Copyright © 2012-present, Mike McNeil

Sails is built around so many great open-source technologies that it would never have crossed our minds to keep it proprietary. We owe huge gratitude and props to Ryan Dahl (@ry), TJ Holowaychuk (@tj), Doug Wilson (@dougwilson) and Guillermo Rauch (@rauchg) for the work they've done, as well as the stewards of all the other open-source modules we use. Sails could never have been developed without your tremendous contributions to the JavaScript community.

A squid peering inside a book, halation and cosmic Sails.js knowledge emanating from the pages of the substantial tome

Current Tags

  • 1.5.11                                ...           latest (6 months ago)

233 Versions

  • 1.5.11                                ...           6 months ago
  • 1.5.10                                ...           7 months ago
  • 1.5.9                                ...           10 months ago
  • 1.5.8                                ...           a year ago
  • 1.5.7                                ...           a year ago
  • 1.5.6                                ...           a year ago
  • 1.5.5                                ...           a year ago
  • 1.5.4                                ...           2 years ago
  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           3 years ago
  • 1.5.1                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.4                                ...           3 years ago
  • 1.4.3                                ...           3 years ago
  • 1.4.2                                ...           4 years ago
  • 1.4.1                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.5                                ...           4 years ago
  • 1.2.4                                ...           5 years ago
  • 1.2.3                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0-3                                ...           6 years ago
  • 1.2.0-2                                ...           6 years ago
  • 1.2.0-1                                ...           6 years ago
  • 1.2.0-0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.1.0-3                                ...           6 years ago
  • 1.1.0-2                                ...           6 years ago
  • 1.1.0-1                                ...           6 years ago
  • 1.0.3-4                                ...           6 years ago
  • 1.0.3-3                                ...           6 years ago
  • 1.0.3-2                                ...           6 years ago
  • 1.0.3-1                                ...           6 years ago
  • 1.0.3-0                                ...           6 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 1.0.0-49                                ...           7 years ago
  • 1.0.0-48                                ...           7 years ago
  • 1.0.0-47                                ...           7 years ago
  • 1.0.0-46                                ...           7 years ago
  • 1.0.0-45                                ...           7 years ago
  • 1.0.0-44                                ...           7 years ago
  • 1.0.0-42                                ...           7 years ago
  • 1.0.0-41                                ...           7 years ago
  • 1.0.0-40                                ...           7 years ago
  • 1.0.0-39                                ...           7 years ago
  • 1.0.0-38                                ...           7 years ago
  • 0.12.14                                ...           7 years ago
  • 1.0.0-37                                ...           7 years ago
  • 1.0.0-36                                ...           7 years ago
  • 1.0.0-35                                ...           7 years ago
  • 1.0.0-34                                ...           8 years ago
  • 1.0.0-33                                ...           8 years ago
  • 1.0.0-32                                ...           8 years ago
  • 1.0.0-31                                ...           8 years ago
  • 0.12.13                                ...           8 years ago
  • 1.0.0-30                                ...           8 years ago
  • 1.0.0-29                                ...           8 years ago
  • 0.12.12                                ...           8 years ago
  • 0.12.12-3                                ...           8 years ago
  • 0.12.12-2                                ...           8 years ago
  • 1.0.0-28                                ...           8 years ago
  • 1.0.0-27                                ...           8 years ago
  • 1.0.0-26                                ...           8 years ago
  • 1.0.0-25                                ...           8 years ago
  • 1.0.0-24                                ...           8 years ago
  • 1.0.0-23                                ...           8 years ago
  • 1.0.0-22                                ...           8 years ago
  • 1.0.0-21                                ...           8 years ago
  • 0.12.12-1                                ...           8 years ago
  • 1.0.0-20                                ...           8 years ago
  • 1.0.0-19                                ...           8 years ago
  • 1.0.0-18                                ...           8 years ago
  • 1.0.0-17                                ...           8 years ago
  • 1.0.0-16                                ...           8 years ago
  • 1.0.0-15                                ...           8 years ago
  • 0.12.11                                ...           8 years ago
  • 0.12.11-1                                ...           8 years ago
  • 1.0.0-14                                ...           8 years ago
  • 0.12.11-0                                ...           8 years ago
  • 1.0.0-13                                ...           8 years ago
  • 0.12.10                                ...           8 years ago
  • 1.0.0-12                                ...           8 years ago
  • 0.12.10-1                                ...           8 years ago
  • 0.12.10-0                                ...           8 years ago
  • 1.0.0-11                                ...           8 years ago
  • 1.0.0-10                                ...           8 years ago
  • 1.0.0-9                                ...           8 years ago
  • 0.12.9                                ...           8 years ago
  • 1.0.0-8                                ...           8 years ago
  • 1.0.0-7                                ...           8 years ago
  • 1.0.0-6                                ...           8 years ago
  • 0.12.8                                ...           8 years ago
  • 0.12.7                                ...           8 years ago
  • 1.0.0-5                                ...           8 years ago
  • 1.0.0-4                                ...           8 years ago
  • 0.12.6                                ...           8 years ago
  • 0.12.5                                ...           8 years ago
  • 1.0.0-3                                ...           8 years ago
  • 1.0.0-2                                ...           8 years ago
  • 1.0.0-1                                ...           8 years ago
  • 1.0.0-0                                ...           8 years ago
  • 0.12.4                                ...           8 years ago
  • 0.12.4-rc3                                ...           8 years ago
  • 0.12.4-rc2                                ...           8 years ago
  • 0.12.4-rc1                                ...           8 years ago
  • 0.11.6-1                                ...           8 years ago
  • 0.11.6-0                                ...           8 years ago
  • 0.12.3                                ...           9 years ago
  • 0.12.2                                ...           9 years ago
  • 0.12.2-0                                ...           9 years ago
  • 0.12.1-deprecatedDepExperiment [deprecated]           ...           9 years ago
  • 0.12.1                                ...           9 years ago
  • 0.12.1-rc1                                ...           9 years ago
  • 0.12.0                                ...           9 years ago
  • 0.11.5                                ...           9 years ago
  • 0.12.0-rc9                                ...           9 years ago
  • 0.12.0-rc8                                ...           9 years ago
  • 0.12.0-rc7                                ...           9 years ago
  • 0.12.0-rc6                                ...           9 years ago
  • 0.12.0-rc5                                ...           9 years ago
  • 0.11.4                                ...           9 years ago
  • 0.12.0-rc4                                ...           9 years ago
  • 0.11.3                                ...           9 years ago
  • 0.11.2                                ...           9 years ago
  • 0.12.0-rc3                                ...           9 years ago
  • 0.12.0-rc2                                ...           9 years ago
  • 0.12.0-rc1                                ...           9 years ago
  • 0.11.1-rc1                                ...           10 years ago
  • 0.11.1                                ...           10 years ago
  • 0.11.0                                ...           10 years ago
  • 0.11.0-rc10                                ...           10 years ago
  • 0.11.0-rc9                                ...           10 years ago
  • 0.11.0-rc8                                ...           10 years ago
  • 0.11.0-rc7                                ...           10 years ago
  • 0.11.0-rc6                                ...           10 years ago
  • 0.11.0-rc5                                ...           10 years ago
  • 0.11.0-rc4                                ...           10 years ago
  • 0.11.0-rc3                                ...           10 years ago
  • 0.11.0-rc2                                ...           10 years ago
  • 0.10.5                                ...           10 years ago
  • 0.10.4                                ...           10 years ago
  • 0.10.3                                ...           10 years ago
  • 0.10.2                                ...           10 years ago
  • 0.10.1                                ...           10 years ago
  • 0.10.0-rc11                                ...           10 years ago
  • 0.10.0-rc10                                ...           10 years ago
  • 0.10.0-max                                ...           10 years ago
  • 0.10.0-rc9                                ...           10 years ago
  • 0.9.17                                ...           10 years ago
  • 0.10.0-rc8                                ...           10 years ago
  • 0.10.0-rc7                                ...           11 years ago
  • 0.10.0-rc6                                ...           11 years ago
  • 0.10.0-rc5                                ...           11 years ago
  • 0.9.16                                ...           11 years ago
  • 0.9.15                                ...           11 years ago
  • 0.9.13                                ...           11 years ago
  • 0.9.12                                ...           11 years ago
  • 0.10.0-rc4                                ...           11 years ago
  • 0.9.11                                ...           11 years ago
  • 0.10.0-rc3                                ...           11 years ago
  • 0.10.0-rc2                                ...           11 years ago
  • 0.10.0-rc1                                ...           11 years ago
  • 0.9.9                                ...           11 years ago
  • 0.9.8                                ...           11 years ago
  • 0.9.7                                ...           11 years ago
  • 0.9.5                                ...           11 years ago
  • 0.9.4                                ...           11 years ago
  • 0.9.3                                ...           11 years ago
  • 0.9.2                                ...           11 years ago
  • 0.9.1                                ...           11 years ago
  • 0.9.0                                ...           11 years ago
  • 0.8.94                                ...           11 years ago
  • 0.8.93                                ...           11 years ago
  • 0.8.92                                ...           11 years ago
  • 0.8.91                                ...           11 years ago
  • 0.8.9                                ...           12 years ago
  • 0.8.895                                ...           12 years ago
  • 0.8.894                                ...           12 years ago
  • 0.8.892                                ...           12 years ago
  • 0.8.89-1                                ...           12 years ago
  • 0.8.89                                ...           12 years ago
  • 0.8.88                                ...           12 years ago
  • 0.8.87                                ...           12 years ago
  • 0.8.86                                ...           12 years ago
  • 0.8.85                                ...           12 years ago
  • 0.8.84                                ...           12 years ago
  • 0.8.83                                ...           12 years ago
  • 0.8.82                                ...           12 years ago
  • 0.8.81                                ...           12 years ago
  • 0.8.80                                ...           12 years ago
  • 0.8.79                                ...           12 years ago
  • 0.8.78                                ...           12 years ago
  • 0.8.77                                ...           12 years ago
  • 0.8.76                                ...           12 years ago
  • 0.8.75                                ...           12 years ago
  • 0.8.74                                ...           12 years ago
  • 0.8.73                                ...           12 years ago
  • 0.8.72                                ...           12 years ago
  • 0.8.71                                ...           12 years ago
  • 0.8.7                                ...           12 years ago
  • 0.8.6                                ...           12 years ago
  • 0.8.5                                ...           12 years ago
  • 0.8.4                                ...           12 years ago
  • 0.8.3                                ...           12 years ago
  • 0.8.2                                ...           12 years ago
  • 0.8.1                                ...           12 years ago
  • 0.8.0                                ...           12 years ago
  • 0.7.9                                ...           12 years ago
  • 0.7.8                                ...           12 years ago
  • 0.7.7                                ...           12 years ago
  • 0.7.6-0                                ...           12 years ago
  • 0.7.5-0                                ...           12 years ago
  • 0.7.4-1                                ...           12 years ago
  • 0.7.4                                ...           12 years ago
  • 0.7.3                                ...           12 years ago
  • 0.7.2                                ...           12 years ago
  • 0.7.1                                ...           12 years ago
  • 0.7.0-8                                ...           12 years ago
  • 0.7.0-7                                ...           12 years ago
  • 0.7.0-6                                ...           12 years ago
  • 0.0.0-1                                ...           12 years ago
  • 0.7.0-5                                ...           12 years ago
  • 0.7.0-4                                ...           12 years ago
  • 0.7.0-3                                ...           12 years ago
  • 0.7.0-2                                ...           12 years ago
  • 0.7.0                                ...           12 years ago
  • 0.0.0-2                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (42)
Dev Dependencies (21)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE