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

@gpuless/references-ai

v1.0.2

Published

This CLI tool helps you to list all of document urls, and export all of your source code to feed ChatGPT.

Downloads

3

Readme

References AI CLI

This CLI tool helps you to list all of document urls, and export all of your source code to feed ChatGPT.

Installation

You can install the CLI tool using npm:

npm install -g  @gpuless/references-ai

Usage

The CLI tool provides the following commands:

refer install: Crawls and downloads webpages based on a list of URLs defined in the package.json file under the references key. refer export: Generates a CSV file containing the contents of the downloaded webpages.

Crawling and Downloading Webpages

To crawl and download webpages, you need to define a list of URLs in your package.json file. Add a references key with an array of URLs as its value, like this:

{
  "references": [
    "https://example.com",
    "https://example.org"
  ]
}

Then, run the following command:

refer install

This command will crawl the webpages and download their contents to the dist/url_list directory. It will include URLs like https://example.com/sub/a.html and https://example.com/sub/sub/a.html but will not include https://example.com/sub2.

Generating a CSV File

To generate a CSV file containing the contents of the downloaded webpages, run the following command:

refer export

This command will generate a CSV file named all_code.csv in the dist directory. The CSV file will have the following columns: Content, Title, Url, and Page.

Files listed in the .gitignore file in the current directory will be ignored. Binary files, which contain a 1-byte null, will also be ignored.

Development

To set up the development environment, clone the repository and install the dependencies using npm:

git clone https://github.com/RAKUDEJI/References-AI
cd References-AI
npm install

To build the project, run:

npm run build

To enable live-reloading during development, run:

npm run dev

This command will watch for changes in the src directory and rebuild the project whenever a change is detected. It also installs the CLI tool globally, so you can use it by running the refer command.