@maxqwars/metaform
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published


About

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

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

Installation

Step 0: Install

$ npm install @maxqwars/metaform

or install from local

$ npm install ./path-to-metaform-dir

For API V3

import { metaform3 } from "@maxqwars/metaform/metaform3";

For API V2

import { metaform2 } from "@maxqwars/metaform/metaform2";

Metaform in action

You can try out Metaform3 in action on the CodeSandbox website

* If you are in the Russian territory, use a VPN

CODESANDBOX

Metaform API

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

API V3 compatibility table

  • ✔ 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

Development workflow

Requirements and instructions for the metaform development process

Step 1: Check requirements

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.

Step 2: Clone code and install dependencies

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

Step 3: Scripts overview

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.

prebuild

Executed before the build command, it deletes the directory with the previous build

build

Starts the process of building a ready-to-use version

dev

Runs rollup in file tracking mode, code is rebuilt after each change in src folder

lint

Analyzes code for errors using ESLint

lint:fix

Corrects errors found in the code with ESLint

format

Formats the code following the tailgate, useful when your code editor does not support the Prettier plugin

test

Launches the unit testing tool Jest

Step 4: Run you code in playground

Step 5: Push or contribute

Contributing

If you have found a bug, are having difficulty using Metaform, or would like to suggest an improvement, use the contacts below:

License

MetaForm is an open source library licensed under the MIT license.

Dependents (1)

Package Sidebar

Install

npm i @maxqwars/metaform

Weekly Downloads

4

Version

1.0.9

License

MIT

Unpacked Size

62.8 kB

Total Files

65

Last publish

Collaborators

  • maxqwars