New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

novelapi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

novelapi

NovelAI API

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

NovelAPI

A NovelAI API written in Javascript and usable as a Node.JS module. A first venture in many aspects, if any issues are encountered post them on the issues page.

Installation

npm i novelapi

Configuration

The only configuration required to use the module is finding the authorization token for NovelAI. On the NovelAI website with a logged in account, go to Inspect Element > Application > Storage > Local Storage > https://novelai.net/. There will be a list of keys, one of them labeled session. It will have a 205 character value called auth_token.

Usage Example

import { Client } from 'novelapi';

const auth = 'authToken';

const NovelAI = new Client(auth);
NovelAI.APIStatus().then(e => {console.log(e.status)});
NovelAI.Generator.Generate("Hello world! It's me, an AI!").then(e => {
    console.log(e)
});

TODO

Generate Text Stream support.

Optimize the class/function structure.

Input Sanitization

Keywords

novelapi

FAQs

Package last updated on 12 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts