A set of utils for using CanJS with Feathers client.
npm install canjs-feathers --save
Please refer to the Feathers + CanJS page in the official Feathers docs.
Note: The 1.0.0 version of
canjs-feathersis only compatible with CanJS 3.0 and DefineMaps (the can-define plugin).
Here's an example of setting up a feathers connection and Account Model for your CanJS application.
;;;;;;const host = '';const socket =;const app =// Use the feathers-reactive plugin for live-updating lists!;// Model creation would usually go in its own file,// but here it is inline for simplicity.;;;// Define a Robot Model.const Robot = DefineMap;// Define a Robot.List.RobotList = DefineList;// Combine the best of both CanJS and Feathers.service: appidProp: '_id'Map: Robot;// You can now use `find` directly from the Robot model.Robot;// Using the service directly will also return Robot instances.app;
With StealJS, you can import this module directly in a template that is autorendered:
require to load
canjs-feathers and everything else
needed to create a template that uses
var plugin = ;
jquery paths and the
global version of the plugin:
To make a build of the distributables into
dist/ in the cloned repository run
npm installnode build
Tests can run in the browser by opening a webserver and visiting the
Automated tests that run the tests from the command line in Firefox can be run with
Copyright (c) 2016, FeathersJS
Licensed under the MIT license.