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

pawanapi

v1.0.4

Published

An api wrapper for the Pawan Api

Downloads

6

Readme

Creator

PawanApi Wrapper

An unnoficial API Wrapper for PawanApi

Installation

Before installing you need to have Node.js To install, use the npm install command:

$ npm install pawanapi --save

Documentation for embedding models can be found here Documentation for text and chat completions models can be found here In addition to the previous models, there are also some models implemented by Pawan which you can see in the official discord

There are some methods that require a token. You can obtain it in the official discord

Methods

  • gtranslate(from,to,text): translate from language to language a text using google translate
  • mtranslate(from,to,text): translate from language to language a text using microsoft translate
  • embeddings(model,text): get the embeddings of a text using an OpenAI model | Needs Token to work
  • tts(text,voice): get an audio stream of a voice reading the text
  • completion(model,prompt,suffix,max_tokens,temperature,top_p,n,stream,logprobs,echo,stop,presence_penalty,frequency_penalty,best_of,logit_bias,user): Complete the prompt using the model for more information about every parameter Click Here | Needs Token to work
  • chatcompletion(model,messages,temperature,top_p,n,stream,stop,max_tokens,presence_penalty,frequency_penalty,logit_bias,user): Complete the messages using the model for more information about every parameter Click Here | Needs Token to work
  • dalle(prompt,n,size,user): Generates n images of the specified size following the prompt (user is just for openai moderation) | Needs Token to work
  • resetip(): Reset the ip address associated with the token | Needs Token to work
  • info(): Get information about your token | Needs Token to work
  • models(): Get information about the models available | Needs Token to work

The methods that need a token to work won't work if the IP address is not the same as the one associated with the token.