kevoj / Thispersondoesnotexist Js
Licence: mit
Api for https://thispersondoesnotexist.com Generates an image of a person that does not exist in real life
Stars: ✭ 101
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Thispersondoesnotexist Js
Swagger Typescript Api
TypeScript API generator via Swagger scheme
Stars: ✭ 342 (+238.61%)
Mutual labels: api, generator
Forge Server Utils
Tools for accessing Autodesk Forge APIs from modern Node.js apps.
Stars: ✭ 23 (-77.23%)
Mutual labels: api, generator
Stone
The Official API Spec Language for Dropbox API V2
Stars: ✭ 371 (+267.33%)
Mutual labels: api, generator
interfaces
A diverse set of royalty-free user avatars to be used for marketing graphics and application screenshots.
Stars: ✭ 50 (-50.5%)
Mutual labels: avatar, face
Generator Swiftserver
WARNING: This repository is no longer maintained
Stars: ✭ 64 (-36.63%)
Mutual labels: api, generator
Php Initial Avatar Generator
Generate avatars with initials from user names.
Stars: ✭ 302 (+199.01%)
Mutual labels: generator, avatar
Full Stack
Full stack, modern web application generator. Using Flask, PostgreSQL DB, Docker, Swagger, automatic HTTPS and more.
Stars: ✭ 451 (+346.53%)
Mutual labels: api, generator
Apigcc
一个非侵入的api编译、收集、Rest文档生成工具。工具通过分析代码和注释,获取文档信息,生成RestDoc文档。
Stars: ✭ 198 (+96.04%)
Mutual labels: api, generator
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+10428.71%)
Mutual labels: api, generator
Api Generator
PHP-code generator for Laravel framework, with complete support of JSON-API data format
Stars: ✭ 244 (+141.58%)
Mutual labels: api, generator
Routegen
Define your API and SPA routes in one place. Use them anywhere. Only 1.3kb.
Stars: ✭ 86 (-14.85%)
Mutual labels: api, generator
Luna Commons
市场上许多界面和工具的集合,例如ftp,httpd等文件与工具操作,包括但不限于图像处理、人脸识别等的api。
Stars: ✭ 244 (+141.58%)
Mutual labels: api, generator
Laravel Api To Postman
Generate a Postman collection automatically from your Laravel API
Stars: ✭ 320 (+216.83%)
Mutual labels: api, generator
Verb
HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
Stars: ✭ 442 (+337.62%)
Mutual labels: api, generator
Fbrecog
An unofficial python wrapper for the Facebook face recognition endpoint
Stars: ✭ 184 (+82.18%)
Mutual labels: api, face
Restful Lenny
A lenny API. Use this to bring Lenny face to your applications
Stars: ✭ 31 (-69.31%)
Mutual labels: api, face
thispersondoesnotexist-js
Api for thispersondoesnotexist.com
StyleGAN is a groundbreaking paper that not only produces high-quality and realistic images but also allows for superior control and understanding of generated images, making it even easier than before to generate believable fake images. The techniques presented in StyleGAN, especially the Mapping Network and the Adaptive Normalization (AdaIN), will likely be the basis for many future innovations in GANs.
Installation
Npm
npm install thispersondoesnotexist-js --save
Yarn
yarn add thispersondoesnotexist-js
Usage
import ThisPersonDoesNotExist from 'thispersondoesnotexist-js';
const dnte = new ThisPersonDoesNotExist();
dnte.getImage().then(res => {
console.log('result->', res);
}).catch(err => {
console.log('error->', err);
});
Method getImage({options})
dnte.getImage({
width: 256, // width of the image (default 128)
height: 256, // high of the image (default 128)
type: 'file', // Type of file to generate (file or base64) (default file)
path: 'avatars' // Path to save (Applies to type file) (default .)
}).then(res => {
console.log('result->', res);
/*
{
status: true,
data:{
format: 'jpeg',
width: 256,
height: 256,
channels: 3,
premultiplied: false,
size: 9575,
name: 'Q2m4yrR9Is.jpeg'
}
}
*/
}).catch(err => {
console.log('error->', err);
});
Method cron({options})
dnte.on('created', (info) => {
console.log('file created->', info);
/*
{
status: true,
data:{
format: 'jpeg',
width: 256,
height: 256,
channels: 3,
premultiplied: false,
size: 9575,
name: 'Q2m4yrR9Is.jpeg'
}
}
*/
}).cron({
time: '*/10 * * * * *', // Generates an image every 10 seconds, and triggers the "created" event
width: 256, // width of the image (default 128)
height: 256, // high of the image (default 128)
type: 'file', // Type of file to generate (file or base64) (default file)
path: 'avatars' // Path to save (Applies to type file) (default .)
});
Results
Development
Start
npm start
Compile
npm run compile
Watch
npm run watch
Test
npm test
Docs
npm run docs
License
MIT © Leonardo Rico
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].