All Projects → RusticiSoftware → Tincanjs

RusticiSoftware / Tincanjs

Licence: apache-2.0
JavaScript library for the Experience API (Tin Can API)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Tincanjs

Ag Psd
Javascript library for reading and writing PSD files
Stars: ✭ 135 (-25.41%)
Mutual labels:  javascript-library
Vivid
a JavaScript library which is built to easily customize and use the SVG Icons with a blaze.
Stars: ✭ 1,797 (+892.82%)
Mutual labels:  javascript-library
React Letter
✉️ Display e-mails in your React.js projects. (Targets Gmail rendering.)
Stars: ✭ 164 (-9.39%)
Mutual labels:  javascript-library
Liowebrtc
An event-based WebRTC library that makes it easy to embed real-time peer to peer communication into UI components.
Stars: ✭ 138 (-23.76%)
Mutual labels:  javascript-library
Javali
🐗 Create a modern JavaScript library that uses ES6 + Jest
Stars: ✭ 144 (-20.44%)
Mutual labels:  javascript-library
React Formik Ui
A simple component library, composed out of pure HTML form elements to make your live easier composing forms with Formik and React
Stars: ✭ 154 (-14.92%)
Mutual labels:  javascript-library
Jiff
JavaScript library for building web-based applications that employ secure multi-party computation (MPC).
Stars: ✭ 131 (-27.62%)
Mutual labels:  javascript-library
Ui Components
Most used UI Components — of web applications. Curated/Most loved components for web development
Stars: ✭ 175 (-3.31%)
Mutual labels:  javascript-library
React Border Wrapper
A wrapper for placing elements along div borders.
Stars: ✭ 147 (-18.78%)
Mutual labels:  javascript-library
Mag.js
MagJS - Modular Application Glue
Stars: ✭ 157 (-13.26%)
Mutual labels:  javascript-library
Raven Weapp
Sentry SDK for WeApp
Stars: ✭ 142 (-21.55%)
Mutual labels:  javascript-library
Typeit
The most versatile JavaScript typewriter effect library on the planet.
Stars: ✭ 2,406 (+1229.28%)
Mutual labels:  javascript-library
Zam
⚡️ A component based library that encourages single-page applications.
Stars: ✭ 156 (-13.81%)
Mutual labels:  javascript-library
Photojshop
🎨 Photo editing JavaScript library
Stars: ✭ 137 (-24.31%)
Mutual labels:  javascript-library
Currency.js
A javascript library for handling currencies
Stars: ✭ 2,214 (+1123.2%)
Mutual labels:  javascript-library
React Json Schema
Configure and build views using JSON schemas mapped to React components
Stars: ✭ 131 (-27.62%)
Mutual labels:  javascript-library
Green Audio Player
Audio Player javascript library
Stars: ✭ 151 (-16.57%)
Mutual labels:  javascript-library
Remotestorage.js
⬡ JavaScript client library for integrating remoteStorage in apps
Stars: ✭ 2,155 (+1090.61%)
Mutual labels:  javascript-library
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+6839.78%)
Mutual labels:  javascript-library
Fat
Web's fastest and most lightweight animation tool.
Stars: ✭ 157 (-13.26%)
Mutual labels:  javascript-library

A JavaScript library for implementing the Experience API (Tin Can API).

Build Status GitHub release npm license

For hosted API documentation, basic usage instructions, supported version listing, etc. visit the main project website at:

http://rusticisoftware.github.io/TinCanJS/

For more information about the Experience API visit:

http://experienceapi.com/

Browser Usage

TinCanJS is available via npm and Bower.

The browser environment is well tested and supports two kinds of Cross Origin requests which is sufficient to cover most versions of Chrome, FireFox, Safari as well as IE 8+. IE 6+ are supported for non-CORS (because they don't support it).

Include one of build/tincan-min.js or build/tincan.js as follows:

<script src="build/tincan-min.js"></script>

Node.js Usage

TinCanJS is available via npm.

The Environment/Node.js wrapper used in this version has a dependency on the 'xhr2' module which is also available via npm. It is used to allow the interfaces to the underlying LRS requests to have the same API. As such currently there is no support for synchronous requests when using this environment.

Install via:

npm install tincanjs

And within code:

var TinCan = require('tincanjs');

Environments

Implementing a new Environment should be straightforward and requires overloading a couple of methods in the library. There are currently two examples, Environment/Browser and Environment/Node.

Attachment Support

Sending and retrieving statements with attachments via the multipart/mixed request/response cycle works end to end with binary attachments in Node.js 4+ and in the typical modern browsers: Chrome 53+, Firefox 48+, Safari 9+, IE 10+ (current versions at time of implementation, older versions may work without changes but have not been tested). Attachments without included content (those using only the fileUrl property) should be supported in all environments supported by the library.

Several polyfills (TypedArrays, ArrayBuffer w/ slice, Blob, TextDecoder/TextEncoder) are needed to support various browser versions, if you are targeting a recent enough set of browsers you can reduce the overall size of the built library by commenting out those polyfills in the Gruntfile.js file and building yourself.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].