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

apix-cli

v0.3.2

Published

command line interface tool for calling apis, persist and sharing them

Downloads

7

Readme

APIX

Command line interface tool for calling apis, persist and sharing them.

npm downloads node code style: prettier semantic-release license

What is it ?

It's a command line tool replacement for :

  • postman
  • curl / wget ...

Warning

This package is not yet ready to be used. it's in conception phase.

Usage

He is an example of how you'll be able to use it.

mkdir myrepo
cd myrepo
git init # optional, but it's better to make a project with git to share it
apix init # create a project with a default name
ls -al
drwxrwxr-x 4 user user  4096 mars  27 20:06 .
drwxrwxr-x 8 user user  4096 mars  27 20:43 ..
-rw-rw-r-- 1 user user   223 mars  27 20:04 apix.api.resource.yml
-rw-rw-r-- 1 user user   258 mars  27 20:04 apix.request.resource.yml
-rw-rw-r-- 1 user user   186 mars  27 20:04 apix.resource.resource.yml
# import swagger openapi definition file that will be saved in kubernetes like format that is easier to edit than openapi
apix import github https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.yaml
# new github directory added
ls -al
drwxrwxr-x 4 user user  4096 mars  27 20:06 .
drwxrwxr-x 8 user user  4096 mars  27 20:43 ..
-rw-rw-r-- 1 user user   223 mars  27 20:04 apix.api.resource.yml
-rw-rw-r-- 1 user user   258 mars  27 20:04 apix.request.resource.yml
-rw-rw-r-- 1 user user   186 mars  27 20:04 apix.resource.resource.yml
drwxrwxr-x 2 user user 65536 mars  27 20:06 github
# 745 new api endpoints added, one kubernetes like file for each
ls github | wc -l
745
# share your imported api
git add .
git commit -m "chore: imported github api"
# executing requests
apix request get https://api.github.com/users/torvalds
# same as : request by swagger operation id
apix exec users.get-by-username 
Enter 'username': torvalds # automaticaly ask for missing parameters

Executing request: 'apix request get https://api.github.com/users/torvalds'
Status: 200 OK

{
  login: 'torvalds',
  id: 1024025,
  node_id: 'MDQ6VXNlcjEwMjQwMjU=',
  avatar_url: 'https://avatars.githubusercontent.com/u/1024025?v=4',
  gravatar_id: '',
  url: 'https://api.github.com/users/torvalds',
  html_url: 'https://github.com/torvalds',
  followers_url: 'https://api.github.com/users/torvalds/followers',
  following_url: 'https://api.github.com/users/torvalds/following{/other_user}',
  gists_url: 'https://api.github.com/users/torvalds/gists{/gist_id}',
  starred_url: 'https://api.github.com/users/torvalds/starred{/owner}{/repo}',
  subscriptions_url: 'https://api.github.com/users/torvalds/subscriptions',
  organizations_url: 'https://api.github.com/users/torvalds/orgs',
  repos_url: 'https://api.github.com/users/torvalds/repos',
  events_url: 'https://api.github.com/users/torvalds/events{/privacy}',
  received_events_url: 'https://api.github.com/users/torvalds/received_events',
  type: 'User',
  site_admin: false,
  name: 'Linus Torvalds',
  company: 'Linux Foundation',
  blog: '',
  location: 'Portland, OR',
  email: null,
  hireable: null,
  bio: null,
  twitter_username: null,
  public_repos: 6,
  public_gists: 0,
  followers: 132343,
  following: 0,
  created_at: '2011-09-03T15:26:22Z',
  updated_at: '2021-01-10T19:36:11Z'
}