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

rapp-platform-api

v0.7.5

Published

Containes RAPPCloud API modules used for interfering wth RAPP Platform as well as the RAPP Objects.

Downloads

7

Readme

JS RAPP API

Synopsis

Containes RAPPCloud API modules used for interfering wth RAPP Platform as well as the RAPP Objects.

Application development

You can distribute robotic applications you make using this API through this Robot Apps Store

Dependencies

To use this JS API you need nodejs and npm. You can run the global_deps_install_script.sh located in the root folder to install them along with grunt-cli and mocha which are the global dependencies the API needs for task management and testing.

The rest dependencies (required npm modules), will be taken care of, from npm, while you install the rapp-platform-api package.

Installation

Installing the rapp-platform-api is as easy as

npm install rapp-platform-api

To install it globally:

npm install rapp-platform-api -g

If you also want to install the developer depencdencies, go to the root folder of the project and execute:

npm install

Usage

The examples located in the examples directory showcase how you may use the RAPPCloud services for your convenience. Provided you have succesfully installed the API in your system, you can require the service(s) that you want to use in your application, after requiring the RAPPCloud module as shown in the examples:

var RAPPCloud = require('rapp-platform-api/lib/cloud/RAPPCloud');
RAPPCloud.qr_detection = require('rapp-platform-api/lib/cloud/qr_detection');
RAPPCloud.face_detection = require('rapp-platform-api/lib/cloud/face_detection'); 
var services = new RAPPCloud();

services.qr_detection('../../testdata/qrcode.png', 'png', handler);
services.face_detection('../../testdata/faces.png', 'png', handler);

For the RAPP platform API objects you would have to point as well, to the respective directory in order to require them:

var RAPPObjects = require('rapp-platform-api/lib/objects/RAPPObject');
RAPPObject.face = require('rapp-platform-api/lib/objects/face');
var objects = new RAPPObject();

Directories

  • lib/config: The folder with the configurations.
  • lib/cloud: The RappCloud services directory.
  • lib/objects: The Rapp Objects directory.
  • examples: Examples that showcase how you may use the RAPPCloud services for your convenience.
  • test: Unit tests for all the services and objects.

Tests

For the following to run you will also need to install the developer dependencies (check installation section).

In the test directory unit tests for all the services and objects can be found. In order to run them while on root directory type:

npm test

Examples

The source files for the examples are under the examples folder located in the root of the JS Rapp Platform API.

You can run them individually, or use them as templates.

Documentation

For a complete list of all RAPP JS API Cloud services and Objects along with their documentation see here.

You might as well want to genetate documentation automatically from the comments of the code. For the following to run you will also need to install the developer dependencies (check installation section).

This package's source-code is documented using the JSDoc javascript documentation generator.

Generate documentation for the RAPP API Cloud Services only:

npm run doc-cloud

Generate documentation for the RAPP API Objects only:

npm run doc-objects

Gererate documentation for ALL:

npm run doc

Or

grunt jsdoc

Generated doc files are located under the doc/ directory.

Help

If you run into any bugs or issues, please report them on github. Alternatively, hit us up on Gitter: Join the chat at https://gitter.im/rapp-project/rapp-api