1.0.4 • Published 2 years ago

novelapi v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago