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

toter

v1.5.4

Published

Toter Client and Command Line Tools for publishing apps/widgets to Marketplace

Downloads

37

Readme

toter

Toter is a command line tool for publishing apps/widgets to Marketplace.

Prerequisites

  • Node v8.11.1
  • npm v5.6.0

Installing globally

Installation via npm:

npm install toter -g

This will install toter globally so that it may be run from the command line.

Configuration

Before first use, you will need to store your auth credentials, running:

toter config

This should create a file called .toter.yaml in your home directory.

Usage

toter will be accessible on the command line globally, to configure your project to use toter navigate to your project and run:

toter setup

This will create a config.json file for you with the details of your App and Widget. You can have a schema added automatic to you config.json file if you add a schema.json file in you project folder with the schema inside:

{
  "schema": [
    {
        "label": "azure_widget:physical_virtual",
        "path": "details.server.is_virtual",
        "type": "physicalVirtual"
    }
  ]
}

Update your widget/app settings and contents

You will need to make sure the widget contents you want to be uploaded to be in the dist/ folder.

If you need to update your widget or app settings at any point, modify your config.json and run the following to update:

toter update

Remove your widget and app

If you need tp remove your widget and app you can do that in two ways.: From the project's folder by running:

toter remove

From the cli by writing again "toter remove" and adding the flags "-a" or "--idApp" with the id of the app and "-w" or "--idWidget" with the id of the widget:

toter remove -a appId123 -w widgetId123

or

toter remove --idApp appId123 -idWidget widgetId123

Submit your widget for review

Once you have tested your widget in your region, you are able to submit it for review to be released as a live Marketplace widget, run the following to request approval:

toter submit

Approve a widget

If allowed to, it is possible to approve a widget triggering a multi region sync, dependending on how to distribution property is set up.

toter approve

Verbose mode

All the commands can be run in verbose mode. This mode displays specific information such as the URL being used and the payload sent / received.

toter setup -v

App/Widget name: my-widget
App/Widget description: my-widget-description
Widget deployment location (pick one or many separated by comma) [all,ap,au,core,eu,in,jp,sandbox,us]: all
[ 'all' ]

Will display more detailed information:

HTTP post /api/apps
Created app
{ user_id: '00000000-0000-0000-0000-000000000001',
  customer_id: '00000000-0000-0000-0000-000000000001',
  origin: 'focus',
  name: 'my-widget',
  created_at: '2018-06-26T11:19:17.690225Z',
  id: '1340b0ca-4cf9-4bf9-9c29-40042b0f411e',
  updated_at: '2018-06-26T11:19:17.690642Z',
  description: 'my-widget-description',
  subscribers: [ '00000000-0000-0000-0000-000000000001' ],
  status: 'created',
  distribution: [ 'all' ] }