# nftvisor

> Provides advanced analytics and insights on NFT collections, leveraging NFTapestry.

Latest version **1.0.2** (published 2024-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install nftvisor
pnpm add nftvisor
yarn add nftvisor
bun add nftvisor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-03-12 |
| First published | 2024-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | right1here2 |
| Maintainers | right1here2 |

## Links

- npm: https://www.npmjs.com/package/nftvisor
- Repository: https://github.com/right1here2/nftvisor
- Homepage: https://github.com/right1here2/nftvisor#readme
- Issues: https://github.com/right1here2/nftvisor/issues
- npm.io page: https://npm.io/package/nftvisor

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [moment](https://npm.io/package/moment.md) ^2.29.1
- [nftapestry](https://npm.io/package/nftapestry.md) ^1.0.0

## Recent versions

- 1.0.2 (latest) — 2024-03-12
- 1.0.1 — 2024-03-08
- 1.0.0 — 2024-03-06

## README

# NFTVisor
NFTVisor is a powerful JavaScript library that extends NFTapestry to provide advanced NFT market analysis capabilities. By leveraging additional libraries like lodash for data manipulation and moment for date handling, NFTVisor offers a simple yet effective tool for analyzing sales trends within NFT collections.

Features
Sales Trend Analysis: Efficiently analyzes sales data from specified NFT collections to identify trends over time.
Integration with NFTapestry: Inherits NFTapestry's functionalities, providing a robust foundation for fetching NFT data.
Simple and Flexible API: Offers an easy-to-use interface for developers to integrate NFT sales trend analysis into their applications.
Installation
Before using NFTVisor, ensure you have installed its dependencies. Run the following command in your project directory:

npm install nftapestry lodash moment
After installing the dependencies, you can include NFTVisor in your project:

const NFTVisor = require('./path/to/NFTVisor');
Usage
Initializing NFTVisor
Create an instance of NFTVisor by providing the URL of your Ethereum provider:

const nftVisor = new NFTVisor('https://your-ethereum-provider.url');
Analyzing Sales Trends
To analyze the sales trends of a specific NFT collection, use the analyzeTrends method. This method fetches recent sales data and groups them by sale date:

(async () => {
    const collectionSlug = 'example-collection-slug';
    await nftVisor.analyzeTrends(collectionSlug);
})();
Example
Here's a quick example showing how to use NFTVisor to analyze sales trends for a given NFT collection:

const NFTVisor = require('./path/to/NFTVisor');

(async () => {
    const nftVisor = new NFTVisor('https://your-ethereum-provider.url');
    const collectionSlug = 'cool-cats-nft';
    await nftVisor.analyzeTrends(collectionSlug);
})();
This example fetches the last 50 sales from the "cool-cats-nft" collection, calculates each sale's price in Ether, and groups sales by their transaction dates.

---
_Source: https://npm.io/package/nftvisor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
