npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

r34-module

v1.3.1

Published

A module to Manupilated rule34 API

Downloads

521

Readme

r34-module

NPM

Fetch images,videos,gifs from Rule34, xbooru many more


Installation

yarn add r34-module
npm install r34-module
pnpm install r34-module

Note

  • Make Sure To use tags available in your desire site is more than one page
  • block_tags is optional fetature
  • This module supports cjs, mjs, ts
  • gay_block is optional feature

All Function(s)

Function | Description ---|--- r34_search | Search Images from Rule34 only using tag r34_random | Random image from Rule34 xbooru_search | Search Images from Xbooru only using tag xbooru_random | Random image from Xbooru hypno_search | Search Images from Hypnohub only using tag hypno_random | Random image from Hypnohub safe_search | Search Images from Safebooru only using tag safe_random | Random image from Safebooru real_search | Search Images from Realbooru only using tag real_random | Random image from Realbooru

Examples

import { r34_random } from "r34-module"

;(async () => {
    let r34 = await r34_random()
    console.log(r34)
})()
/**
 * It should response like this
 * [
  'https://api-cdn.rule34.xxx/images/2882/fb802d8ecf52d334eb0055199ab052f6.jpeg',
  'https://api-cdn.rule34.xxx/images/2882/0c273249a4a2d0ebfa51366cad8b2d31.jpeg',
  'https://api-cdn.rule34.xxx/images/2882/b1b3b2e1fe71d576457a735e31d64092.jpeg',
  'https://api-cdn.rule34.xxx/images/2882/d222e3b42e513bddd2031ec15d6d77b6.jpeg',
  ...
  ]
 */
import { r34_random } from "r34-module"

;(async () => {
    // Make gay_block true if you want to filter gay,male,furry from array
    // ps No hate from gay people pls
    let r34 = await r34_random({gay_block: true})
    console.log(r34)
})()
/**
 * It should response like this
 * [
  'https://api-cdn.rule34.xxx/images/2378/d408ad0f8719c4e20b9935d0c5f74615.jpeg',
  'https://api-cdn.rule34.xxx/images/2378/80b2cdb790deb05799ffc21165c6ee13.jpeg',
  'https://api-cdn.rule34.xxx/images/2378/95d79bb38d4508642e4186080f2f54b3.png',
  'https://api-cdn.rule34.xxx/images/2378/7759e328bbb9a158dd1b54f65ce55a77.jpeg',
  'https://api-cdn.rule34.xxx/images/2378/ffc00aa8eaedf68e88642d3e21391a93.jpeg',
  'https://api-cdn.rule34.xxx/images/2378/f72ae99dc8ccd123c673e3bbbca57c5f.jpeg',
  ...
]
 */
import { r34_search } from "r34-module"

;(async () => {
    // block_tags is optional feature
    let r34 = await r34_search({ search_tag : "hatsune_miku", block_tags: ["male", "trap"] })
    console.log(r34)
})()

/**
 * Here is a example Response
 * [
  'https://api-cdn.rule34.xxx/images/2329/d78f9584656cbaeb56e5b08928c89a09.png',
  'https://api-cdn.rule34.xxx/images/2329/b9bbeefa0f3a4e07adbe7fe8d72a0183.png',
  'https://api-cdn.rule34.xxx/images/2329/54abb08fcd16161549c92f67daa1c3a3.png',
  'https://api-cdn.rule34.xxx/images/2329/c3ccf85503044b6267a17829eb90a043.png',
  'https://api-cdn.rule34.xxx/images/2329/20f54d4dce75d60fadbb07aa001ccc99.png',
  'https://api-cdn.rule34.xxx/images/2329/ebfeb4689e4cccffff5a34b44715f827.png',
  'https://api-cdn.rule34.xxx/images/2329/84298bb20c05282762d1e1f01c3365d6.png',
  'https://api-cdn.rule34.xxx/images/2329/6aed8e0f1663a4dac3ca30532e9e0c29.png',
  'https://api-cdn.rule34.xxx/images/1305/1a966efa123d4ddedb4745d5460fb32d.png',
  'https://api-cdn.rule34.xxx/images/281/9e1c2d77d3dcea3aad822cff79f4720c.jpeg',
  'https://api-cdn.rule34.xxx/images/741/d8dcf52748a519beef3c92e0665c3c1a.png',
  'https://api-cdn.rule34.xxx/images/2685/374654702538437420731957e79ee435.png',
  ...
  ]
*/