@apitraffic/strapi

0.1.2 • Public • Published





Strapi Marketplace   •   Website   •   Docs   •   X

ApiTraffic helps engineering teams save development time so they can ship features faster.

Features

How ApiTraffic Works

Once you’ve installed the ApiTraffic plugin into your Strapi app, each request/response will be sent to the ApiTraffic, processed, and will then appear within the desired bucket.

From within your ApiTraffic account you will see real-time requests to your API, API analytics, the load size of the response, etc. Additionally, multi-step workflows can be created that will trigger based on the request data. This enables developers to integrate with over 240 applications without adding any additional code or logic to their Strapi application.

Visit our knowledgebase for the complete documentation.

Security

Redacting Data

Data can be redacted either before it leaves your server or once it arrives to ApiTraffic for processing. Data redaction settings do not require any code changes as all configuration is done within your ApiTraffic account and pushed down to each connected server.

Learn more about redacting data.

Request Exclusions

Exclusions can be configured in cases where certain endpoints should not be logged. Like data redactions (above), no integration specific changes are required to exclude request that match a certain criteria.

Learn more about excluding requests.

Get Started

Add ApiTraffic to your Strapi application quickly by following these steps:

An active ApiTraffic account is required to connect Strapi to ApiTraffic. Please create a free trial if you do not already have an account.

1. Install the Plugin

IMPORTANT: Node 18+ required.

npm i @apitraffic/strapi --save

2. Add to Middlewares Configuration

The middleware must be added to the config/middlewares.js file.

module.exports = [
  //...
  'plugin::apitraffic.apitraffic',
]

3. Configuration

Once installed, 2 environment variables must be added which tell the plugin where to send the data. These variables can either be added to the .env file or set in the same way other environment variables are being set.

Environment Variable Required Type Details
API_TRAFFIC_TOKEN Yes String Ingest token provided from your ApiTraffic account.
API_TRAFFIC_BUCKET Yes String The bucket the data should be sent to when ingested.

Community

To get started: Star & watch this repository to stay updated on the latest changes.

Follow us on our Blog and on X.

Chat with the ApiTraffic team and other memebers on Discord and follow our tutorials and other videos on YouTube.

ApiTraffic Discord

ApiTraffic YouTube

ApiTraffic on X

How to contribute

Here are some ways you can help improve ApiTraffic:

  • Give ApiTraffic a try and share your feedback to help make ApiTraffic even better for you. Feel free to reach out to us on Discord!
  • Join our Discord to connect with other members, share your experiences, and learn from one another.
  • Submit a pull request to any of our open source repositories. Be sure to review the contribution guide in the repository for detailed instructions on how to get started. We’re excited to see your contributions!

Package Sidebar

Install

npm i @apitraffic/strapi

Weekly Downloads

17

Version

0.1.2

License

MIT

Unpacked Size

17.7 kB

Total Files

4

Last publish

Collaborators

  • jason-apitraffic