Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sails

> 编程语言
Open source

Realtime MVC Framework for Node.js

22.8K stars0 likes1 views
WebsiteGitHub

About

Realtime MVC Framework for Node.js

Website   Get Started   Docs   News   Submit Issue

   

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

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.

                               

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

Tutorial Course

  • Sailscasts, taught by Kelvin Omereshone (English)
  • Full-Stack JavaScript with Sails.js and Vue.js, taught by Mike McNeil (in English, with optional Spanish subtitles)

Books

  • Sails.js in Action by Mike McNeil and Irl Nathan (Manning Publications).
  • Sails.js Essentials by Shaikh Shahid (Packt)
  • Pro Express.js: Part 3 by Azat Mardan (Apress).

Support

Need help or have a question?

  • Frequently Asked Questions (FAQ)
  • Tutorials
  • Community support
  • Professional/Enterprise options

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:

  • answering questions on StackOverflow, Gitter, Facebook, or Twitter
  • improving the documentation
  • translating the documentation to your native language
  • writing tests
  • writing a tutorial, giving a talk, or supporting your local Sails meetup
  • troubleshooting reported issues
  • and submitting patches.

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

Links

  • Website
  • Documentation
  • Ask a question
  • Tutorial
  • Roadmap
  • Twitter (@sailsjs)
  • Facebook

Team

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

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

GitHub Issues· 590 open

View all on GitHub
  • #7382

    Upgrade mongodb (bson) dependency to avoid BSONVersionError with newer mongodb driver versions

    Updated Sep 11, 2026
  • #7380

    Add new config key directConnection to whitelist in sails-mongo

    Updated Sep 7, 2026
  • #6980

    Destroy method is dangerous

    needs documentationhelpful info or workaroundUpdated Aug 14, 2026
  • #7381

    [SECURITY] Remote Code Execution via Unvalidated `imports` Key Names in `_.template()`

    Updated Jul 14, 2026
  • #7377

    Sails app is unable to connect amazon-RDS 8.4.8

    Updated Apr 15, 2026
  • #7110

    Add type definitions

    what do you think?Updated Apr 14, 2026
  • #7376

    TypeError: Right-hand side of 'instanceof' is not callable in is-binary.js node 20+ sails-hook-sockets

    Updated Apr 7, 2026
  • #7371

    Dependency vulnerability: qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion

    try this out pleaseUpdated Feb 13, 2026
  • #7366

    Moderate security vulnerability reported via npm audit

    try this out pleaseresolvedUpdated Feb 13, 2026
  • #7350

    Can't connect mysql8.4 because mysql8.4 no longer supports the mysql_native_password plugin

    Updated Jan 6, 2026

Highlights

  • •Sailscasts, taught by Kelvin Omereshone _(English)_
  • •Full-Stack JavaScript with Sails.js and Vue.js, taught by Mike McNeil _(in English, with optional Spanish subtitles)_
  • •Sails.js in Action by Mike McNeil and Irl Nathan (Manning Publications).
  • •Sails.js Essentials by Shaikh Shahid (Packt)
  • •Pro Express.js: Part 3 by Azat Mardan (Apress).
  • •Frequently Asked Questions (FAQ)
  • •Tutorials
  • •Community support
  • •Professional/Enterprise options
  • •answering questions on StackOverflow, Gitter, Facebook, or Twitter

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言