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

@answerai/daisy

v0.1.8

Published

D.A.I.S.Y. - Document Automation and Intelligent System. A helpful bot that documents your code for you. It allows you to save it into memory and chat with it using AnswerAI

Downloads

20

Readme

D.A.I.S.Y. CLI

The D.A.I.S.Y. CLI package allows you to use AI to document your codebase and submit it to the AnswerAI API for searchability within the platform.

Installation

To install the D.A.I.S.Y. CLI package, use the following command:

npm install -g @answerai/daisy

Usage

To use the D.A.I.S.Y. CLI, run the daisy command followed by the desired options and commands. Here are the available commands and options:

Usage: daisy [options] [command]

Options:
  -h, --help       display help for command

Commands:
  start [options]  Start D.A.I.S.Y.
  mem              Memorize to Pinecone
  update           Update changed files
  help [command]   display help for command

start

Usage: daisy start [options]

Start D.A.I.S.Y.

Options:
  -i, --input <path>  Path to the file or directory to be documented. leave blank to run against the entire code base
  -y, --yes           Skip the confirmation prompts and proceed with the magic
  -h, --help          display help for command

mem

Usage: daisy mem [options]

Memorize to Pinecone

Options:
  -h, --help  display help for command

update

Usage: daisy update [options]

Update changed files

Options:
  -h, --help  display help for command

Configuration

The D.A.I.S.Y. CLI package requires a configuration file named .daisyrc at the root of the project. If one is not there, a default one will be created.

Environement variables

  • PINECONE_INDEX_NAME | index name if using pinecone and openAi APIs directly | defaults to 'daisy'
  • PINECONE_NAMESPACE | namespace if using pinecone and openAi APIs directly | defaults to 'default'
  • DAISY_DIRECTORY_NAME | directory where daisy files will be created | defaults to 'daisy'
  • MARKDOWN_DIRECTORY | directory where markdown files are stored | defailts to 'markdown' within the daisy directory
  • PROMPTS_FILE_PATH | directory where prompt files are stored | defaults to 'prompts' within the daisy directory
  • TEMPLATE_FILE_PATH | directory where template files are stored | defaults to 'templates' within the daisy directory
  • ANSWERAI_API_KEY | anwerai api key when using answerai API | required when using the answerAI API
  • OPENAI_API_KEY | openai api key when using pinecone and openAi APIs directly | required when using the pinecone and openAi APIs directly
  • PINECONE_API_KEY | pinecone api key when using pinecone and openAi APIs directly | required when using the pinecone and openAi APIs directly
  • PINECONE_ENVIRONMENT | pinecone environment using pinecone and openAi APIs directly | required when using the pinecone and openAi APIs directly

examples

daisy start # runs full daisy process and asks for confirmation at certain steps
daisy start -y # runs full daisy process does not ask for confirmation
daisy start -i src/index.ts # runs fulldaisy process on src.index.ts file
daisy mem # does not do file completion, just runs the memorization process
daisy update # runs the full daisy process only on files that have changed