Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://soruly.github.io/trace.moe-api/
API server for serving backend requests for trace.moe
https://soruly.github.io/trace.moe-api/
Last synced: about 1 month ago
JSON representation
API server for serving backend requests for trace.moe
- Host: GitHub
- URL: https://soruly.github.io/trace.moe-api/
- Owner: soruly
- License: mit
- Created: 2019-09-27T16:55:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T03:09:07.000Z (about 1 month ago)
- Last Synced: 2024-05-02T06:15:20.930Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://soruly.github.io/trace.moe-api/
- Size: 31.9 MB
- Stars: 111
- Watchers: 5
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Lists
- public-apis - Trace Moe
- public-apis - Trace Moe
- public-apis - Trace Moe
- public-apis - Trace Moe
- public-apis - Trace Moe
README
# trace.moe-api
[![License](https://img.shields.io/github/license/soruly/trace.moe-api.svg?style=flat-square)](https://github.com/soruly/trace.moe-api/blob/master/LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/soruly/trace.moe-api/docker-image.yml?style=flat-square)](https://github.com/soruly/trace.moe-api/actions)
[![Codecov](https://img.shields.io/codecov/c/github/soruly/trace.moe-api?style=flat-square&token=8C25WLSEDJ)](https://codecov.io/gh/soruly/trace.moe-api)
[![Docker](https://img.shields.io/docker/pulls/soruly/trace.moe-api?style=flat-square)](https://hub.docker.com/r/soruly/trace.moe-api)
[![Docker Image Size](https://img.shields.io/docker/image-size/soruly/trace.moe-api/latest?style=flat-square)](https://hub.docker.com/r/soruly/trace.moe-api)
[![Discord](https://img.shields.io/discord/437578425767559188.svg?style=flat-square)](https://discord.gg/K9jn6Kj)API server for [trace.moe](https://github.com/soruly/trace.moe)
[API Docs](https://soruly.github.io/trace.moe-api/)
### Features
- serve image search request
- crop black borders on search images
- rate limiting and user management
- serve index and database status
- store and serve compressed hash files
- distribute hash jobs to workers### Prerequisites
- Node.js 14.x
- mariaDB 10.4.x
- redis
- [liresolr](https://github.com/soruly/liresolr)
- g++, cmake (if you need to compile OpenCV)### Install
Install Prerequisites first, then:
```
git clone https://github.com/soruly/trace.moe-api.git
cd trace.moe-api
npm install
```### Configuration
- Copy `.env.example` to `.env`
- Edit `.env` as appropriate for your setup### Start server
You can use [pm2](https://pm2.keymetrics.io/) to run this in background in cluster mode.
Use below commands to start / restart / stop server.
```
npm run start
npm run stop
npm run reload
npm run restart
npm run delete
```To change the number of nodejs instances, edit ecosystem.config.json