0.3.1 • Published 8 months ago

at-your-service v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

MIT License

About the Project and Why

This tool is designed to help tackle problems that arise from a lack of awareness on API behaviour.

It records network requests under the hood using a service worker proxy. As the tool makes observations of network traffic over time, it learns the structure of the underlying API.

Features

  • Spec gen: autogenerate OpenAPI 3.1 specifications from network traffic
  • Code gen: convert network response bodies into code for 10+ languages including TypeScript, Python, and JSON Schema
  • API Observability: explore the network layer with enhanced tooling
  • Easy installation: designed to plug in and go with an existing application

Getting Started

at-your-service features a CLI tool that places its service worker file into a directory. You likely wish to place this in public or static. See more information here on common locations for static files.

The service worker must be served from the root of your site. Once this is installed run the start script in your application code.

  1. Install the npm package
    npm install -D at-your-service@latest
  2. Add service worker to your public, static, or otherwise root directory
    npx at-your-service@latest <directory>
  3. Run the start script in your application

    import { startAtYourService } from "at-your-service";
    
    startAtYourService();
  4. A button to open the drawer will be visible on your site

  5. You can view copied OpenAPI 3.1 specifications in editor-next.swagger.io. At the time of writing, you need to manually change the version from 3.1.0 to 3.0.0 after pasting the specification. Support for the new version of the specifcation is an ongoing process

How It Works

More information on the rationale, functionality, and architecture of the tool can be found here.

Contributing

A development environment exists in demo, which when built is the landing page for the library.

If you have a suggestion that would make this better, please fork the repo and create a pull request.

Limitations

The library creates specifications that are only as accurate as the underlying observations. If your application relies on a response body that has not been observed, then type information for it will not be available.

Overall the intent is to produce a best guess that reveals API behaviour. This will never be a replacement for proper documentation.

License

Distributed under the MIT License. See LICENSE for more information.

0.3.0

8 months ago

0.3.1

8 months ago

0.2.9

11 months ago

0.2.7

1 year ago

0.2.8

1 year ago

0.1.27

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.6

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.19

1 year ago

0.1.17

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago