{"id":26213639,"url":"https://github.com/supinepandora43/rule34js","last_synced_at":"2025-04-15T17:24:22.835Z","repository":{"id":43838445,"uuid":"275641173","full_name":"SupinePandora43/rule34js","owner":"SupinePandora43","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-16T14:59:51.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T23:04:16.193Z","etag":null,"topics":["34","api","javascript","js","rule","rule34","xxx"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rule34js","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SupinePandora43.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-28T18:06:52.000Z","updated_at":"2024-02-05T01:00:46.000Z","dependencies_parsed_at":"2022-09-10T00:33:09.652Z","dependency_job_id":null,"html_url":"https://github.com/SupinePandora43/rule34js","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupinePandora43%2Frule34js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupinePandora43%2Frule34js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupinePandora43%2Frule34js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupinePandora43%2Frule34js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupinePandora43","download_url":"https://codeload.github.com/SupinePandora43/rule34js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249117097,"owners_count":21215335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["34","api","javascript","js","rule","rule34","xxx"],"created_at":"2025-03-12T09:32:31.164Z","updated_at":"2025-04-15T17:24:22.813Z","avatar_url":"https://github.com/SupinePandora43.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rule34js\n\nsimple javascript api for `rule34.xxx`\n\n# Features\n\n* uses only official api\n* has typings (`.d.ts`)\n* async\n\n# Example\n\n* async/await\n```javascript\nimport { posts } from \"rule34js\" // const posts = require(\"rule34js\").posts\nconst response = await posts({tags:[\"furry\"]})\nconsole.log(response)\n```\n* promise callback\n```javascript\nimport { posts } from \"rule34js\" // const posts = require(\"rule34js\").posts\nposts({tags:[\"sfw\"]}).then((value)=\u003e{console.log(value)})\n```\nwill return\n```javascript\n{\n  offset: 0,\n  count: 33256, // count of all posts\n  posts: [\n  {\n    height: 1707,\n    score: 1,\n    file_url: 'https://himg.rule34.xxx/images/3457/ddb7abf29ea807c55c1109ba78ceb935.png',\n    parent_id: '',\n    sample_url: 'https://rule34.xxx/samples/3457/sample_ddb7abf29ea807c55c1109ba78ceb935.jpg',\n    sample_width: 850,\n    sample_height: 1134,\n    preview_url: 'https://rule34.xxx/thumbnails/3457/thumbnail_ddb7abf29ea807c55c1109ba78ceb935.jpg',\n    rating: 's',\n    tags: ' cute no_color sfw slime_girl suraimu suraimu(hyper_cawk) ',\n    id: 3897419,\n    width: 1280,\n    change: 1593467420,\n    md5: 'ddb7abf29ea807c55c1109ba78ceb935',\n    creator_id: 709956,\n    has_children: false,\n    created_at: 'Mon Jun 29 21:48:39 +0000 2020',\n    status: 'active',\n    source: '',\n    has_notes: false,\n    has_comments: false,\n    preview_width: 112,\n    preview_height: 150,\n    tags_parsed: [\n      'cute',\n      'no_color',\n      'sfw',\n      'slime_girl',\n      'suraimu',\n      'suraimu(hyper_cawk)',\n    ]\n  }\n  // 99 posts here\n  ]\n}\n```\n# Options `Rule34OptionsOptional`\n\n* `tags`: string[] - tags to find, ex. [\"sfw\", \"cute\"]\n* ?`parse_tags`: boolean = true - **creates `tags_parsed`** variable\n* ?`remove_empty`: boolean = true - removes **empty (`''`)** tags\n* ?`pid`: number = 0 - page number\n* ?`limit`: number = 100 - limit of post count\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupinepandora43%2Frule34js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupinepandora43%2Frule34js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupinepandora43%2Frule34js/lists"}