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

@plastichub/osr-search

v0.1.6

Published

## Installation

Downloads

7

Readme

Search CLI

Installation

npm i @plastichub/osr-search

Please create a config file, in your home directory, eg: C:\\Users\\TeleTubbie\\.config\\osr\\config.json, with the following content

{
    "serpapi": {
        "see":"https://serpapi.com/manage-api-key"
        "key": "3747a502f499076d7cab9b0fac48cecef50a440c850fbccd7dac05e89d64d60e"
    },
    "geocode_key":{
        "see": "https://geocode.maps.co/join/ - needed only to convert names into gps coords, for --searchFrom"
        "key": "Your GeoCode Key"
    }
}

Search Google Maps

  • --debug: Debug messages (default: true)
  • --query: Query (default: plastichub)
  • --location: Location (default: defaultFromLocation)
  • --google_domain: Google domain (default: defaultGoogleDomain)
  • --language: Language (default: en)
  • --engine: Engine (default: google_maps)
  • --searchCoord: Search coord, comma separated: [locationString(home())] (default: [locationString(home())])
  • --searchFrom: Use this name instead of a coord, needs geocode API key
  • --filterContinent: Filter results by continent
  • --filterCountry: Filter results by country
  • --filterType: Filter results by type, eg "restaurants"
  • --limit: Limit results
  • --meta: Append JSON file, with meta data of the found websites, eg: og-image, keywords, description
  • --dst: Output path, supports XLS|MD (default: ./tests/maps/${QUERY}-${FROM}-${ENGINE}-${DOMAIN}-${LANG}.xls)
  • --env_key: Environment key to the config path (default: OSR-CONFIG)
  • --api_key : SERPAPI Key
  • --source : path to a JSON file, containing categories with related search phrases. To save results per category, use --dst='${OSR_CUSTOMER_DRIVE}/campaign/test/${FROM}/${CATEGORY}/${QUERY}-${MM}.xls'
  • --cache : when true, skip existing search result files
  • --findEMail : scrape websites for email addresses
  • --meta : retrieve meta tags, to be stored in JSON only
{
  "injection": ["plastique", "recyclage plastique", "fabrication pièces plastiques"],
  "extrusion": ["film plastique", "fabrication tube plastique", "recyclage plastique"],
  "education": ["formation plasturgie", "cours polymères", "recyclage plastique pédagogique"],
  "3d print": ["impression 3d plastique", "imprimante 3d recyclage", "matériau filament plastique"]
}

### example searches

osr-search googlemaps --query="fablab" --searchFrom="Berlin, Germany" --language=de --google_domain=google.de

# this will create by default a file at tests/maps/fablab-Berlin, Germany-google_maps-google.de-de.md, using the default path for --dst './tests/maps/${QUERY}-${FROM}-${ENGINE}-${DOMAIN}-${LANG}.xls'

Example searches using SerpAPI [playground](https://serpapi.com/playground?engine=google_maps&q=+inyecci%C3%B3n+de+plastico&ll=%4041.6911354%2C2.1652746%2C9z&google_domain=google.es&hl=es&type=search)

https://serpapi.com/playground?q=+inyecci%C3%B3n+de+plastico&location=Catalonia%2C+Spain&google_domain=google.es&gl=es&hl=es

https://serpapi.com/playground?engine=google_maps&q=+inyecci%C3%B3n+de+plastico&ll=%4041.6911354%2C2.1652746%2C9z&google_domain=google.es&hl=es&type=search

OSR - Search

  • [ ] Google - SERP API provider
  • [ ] Discourse
  • [ ] OSR - Library index
  • [ ] API
    • [ ] query
    • [ ] info
    • [ ] test
  • [ ] Maps
    • [ ] complete email address using finder.io
    • [ ] scrape website for changes, metrics, ...
    • [ ] find social media accounts
    • [ ] population details
    • [ ] industry (export, ...)
  • [ ] osr-ai (langchain) : scrape | summarize
  • [ ] site meta dump
  • [ ] osr-i18n filter | chain
  • [ ] keyword searches/matches/related, see ahrefs
  • [ ] backlinks, see api

References

APIs