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

contractchicken

v0.0.24

Published

With contractChicken you can quickly prototype restful api’s with open api schemas from a the command line.

Downloads

5

Readme


What is ContractChicken?

ContractChicken is a powerful command-line tool designed to expedite the process of mocking RESTful APIs effortlessly. It seamlessly integrates OpenAPI schemas, enhancing the speed and efficiency of API development.

What Can ContractChicken Do?

mock_service Mock a RESTful API service quickly

mock_new_services Mock new services in existing architecture

link_services Link existing services without any development time.

prototype_architecture Prototype your entire backend by chaining multiple ContractChicken services.

ContractChicken empowers developers to:

  • Mock RESTful APIs: Quickly create mock APIs from OpenAPI schemas.
  • Customize HTTP Status Codes: Return different HTTP status codes for any endpoint in your contract using the status= query parameter.
  • Introduce Delays: Simulate slow network conditions by adding artificial delays to responses with the delay= query parameter.

Installing ContractChicken

You can easily install ContractChicken by running the following command:

npm install -g contractchicken

Get up and running by downloading one of our Example Contracts and then running:

npx contractchicken [DOWNLOADED_CONTRACT_LOCATION]

Using ContractChicken

Get started with ContractChicken by running the following command, replacing [OPENAPI_CONTRACT_LOCATION] with the location of your OpenAPI contract:

contractchicken [OPENAPI_CONTRACT_LOCATION]

Returning Different HTTP Status Codes

You can customize the HTTP status code returned from any endpoint in your contract. Simply include the status= query parameter in your request with the desired status code.

Returning with Delays

ContractChicken allows you to introduce delays to your responses, simulating slow network conditions. To add a delay, include the delay= query parameter in your request, specifying the delay time in milliseconds. This feature is particularly useful for testing under adverse network conditions.

Feel free to explore ContractChicken's capabilities and make your API development process more efficient and flexible. 🚀

Added Recently

MULTIPLE servers chainng redirect url postman tests

Coming Soon

Chain specific data