
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
avo-inspector
Advanced tools
[](https://badge.fury.io/js/avo-inspector)
This is a quick start guide. For more information about Inspector project please read Avo documentation.
If you are using SSR or web workers switch to this library build
If you are looking for React Native library please switch to this branch and use
react-native-avo-inspector
npm package.
The library is distributed with npm
npm i avo-inspector
or
yarn add avo-inspector
Obtain the API key at Avo.app
import * as Inspector from "avo-inspector";
let inspector = new Inspector.AvoInspector({
apiKey: "your api key",
env: Inspector.AvoInspectorEnv.Dev,
version: "1.0.0",
appName: "My app",
suffix: "unique-string" // optional, if you have more than 1 instance of Avo Inspector in same project
});
Logs are enabled by default in the dev mode and disabled in prod mode.
inspector.enableLogging(true);
The setup is lightweight and is covered in this guide.
Every event sent with Avo Function after this integration will automatically be sent to Inspector.
Whenever you send tracking event call one of the following methods:
Read more in the Avo documentation
This method gets actual tracking event parameters, extracts schema automatically and sends it to the Inspector backend. It is the easiest way to use the library, just call this method at the same place you call your analytics tools' track methods with the same parameters.
inspector.trackSchemaFromEvent("Event name", {
"String Prop": "Prop Value",
"Float Prop": 1.0,
"Boolean Prop": true,
});
If you prefer to extract data schema manually you would use this method.
inspector.trackSchema("Event name", [
{ propertyName: "String prop", propertyType: "string" },
{ propertyName: "Float prop", propertyType: "float" },
{ propertyName: "Boolean prop", propertyType: "boolean" },
]);
let schema = inspector.extractSchema({
"String Prop": "Prop Value",
"Float Prop": 1.0,
"Boolean Prop": true,
});
You can experiment with this method to see how more complex schemas look, for example with nested lists and objects.
In order to ensure our SDK doesn't have a large impact on performance or battery life it supports event schemas batching.
Default batch size is 30 and default batch flush timeout is 30 seconds. In development mode batching is disabled.
inspector.setBatchSize(15);
inspector.setBatchFlushSeconds(10);
Avo (https://www.avo.app), friends@avo.app
AvoInspector is available under the MIT license.
2.1.0
set networkTimeout
setter, in msFAQs
[](https://badge.fury.io/js/avo-inspector)
The npm package avo-inspector receives a total of 24,015 weekly downloads. As such, avo-inspector popularity was classified as popular.
We found that avo-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.