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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ibm-rally-node

v0.0.17

Published

Customized Rally REST Toolkit for Node.js

Readme

Customized Rally REST Toolkit for Node.js

Note: This repository is a maintained fork of the original project at RallyTools/rally-node.

A Node.js client library for interacting with the Rally REST API.

Installation

The toolkit is distributed as an npm module. You can install it from GitHub Packages or npm registry.

From GitHub Packages (Recommended)

First, configure npm to use GitHub Packages for the @trevsmart scope:

# Create or update .npmrc file
echo "@trevsmart:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc

Then install the package:

npm install @trevsmart/rally-node

Note: You need a GitHub Personal Access Token with read:packages permission. Set it as GITHUB_TOKEN environment variable.

From npm registry (Legacy)

npm install ibm-rally-node

Quick Start

import RestApi from '@trevsmart/rally-node';

// Create a client
const client = new RestApi({
  apiKey: 'your-api-key',
  server: 'https://rally1.rallydev.com'
});

// Query for stories
client.query({
  type: 'story',
  fetch: ['Name', 'FormattedID', 'State'],
  limit: 10
}, (err, result) => {
  if (err) {
    console.error('Error:', err);
    return;
  }
  console.log('Stories:', result.Results);
});

API Reference

Creating a Client

import RestApi from '@trevsmart/rally-node';

const client = new RestApi({
  apiKey: 'your-api-key',        // Required: Your Rally API key
  server: 'https://rally1.rallydev.com', // Required: Rally server URL
  workspace: 'workspace-ref',    // Optional: Default workspace
  project: 'project-ref'         // Optional: Default project
});

Querying Data

// Query with callback
client.query({
  type: 'story',
  fetch: ['Name', 'FormattedID', 'State'],
  where: 'State = "In Progress"',
  limit: 10
}, (err, result) => {
  if (err) console.error(err);
  else console.log(result.Results);
});

// Query with promises
client.query({
  type: 'story',
  fetch: ['Name', 'FormattedID', 'State']
}).then(result => {
  console.log(result.Results);
}).catch(err => {
  console.error(err);
});

Creating Records

client.create({
  type: 'story',
  data: {
    Name: 'New Story',
    Project: '/project/123456789',
    Owner: '/user/987654321'
  }
}, (err, result) => {
  if (err) console.error(err);
  else console.log('Created:', result.Object);
});

Updating Records

client.update({
  type: 'story',
  ref: '/story/123456789',
  data: {
    State: 'Completed'
  }
}, (err, result) => {
  if (err) console.error(err);
  else console.log('Updated:', result.Object);
});

Deleting Records

client.del({
  type: 'story',
  ref: '/story/123456789'
}, (err, result) => {
  if (err) console.error(err);
  else console.log('Deleted');
});

Examples

Check the examples/ directory for more detailed usage examples:

  • crud.callback.js - CRUD operations using callbacks
  • crud.promise.js - CRUD operations using promises
  • query.callback.js - Query operations using callbacks
  • query.promise.js - Query operations using promises

License

Copyright (c) Rally Software Development Corp. 2014 Distributed under the MIT License.

Warranty

The Rally REST Toolkit for Node.js is available on an as-is basis.

Support

Rally Software does not actively maintain or support this toolkit. If you have a question or problem, we recommend posting it to Stack Overflow: http://stackoverflow.com/questions/ask?tags=rally

User Guide

Please view the User Guide in the attached wiki.

Performance Guide

For best practices and performance optimizations, see PERFORMANCE.md.

New in v2.1.3+: Enhanced query performance with memory optimizations, early exit logic, and new streaming methods (queryStream, queryBatch) for handling large datasets efficiently.

Developer Guide

Please view the Developer Guide in the attached wiki.