Skip to content

扩展、插件与资源

Bairrfhoinn edited this page Aug 17, 2012 · 7 revisions

依赖

Underscore.js

Backbone 唯一的强制性依赖。 http://underscorejs.org

JSON2.js

如果你想在旧版本浏览器中解析或者序列化 JSON 串,那么你需要它(比如说:Internet Explorer 浏览器) https://github.com/douglascrockford/JSON-js

jQuery

如果你需要操作 DOM 元素或者 Ajax,推荐使用。 http://jquery.com

Zepto

对于移动开发,推荐用它作为 jQuery 的替代品。 http://zeptojs.com

模型

Backbone 表单

为你的模型架构生成可自定义的表单。特性包括自定义编辑器、封装的表单、可编辑列表与表单验证器。

backbone 深度模型

对于模型和封装的属性提供增强的支持。Get 与 set 属性以及通过壹个 path 监听它们的更新。例如:get('user.address.ln1').

Backbone 封装

壹个让 Backbone 持续跟踪封装的属性的插件。

Backbone.Memento

通过创建还原点来实现存储或者还原你的模型状态。获取源代码与文档信息请访问:

Backbone.actAs.Mementoable

[Memento 模式]http://sourcemaking.com/design_patterns/memento使用比 Backbone.Memento 更加灵活的 API 实现 Backbone.js 的模型。

Backbone.actAs.Configurable

壹个简单的助手,从你的配置对象配置你的模型。

Backbone.Articulation

Backbone.Validations

Backbone.Validation

Backbone.Validator

Backbone.ModelRef

  • 当你在等待模型加载时允许你创建自己的视图。
  • Notifies you when a model unloads so you can change your view state.
  • Compatible with Knockback.js (https://github.com/kmalakoff/knockback)

Pretty much just a collection and model id reference. Simple, but useful.

workflow.js

Backbone Dotattr

Backbone.Mutators

Backbone.Chosen

Storage

Backbone.localStorage

backbone.couchdb.js

Small Backbone ORM

Backbone.ioBind

Backbone-websql

Backbone-slet

Backbone.SharePoint

Backbone.SAP

Backbone.Offline

Backbone.Rpc

Relations

Ligament

Backbone-relational

Collection

Backbone.actAs.Paginatable

Load your collections piece by piece. Very useful for large model sets.

Nesting.js

Simple helper function that makes it easy to work with nested Backbone collections

Backbone Query

Provides NoSQL queries (like MongoDB) for backbone.js collections

Query Engine

Provides extensive querying, filtering, and searching functionality for backbone.js collections

  • includes live interactive demo
  • source-code documentation only
  • runs on node.js and in the browser
  • supports NoSQL queries (like MongoDB)
  • supports filters (applying a filter function to a collection)
  • supports search strings (useful for turning search input fields into useful queries)
  • supports pills for search strings (e.g. author:ben priority:important)
  • supports optional live collections (when a model is changed, added or removed, it can automatically be tested against the collections queries, filters, and search string, if it fails, remove it from the collection)
  • supports parent and child collections (when a parent collection has a model removed, it is removed from the child collection too, when a parent collection has a model added or changed, it is retested against the child collection)
  • https://github.com/bevry/query-engine

View

LayoutManager

Backbone.Marionette

Make your BackboneJS apps dance with a composite application structure!

Yabbe (Yet Another Backbone Binding Exension)

Synapse

Backbone.ModelBinder.js

Simple, flexible and powerful bidirectional view-model binding for backbone. A javascript only solution (no markup in html) that relies on jQuery delegates for binding. Similar to how backbone view event blocks work.

  • Handles partial view binding, nested views, formatting, type conversion, arbitrary html attributes and most html element types.
  • JS Weekly Article
  • Git

Backbone Bindings

Bi-directional bindings between Backbone.View elements and Backbone.Model attributes.

Backbone.ModelBinding

Awesome model binding between models and form input elements, and more

  • KnockoutJS-style data-bind attribute support
  • Bind form fields to models and vice-versa
  • Convention based
  • Pluggable with your own conventions
  • Extensible to bind to more than just form input elements

Get the code and read the documentation:

Knockback.js

Knockout bindings for Backbone.js models and collections.

Backbone on the Couch

A little plugin for use in leanback apps, where someone is sat on the couch using a remote control to use your app.

ProxyDollar

Plugin that proxies jQuery/Zepto/$ functions for Backbone Views.

Backbone.declarative

A small plugin that adds declarative model and collection event binding to Backbone Views.

outback.js

KnockoutJS-inspired declarative binding solution for Backbone Views.

  • KnockoutJS-compatible binding handler API
  • Explicit control over dependencies (e.g. cascading select boxes)
  • Unobtrusive (i.e. code-based) and declarative (i.e. markup-based) configuration
  • Multiple binding contexts for separating transient and persistent models.
  • Tests, TodosMVC, and examples.
  • https://github.com/politician/outback

Templates

Backrub

Helpers

Builder (DOM Builder for Backbone Views)

Widgets

Slickback (integration with SlickGrid)

Vienna IKS Editables

Backbone.Aura

Backbone.Aura is a decoupled, event-driven architecture on top of Backbone.js for developing widget-based applications

Routing

jQuery Mobile Routing

Before/After Filters

Query Parameters

Frameworks

Backbone Boilerplate

Backbone.CQRS

Brunch

  • http://brunch.io - provides a powerful, rails-like directory structure & includes great "wheels" (eco, stitch, jasmine)

Capt by Ben Nolan

Mixin.js

  • Provides mixin classes for a local collections (not stored on a server) and for mixing Backbone.Events into any class (including a check if they are mixed-in).
  • Provides a facility to use Backbone.Events trigger('destroy') to do memory cleanup instead of a destroy method (event-based instance life-cycles).
  • https://github.com/kmalakoff/mixin

Backbone Module (Module loader for Backbone apps)

  • Not a JS loader like require.js, but a way to structure your code in big Backbone app projects.
  • Load JS without worrying about load sequence and dependencies between modules.
  • Source: https://github.com/juggy/backbone-module

Singool.js

Backbone-Traversal

Backbone.Analytics: Drop-In Google Analytics For Backbone's Router

Backbone-Callbacks: Node.js 风格的异步方法回调

Backbone.jFeed: RSS/ATOM 集合的资源聚合器

在你的视图中清理和防止内存泄漏。

Thingy 客户端

Backbone (改编为 MooTools)

Backbone 工厂

Backbone 状态机

Backbone 快捷键

Backbone Tastypie

  • 对 Backbone 的模型和集合的修改,以便他们能在 Django-tastypie 有好的表现。包括一个通过资源列表轻松分页的方式来访问相关的元信息。
  • https://github.com/amccloud/backbone-tastypie

Backbone 接口

  • 如果没有包含接口中所有必须的方法时,Backbone 实例将抛出错误信息。
  • 更好的代码结构,保持接口和注释独立:壹个对于你的模型、集合、视图以及路由更好的记录参考点,不要用于产品环境。
  • https://github.com/luke-siedle/backbone-interface
Clone this wiki locally