• Stars
    star
    402
  • Rank 103,484 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 14 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Work with models in your JavaScript

js-model

js-model is a library that allows you to work with models in your JavaScript.

In brief

Declare a model class:

var Todo = Model("todo")

Now create and manipulate model instances:

var todo = new Todo({ text: "do it" })
todo.attr("when", "now")
todo.save()

Documentation / download / more

For notes on getting started, persisting via REST or localStorage, using with Sammy, API documentation and download links visit the js-model docs site.

Suggestions / questions / issues / comments

Feel free to use Github issues for any of the above.

Copyright

Copyright 2010-2012 Ben Pickles. See LICENSE for details.

More Repositories

1

peity

Progressive <svg> pie, donut, bar and line charts
HTML
4,220
star
2

parklife

Render a Rack app (Rails/Sinatra/etc) to a static build so it can be served by Netlify, Now, GitHub Pages, S3, or any other web server.
Ruby
182
star
3

onScreen

Custom jQuery selector to detect elements currently on-screen
HTML
87
star
4

screamshot

A synchronous HTTP screenshot service for headless Chrome.
Ruby
26
star
5

medium

Medium API Ruby Client
Ruby
21
star
6

operatic

A minimal standard interface for your Ruby operations.
Ruby
19
star
7

aesthetic

Regression-test your site and ensure that tiny CSS changes don't have unintentional side effects
Ruby
11
star
8

fewer

Fewer is a Rack endpoint to bundle and cache assets and help you make fewer HTTP requests.
Ruby
8
star
9

js-model-rails

Work with models in your JavaScript in your Rails
JavaScript
6
star
10

phlex-sinatra

A Phlex adapter for Sinatra
Ruby
5
star
11

clocks

Clock experiments
JavaScript
5
star
12

wapper

Wapper (wapər) - wrap selected text in other elements
JavaScript
3
star
13

contentz

Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
Ruby
3
star
14

snipplet

A customisable bookmarklet router based on shortwaveapp.com and written in Rails.
Ruby
2
star
15

template

Template objects that are jQuery objects that are template objects that are...
JavaScript
2
star
16

dragonfly-s3-server

Isolate Dragonfly processing and serving of S3 assets from your main app.
Ruby
2
star
17

all_your

A little experiment to see how many characters can be used in a link shortener's path.
Ruby
1
star
18

v

A Vim command line wrapper
Ruby
1
star
19

benpickles.github.com

JavaScript
1
star
20

ladder-native

JavaScript
1
star