bytewavemlp / node-derpi Goto Github PK
View Code? Open in Web Editor NEWA (WIP) Derpibooru API wrapper for Node.js
License: MIT License
A (WIP) Derpibooru API wrapper for Node.js
License: MIT License
Deadline: March 31st
https://derpibooru.org/forums/meta/topics/old-api-deprecation-notice
Possible options:
Global request caching is still an important feature to add. I think it would be relatively easy to do, as most HTTP fetching is routed through Fetch
anyway.
The question is, do I want this to be done in memory or on disk, or a combination of the two? Should it be user-configurable?
Seems like duplicate effort, since assignment of the default options also happens within fetchJSON
Line 438 in e7ebc89
I'm at least 90% sure this is possible because json2typescript does everything through runtime reflectino magic.
https://derpibooru.org/search/reverse.json
multipart/form-data
/application/json
key
- API keyimage
- binary image data
scraper_url
- url to image{
"search": [
{
// image object
}
],
"total": 1
}
Tags can be fetched at both tags/NAME.json
and tags/ID.json
, where tags/NAME.json
takes priority
So, if I named a tag 12345
, whatever tag ID 12345
is would no longer be fetchable by ID.
Looks like I'll have to update my tag fetching stuff to fetch by name instead. Which also means I'll need byte[]'s sluggify code.
new_name.gsub!('-', '-dash-')
new_name.gsub!('/', '-fwslash-')
new_name.gsub!('\\', '-bwslash-')
new_name.gsub!(':', '-colon-')
new_name.gsub!('.', '-dot-')
new_name.gsub!('+', '-plus-')
Thanks, Derpi.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.