npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

indiecast-model

v0.3.0

Published

JSData resource definitions for IndieCast

Downloads

2

Readme

indiecast-model

JSData model definitions and other components shared among apps.


Directory structure

component/ # Component definitions
├── datastore/
├── rethinkdb-adapter/
├── spec-config.js
└── spec.js
model/ # Model definitions
├── core/
└── spec.js
CHANGELOG.md
.gitignore
.jscsrc
.jshintrc
package.json
README.md
spec.js

Libraries used

JSData

Robust framework-agnostic in-memory data store.

https://github.com/js-data/js-data http://www.js-data.io

Wire

A light, fast, flexible Javascript IOC container.

https://github.com/cujojs/wire http://cujojs.com/

Gulp

The streaming build system.

https://github.com/gulpjs/gulp http://gulpjs.com/

RethinkDB

The open-source database for the realtime web.

https://github.com/rethinkdb/rethinkdb http://rethinkdb.com/


Recommended tools

Mac OS or some flavor of Ubuntu

Windows is not recommended for development. Try elementary OS.

Sublime Text 3

http://www.sublimetext.com/3

Sublime Text 3 packages

First install Package Control then use it to install the following packages:

  • AdvancedNewFile
  • DocBlockr
  • JavaScript & NodeJS Snippets
  • JSCS-Formatter
  • NodeRequirer
  • SideBarEnhancements
  • SublimeLinter
  • SublimeLinter-jscs
  • SublimeLinter-jshint
  • SublimeLinter-json
  • Terminal

An overlay terminal

Ubuntu

sudo apt-get install guake

Mac

Quake?

A GUI for git

Ubuntu: Git Cola

# Download git cola
wget -qO /tmp/git-cola_2.2.1-1_all.deb https://launchpad.net/ubuntu/+archive/primary/+files/git-cola_2.2.1-1_all.deb

# Install it with dpkg
sudo dpkg -i /tmp/git-cola_2.2.1-1_all.deb

# Fix broken dependencies
sudo apt-get -y install -f

Mac: SourceTree


Git etiquette

Branching

The master branch is for production-ready code only. Code should be merged from release branches. Each merge defines a new release.

The develop branch is for code under development. Changes should not be committed directly to develop. They should only be merged in from feature branches.

Feature branches should branch off of develop or another feature branch, for sub-features. When ready, they should be merged back into develop with the --no-ff flag.

Release branches branch off of develop when develop is nearly ready for release. This frees develop for the next version while final touches can be made on the release branch. When ready, it should be merged into master and back into develop with the --no-ff flag.

Hotfix branches branch off of master and are for fixing bugs after major releases. When ready, they should merge into back into master and into develop with the --no-ff flag.

See http://nvie.com/posts/a-successful-git-branching-model/ for in-depth explanation of this branching model.

Committing

If you have a lot of changes to commit, you should generally split them up into multiple commits. While a single commit can contain changes to many files, each commit should only serve a single purpose.

This can be easily done with most git GUIs such as SourceTree or Git Cola.