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

aso-v2

v2.0.14

Published

Modern App Store Optimization (ASO) tools for iTunes and Google Play

Downloads

985

Readme

ASO-V2

NPM Version [License][license-url]

ASO-V2 is a modern Node.js library for App Store Optimization (ASO) analysis. It helps you optimize your app's visibility on both Google Play and Apple App Store by providing detailed keyword analysis, competitor insights, and market opportunities.

This is a TypeScript rewrite and enhancement of the original ASO package with modern features, better error handling, and improved performance.

Features

  • 🔍 Comprehensive keyword analysis
  • 📊 Market saturation metrics
  • 🏆 Competitor analysis
  • 💡 Keyword suggestions
  • 🔄 Cross-store support (Google Play & App Store)
  • 📈 Traffic score calculation
  • 🎯 Difficulty score assessment
  • ⚡ Modern TypeScript implementation
  • 🛡️ Robust error handling
  • 🚦 Built-in rate limiting
  • 💾 Optional request caching

Installation

npm install aso-v2

Quick Start

import { ASO } from 'aso-v2';

// For Google Play Store
const gplay = new ASO('gplay');

// For Apple App Store
const appStore = new ASO('itunes');

// Analyze a keyword
const analysis = await gplay.analyzeKeyword('fitness app');
console.log(analysis);

Basic Usage

Keyword Analysis

const analysis = await gplay.analyzeKeyword('fitness app');

// Results include:
{
  difficulty: {
    titleMatches: {
      exact: number,
      broad: number,
      partial: number,
      none: number,
      score: number
    },
    competitors: {
      count: number,
      score: number
    },
    // ... other metrics
    score: number
  },
  traffic: {
    suggest: {
      score: number
    },
    ranked: {
      count: number,
      avgRank: number,
      score: number
    },
    // ... other metrics
    score: number
  }
}

App Search

const results = await gplay.search({
  term: 'fitness tracker',
  num: 10,
  fullDetail: true
});

Get App Details

const appInfo = await gplay.getAppInfo('com.example.app');

Keyword Suggestions

const suggestions = await gplay.suggest({
  strategy: 'competition',
  appId: 'com.example.app',
  num: 30
});

Advanced Usage

Market Analysis

import { ASOAnalyzer } from 'aso-v2';

// Calculate market saturation
const saturation = ASOAnalyzer.calculateMarketSaturation(
  searchResults,
  10000 // minimum installs threshold
);

// Get competitive analysis
const analysis = ASOAnalyzer.analyzeCompetitiveGap(
  myApp,
  competitors
);

Keyword Combinations

const combinations = ASOAnalyzer.generateKeywordCombinations(
  ['fitness', 'workout', 'trainer'],
  100 // max length
);

Custom Configuration

const gplay = new ASO('gplay', {
  country: 'us',
  language: 'en',
  throttle: 1000, // milliseconds between requests
  timeout: 10000, // request timeout
  cache: true     // enable request caching
});

API Reference

ASO Class

Constructor

new ASO(store: 'gplay' | 'itunes', config?: StoreConfig)

Methods

  • analyzeKeyword(keyword: string): Promise<ScoreResult>
  • search(options: SearchOptions): Promise<SearchResult[]>
  • getAppInfo(appId: string): Promise<AppInfo>
  • getSimilarApps(appId: string, fullDetail?: boolean): Promise<AppInfo[]>
  • getSuggestions(term: string): Promise<string[]>
  • suggest(options: SuggestOptions): Promise<string[]>
  • getAppKeywords(appId: string): Promise<string[]>

ASOAnalyzer Class

Static methods for advanced analysis:

  • analyzeTitleMatches(keyword: string, apps: AppInfo[])
  • analyzeCompetitors(keyword: string, apps: AppInfo[])
  • calculateMarketSaturation(searchResults: SearchResult[], minInstalls?: number)
  • calculateKeywordRelevancy(keyword: string)
  • generateKeywordCombinations(keywords: string[], maxLength?: number)
  • analyzeCompetitiveGap(mainApp: AppInfo, competitors: AppInfo[])

Types

SearchOptions

interface SearchOptions {
  term: string;
  num?: number;
  fullDetail?: boolean;
  price?: 'all' | 'free' | 'paid';
  sortBy?: 'relevance' | 'rating' | 'newest';
}

SuggestOptions

interface SuggestOptions {
  strategy?: 'similar' | 'competition' | 'category' | 'arbitrary' | 'keywords';
  appId?: string;
  apps?: string[];
  keywords?: string[];
  num?: number;
}

StoreConfig

interface StoreConfig {
  country?: string;
  language?: string;
  throttle?: number;
  timeout?: number;
  cache?: boolean;
}

Error Handling

ASO-V2 includes robust error handling with retry mechanisms:

try {
  const analysis = await gplay.analyzeKeyword('fitness app');
} catch (error) {
  if (error.code === 'THROTTLED') {
    // Handle rate limiting
  }
  // Handle other errors
}

Best Practices

  1. Use throttling to avoid rate limiting
  2. Enable caching for repeated requests
  3. Handle errors appropriately
  4. Use fullDetail sparingly to reduce API calls
  5. Batch operations when possible

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -am 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Create a Pull Request

Credits

This is a TypeScript rewrite and enhancement of the original ASO package by Facundo Olano. The new version includes modern features, better error handling, TypeScript support, and improved performance while maintaining the core functionality of the original package.

License

MIT License - see the LICENSE.md file for details

[license-url]: LICENSE.md# aso-v2

aso-v2