Metaform is an open source library for working with the AniLibria Web API. Developed without using third-party dependencies in the production version. Metaform works in the browser and Nodejs.
Special thanks to the VK-IO project that inspired Metaform3
This document has a translated version in Russian
Reasons to use Metaform in your projects
- Open source distributed under a liberal license
- Without binding to third-party libraries and frameworks
- Support for Nodejs and browsers
- 100% original API support
- Simple and intuitive API, similar to the original API
$ npm install @maxqwars/metaform
or install from local
$ npm install ./path-to-metaform-dir
import { metaform3 } from "@maxqwars/metaform/metaform3";
import { metaform2 } from "@maxqwars/metaform/metaform2";
You can try out Metaform3 in action on the CodeSandbox website
* If you are in the Russian territory, use a VPN
Metaform inherits the name of the original API methods with the HTTP method of the API used.
Original API endpoint -> GET <host>/title
Metaform method -> metaform.getTitle()
Detailed information about the available methods can be found in the repository with the documentation of the original API
- β Fully ready to use
- π§ It works, but needs modification
- β Not implemented in any way
Method | Status |
---|---|
GET /title/list | β |
GET /title/random | β |
GET /title/updates | β |
GET /title/changes | β |
GET /title/search | π§ |
GET /franshise/list | β |
GET /title | β |
GET /genres | β |
GET /team | β |
GET /years | β |
GET /title/search | β |
GET /title/schedule | β |
GET /title/search/advanced | β |
GET /title/franshises | β |
GET /youtube | β |
GET /feed | β |
GET /torrent/seed_stats | β |
GET /torrent/rss | β |
GET /user | β |
GET /user/favorites | β |
PUT /user/favorites | β |
DELETE /user/favorites | β |
Requirements and instructions for the metaform development process
Metaform is a project written in JS and uses the Rollup build system. In order to develop metaform you need the latest stable version of the nodejs runtime and the npm package manager it comes with. Git is required for change management.
First, get the current version of the source code
$ git clone https://github.com/maxqwars/metaform
After that, open the commands window in the folder with the Metaform source code. In Linux you can use the popup menu option, in Windows open the menu with Shift
pressed.
Afterwards, use the npm package manager to install the dependencies.
$ npm install
The assembly of the metaform as well as the maintenance of the code is done with the scripts specified in the scripts
section of the packages.json
file. This part lists and describes them.
Executed before the build
command, it deletes the directory with the previous build
Starts the process of building a ready-to-use version
Runs rollup in file tracking mode, code is rebuilt after each change in src
folder
Analyzes code for errors using ESLint
Corrects errors found in the code with ESLint
Formats the code following the tailgate, useful when your code editor does not support the Prettier plugin
Launches the unit testing tool Jest
If you have found a bug, are having difficulty using Metaform, or would like to suggest an improvement, use the contacts below:
MetaForm is an open source library licensed under the MIT license.