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

@api-client/core

v0.10.13

Published

The API Client's core client library. Works in NodeJS and in a ES enabled browser.

Downloads

288

Readme

API Client Core Library

The core library of the API Client application. This build on top of the experience of Advanced REST Client.

Contains the core models, events, and logic related to API Client.

Purpose

The core library provides the libraries that API Client and related projects are re-using under the hood.

The library is structured as follows:

  • models - the data model libraries providing the data schema definition for API Client and related projects and the common logic to manipulate the data
  • runtime - the executable part of the library; contains classes that executes an HTTP request, runs a series of requests defined in a project, etc
  • utilities - helper libraries that can be shared across the API Client ecosystem

What it isn't

This library provides no user flows and any kind of UI. This is a core library to be used to build those.

Runtime

These libraries can be run in a web browser, NodeJS, or both. By default this library exports the NodeJS interfaces. These are using native NodeJS APIs so they won't work in a web browser. Libraries exported in the browser.js file are save to execute in a plain web environment.

Note that when using platforms like Electron you can use both when NodeJS APIs are exposed to the renderer process.

Use cases

These libraries can be used, among others, to:

  • create a very basic, developer oriented, API definition (not a specification)
  • create lists of HTTP requests to be executed in an API tests
  • create lists of HTTP requests to be executed in an API monitoring
  • to share semi-ready documentation for an API (when API specification does not exist, otherwise you would use API Console by MuleSoft :)

Community driven

The entire API Client project is community driven. We build tools for API developers to make them successful without investing into very expensive enterprise solutions. We are happy to hear from you. If your ideas can benefit the community we will implement them. That's on us. But you are welcome to clone the project, build your idea, and send us a PR. We will accept it if it won't influence the stability of the project and it's safe to marge with the main branch.

Documentation

Please, see the docs folder for the use documentation.

TODO

Tasks planned for the future releases.

  • [ ] Add support for AMF parser to parse HTTP project data
  • [ ] Add client certificate class logic
  • [ ] Add HTTP project mocking class