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

spectorai

v0.0.1-alpha.3

Published

Spector AI automates your tasks with AI

Downloads

5

Readme

Spector AI

Spector AI

Description made with GPT 3.5

Discover the power of Spector AI! 🔮 An awesome tool to generate tests, documentation and code explanations in any programming language 🤯 It's magical! Simply install Node.js, create an Open AI account, and add your environment variables. And ready! 🚀

Features

  • 🔭 Compatible with any programming language.
  • 🧪 Test generation.
  • 📙 Documentation generation.
  • 🧮 Generation of functions.
  • 🗒️ Code explanation.
  • ⚡ Easy to configure and integrate.
  • 🛡️ Written in Typescript.
  • 👨🏻‍💻 Community driven.

Requirements

Installation

npm install spectorai -g

Setup

Before using the tool it is necessary to add environment variables.

Linux or Mac

export OPENAI_API_KEY=

Windows

set OPENAI_API_KEY=

Getting Started

Once the above steps are completed run the following command:

spectorai

You will be shown a screen like this:

Spector AI CLI

Don't worry if you don't see the same options, we're working on it.

Now select the option you want to use and continue to fill in the information.

Custom environment variables

Spector AI is ready to adapt to your needs in case the default settings are not sufficient. The following environment variables are available:

  • OPENAI_API_KEY: You can get the API KEY at the following link https://platform.openai.com/account/api-keys
  • OPENAI_MIN_TOKENS: Specifies the minimum number of characters to generate a response. By default its value is 255

Linux & Mac

export OPENAI_API_KEY=

export OPENAI_MIN_TOKENS=

Windows

set OPENAI_API_KEY=

set OPENAI_MIN_TOKENS=

Supported programming languages

Spector AI currently supports most programming languages. How is this possible? The question is that Spector AI extracts the extension of the file on which we want to perform a certain task. Either to generate tests, documentation or code explanations.

Limitations

Because the GPT 3.5 model supports a maximum of 4,096 tokens (includes prompt + output), it is possible that your tasks (test creation, documentation, etc) will not be fully completed due to this limitation. That's why we're looking forward to GPT 4. 😃