{"_id":"@apiverve/madlibs","_rev":"4-a759a1ffdbc87ae51c7ef36a42bc0d2a","name":"@apiverve/madlibs","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.12":{"name":"@apiverve/madlibs","version":"1.1.12","keywords":["mad libs","fill in the blank","word game","story generator","party game"],"author":{"url":"http://apiverve.com/","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/madlibs@1.1.12","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/madlibs?utm_source=npm","bugs":{"url":"https://github.com/apiverve/madlibs-api/issues"},"dist":{"shasum":"c5c2d7eb823ebbb2bd70383b9cf13553d9e37f50","tarball":"https://registry.npmjs.org/@apiverve/madlibs/-/madlibs-1.1.12.tgz","fileCount":7,"integrity":"sha512-SE7NAMCB59EYMCJud8Sczs+82XXphPpiSPCDS/N1lLOZHVdbtCzCjXZR9oCET5cORZzKnn/uz2fAtNW3VhON5g==","signatures":[{"sig":"MEUCIQCT0A8kfvPCZQMZonN3yjM+uWBTo9qqGuSfLvUq/OCougIgHmg1Z5o39my534ZJwp/5kR7jKyJNi34QIEF7GZmIvYE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18653},"main":"index.js","types":"index.d.ts","gitHead":"9d8e77b9fc6545198b9b9f57ce739a87b73ef06c","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"repository":{"url":"git+https://github.com/apiverve/madlibs-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Mad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/madlibs_1.1.12_1765262507774_0.607933059922718","host":"s3://npm-registry-packages-npm-production"}},"1.1.13":{"name":"@apiverve/madlibs","version":"1.1.13","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/madlibs@1.1.13","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/madlibs?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/madlibs-api/issues"},"dist":{"shasum":"c13c010f31da10e1a787fa194335765647a8aead","tarball":"https://registry.npmjs.org/@apiverve/madlibs/-/madlibs-1.1.13.tgz","fileCount":5,"integrity":"sha512-m3tMzegitEYLTVBBsy9T6uRZx7SqVARzOtRlH04C+xm6YaQhQuaEJV6OvAlbzNP28vOvzK/fnWriirjkWFas1Q==","signatures":[{"sig":"MEQCICxz9Z9f8mp1RR90mWz3x8Z4p9YXXPRtL02S7vM8+njlAiBdlrOehIkbmaqeDi/lySb3Eu+3iyOmR+yH1R0CwBWNcQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22359},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"603be281ba20b71024115a78fa6ae64907e245cc","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/madlibs-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Mad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/madlibs_1.1.13_1771047264360_0.8436467536037189","host":"s3://npm-registry-packages-npm-production"}},"1.1.14":{"name":"@apiverve/madlibs","version":"1.1.14","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/madlibs@1.1.14","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/madlibs?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/madlibs-api/issues"},"dist":{"shasum":"5524139250672ea3c9aa911c23cd8f25f1a1a8cb","tarball":"https://registry.npmjs.org/@apiverve/madlibs/-/madlibs-1.1.14.tgz","fileCount":5,"integrity":"sha512-jfI75zy+q4BFEfXAHCwAinTfAnnBcgU1oNta6CfMg2CWM2wSJH9tZ5gakUZ+L2hDnX67B/pTq+10hKS4s1hE7Q==","signatures":[{"sig":"MEQCIEQ5gyYnXfyFJvYe/I65WWsnn0QJm0oOm8kzTGSyYKKwAiB+Y1cciyPSAWVGs8AFfWTUu6mboy4HBbeysz/vTTSKQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22068},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"2f35257ac4df6e979213a38ff3974fd82a1cf5b1","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/madlibs-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Mad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/madlibs_1.1.14_1771238338570_0.8264446807530303","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@apiverve/madlibs","version":"1.2.0","description":"Mad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.","main":"index.js","types":"index.d.ts","sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"test":"mocha","example":"node examples/basic.js"},"repository":{"type":"git","url":"git+https://github.com/apiverve/madlibs-api.git","directory":"npm"},"keywords":["mad libs","fill in the blank","word game","story generator","party game"],"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","bugs":{"url":"https://github.com/apiverve/madlibs-api/issues"},"homepage":"https://apiverve.com/marketplace/madlibs?utm_source=npm&utm_medium=homepage","devDependencies":{"mocha":"^11.0.1","chai":"^5.1.2","dotenv":"^16.4.7"},"dependencies":{"axios":"1.13.2","form-data":"^4.0.1"},"gitHead":"2878cdb345f00af84126a08bcc1be2b68ae96fec","_id":"@apiverve/madlibs@1.2.0","_nodeVersion":"24.15.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-OXMKb0gqdEkAL8noIcx8odDSW8aqnL0rVHF2U6Gnnmo15UNxcSXhy9vprX5oYfE7X8mvB3zsh3sPFKbRbgorag==","shasum":"c810c69773538ca186d5cd720ec0921e9095d99e","tarball":"https://registry.npmjs.org/@apiverve/madlibs/-/madlibs-1.2.0.tgz","fileCount":5,"unpackedSize":23479,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC9lEpOktxK+3u0am+I27+dO2QyYkPy/PxnGPv9em7myQIhAO8HoZRNeFTTb8p/sWQkrEvsmLgClLHrZqoT4rCvS5sc"}]},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"directories":{},"maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/madlibs_1.2.0_1784151693265_0.2823751898389748"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-09T06:41:47.667Z","modified":"2026-07-15T21:41:33.535Z","1.1.12":"2025-12-09T06:41:47.905Z","1.1.13":"2026-02-14T05:34:24.524Z","1.1.14":"2026-02-16T10:38:58.721Z","1.2.0":"2026-07-15T21:41:33.418Z"},"bugs":{"url":"https://github.com/apiverve/madlibs-api/issues"},"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","homepage":"https://apiverve.com/marketplace/madlibs?utm_source=npm&utm_medium=homepage","keywords":["mad libs","fill in the blank","word game","story generator","party game"],"repository":{"type":"git","url":"git+https://github.com/apiverve/madlibs-api.git","directory":"npm"},"description":"Mad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"readme":"# Mad Libs Generator API\r\n\r\nMad Libs Generator creates fill-in-the-blank story templates with prompts for nouns, verbs, adjectives, and more.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n[![npm version](https://img.shields.io/npm/v/@apiverve/madlibs.svg)](https://www.npmjs.com/package/@apiverve/madlibs)\r\n\r\nThis is a Javascript Wrapper for the [Mad Libs Generator API](https://apiverve.com/marketplace/madlibs?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Installation\r\n\r\nUsing npm:\r\n```shell\r\nnpm install @apiverve/madlibs\r\n```\r\n\r\nUsing yarn:\r\n```shell\r\nyarn add @apiverve/madlibs\r\n```\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the Mad Libs Generator API client, you have to setup your account and obtain your API Key.\r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Quick Start\r\n\r\n[Get started with the Quick Start Guide](https://docs.apiverve.com/quickstart?utm_source=npm&utm_medium=readme)\r\n\r\nThe Mad Libs Generator API documentation is found here: [https://docs.apiverve.com/ref/madlibs](https://docs.apiverve.com/ref/madlibs?utm_source=npm&utm_medium=readme).\r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```javascript\r\nconst madlibsAPI = require('@apiverve/madlibs');\r\nconst api = new madlibsAPI({\r\n    api_key: '[YOUR_API_KEY]'\r\n});\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n---\r\n\r\n### Perform Request\r\n\r\nUsing the API is simple. All you have to do is make a request. The API will return a response with the data you requested.\r\n\r\n```javascript\r\nvar query = {\n  category: \"random\",\n  count: 1\n};\r\n\r\napi.execute(query, function (error, data) {\r\n    if (error) {\r\n        return console.error(error);\r\n    } else {\r\n        console.log(data);\r\n    }\r\n});\r\n```\r\n\r\n---\r\n\r\n### Using Promises\r\n\r\nYou can also use promises to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nvar query = {\n  category: \"random\",\n  count: 1\n};\r\n\r\napi.execute(query)\r\n    .then(data => {\r\n        console.log(data);\r\n    })\r\n    .catch(error => {\r\n        console.error(error);\r\n    });\r\n```\r\n\r\n---\r\n\r\n### Using Async/Await\r\n\r\nYou can also use async/await to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nasync function makeRequest() {\r\n    var query = {\n  category: \"random\",\n  count: 1\n};\r\n\r\n    try {\r\n        const data = await api.execute(query);\r\n        console.log(data);\r\n    } catch (error) {\r\n        console.error(error);\r\n    }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Example Response\r\n\r\n```json\r\n{\n  \"status\": \"ok\",\n  \"error\": null,\n  \"data\": {\n    \"stories\": [\n      {\n        \"title\": \"Restaurant Disaster\",\n        \"template\": \"I went to a {adjective} restaurant called The {adjective} {noun}. The waiter was a {adjective} {animal} who kept {verb_ing} on the tables. I ordered {number} {adjective} {plural_noun} with a side of {adjective} {noun}. When the bill came, it said I owed {number} {plural_noun}!\",\n        \"blanks\": [\n          {\n            \"id\": 1,\n            \"type\": \"adjective\",\n            \"label\": \"Adjective\"\n          },\n          {\n            \"id\": 2,\n            \"type\": \"adjective\",\n            \"label\": \"Adjective\"\n          },\n          {\n            \"id\": 3,\n            \"type\": \"noun\",\n            \"label\": \"Noun\"\n          },\n          {\n            \"id\": 4,\n            \"type\": \"adjective\",\n            \"label\": \"Adjective\"\n          },\n          {\n            \"id\": 5,\n            \"type\": \"animal\",\n            \"label\": \"Animal\"\n          },\n          {\n            \"id\": 6,\n            \"type\": \"verb_ing\",\n            \"label\": \"Verb ending in -ing\"\n          },\n          {\n            \"id\": 7,\n            \"type\": \"number\",\n            \"label\": \"Number\"\n          },\n          {\n            \"id\": 8,\n            \"type\": \"adjective\",\n            \"label\": \"Adjective\"\n          },\n          {\n            \"id\": 9,\n            \"type\": \"plural_noun\",\n            \"label\": \"Plural Noun\"\n          },\n          {\n            \"id\": 10,\n            \"type\": \"adjective\",\n            \"label\": \"Adjective\"\n          },\n          {\n            \"id\": 11,\n            \"type\": \"noun\",\n            \"label\": \"Noun\"\n          },\n          {\n            \"id\": 12,\n            \"type\": \"number\",\n            \"label\": \"Number\"\n          },\n          {\n            \"id\": 13,\n            \"type\": \"plural_noun\",\n            \"label\": \"Plural Noun\"\n          }\n        ],\n        \"blankCount\": 13,\n        \"category\": \"funny\"\n      }\n    ],\n    \"count\": 1,\n    \"category\": \"funny\",\n    \"html\": \"<html><head><title>Mad Libs</title><style>body {font-family: Arial, sans-serif; padding: 20px; max-width: 800px; margin: 0 auto;}h1 {text-align: center; color: #E91E63;}.story-card {background: #fff; border: 2px solid #E91E63; padding: 25px; margin: 25px 0; border-radius: 15px;}.title {font-size: 24px; font-weight: bold; color: #E91E63; margin-bottom: 20px;}.blanks-section {background: #FCE4EC; padding: 20px; border-radius: 10px; margin-bottom: 20px;}.blanks-section h3 {margin-top: 0;}.blank-item {margin: 10px 0; display: flex; align-items: center;}.blank-label {min-width: 50px; font-weight: bold;}.blank-type {color: #666; margin-left: 10px;}.blank-input {flex: 1; padding: 8px; border: 1px solid #E91E63; border-radius: 5px; margin-left: 10px;}.story-template {line-height: 2; font-size: 16px;}.blank-marker {background: #E91E63; color: white; padding: 2px 8px; border-radius: 3px; font-weight: bold;}</style></head><body><h1>Mad Libs</h1><div class='story-card'><div class='title'>Restaurant Disaster</div><div class='blanks-section'><h3>Fill in the blanks:</h3><div class='blank-item'><span class='blank-label'>1.</span><span class='blank-type'>Adjective</span><input type='text' class='blank-input' placeholder='Enter adjective'></div><div class='blank-item'><span class='blank-label'>2.</span><span class='blank-type'>Adjective</span><input type='text' class='blank-input' placeholder='Enter adjective'></div><div class='blank-item'><span class='blank-label'>3.</span><span class='blank-type'>Noun</span><input type='text' class='blank-input' placeholder='Enter noun'></div><div class='blank-item'><span class='blank-label'>4.</span><span class='blank-type'>Adjective</span><input type='text' class='blank-input' placeholder='Enter adjective'></div><div class='blank-item'><span class='blank-label'>5.</span><span class='blank-type'>Animal</span><input type='text' class='blank-input' placeholder='Enter animal'></div><div class='blank-item'><span class='blank-label'>6.</span><span class='blank-type'>Verb ending in -ing</span><input type='text' class='blank-input' placeholder='Enter verb ending in -ing'></div><div class='blank-item'><span class='blank-label'>7.</span><span class='blank-type'>Number</span><input type='text' class='blank-input' placeholder='Enter number'></div><div class='blank-item'><span class='blank-label'>8.</span><span class='blank-type'>Adjective</span><input type='text' class='blank-input' placeholder='Enter adjective'></div><div class='blank-item'><span class='blank-label'>9.</span><span class='blank-type'>Plural Noun</span><input type='text' class='blank-input' placeholder='Enter plural noun'></div><div class='blank-item'><span class='blank-label'>10.</span><span class='blank-type'>Adjective</span><input type='text' class='blank-input' placeholder='Enter adjective'></div><div class='blank-item'><span class='blank-label'>11.</span><span class='blank-type'>Noun</span><input type='text' class='blank-input' placeholder='Enter noun'></div><div class='blank-item'><span class='blank-label'>12.</span><span class='blank-type'>Number</span><input type='text' class='blank-input' placeholder='Enter number'></div><div class='blank-item'><span class='blank-label'>13.</span><span class='blank-type'>Plural Noun</span><input type='text' class='blank-input' placeholder='Enter plural noun'></div></div><div class='story-template'>I went to a <span class='blank-marker'>1</span> restaurant called The <span class='blank-marker'>2</span> <span class='blank-marker'>3</span>. The waiter was a <span class='blank-marker'>4</span> <span class='blank-marker'>5</span> who kept <span class='blank-marker'>6</span> on the tables. I ordered <span class='blank-marker'>7</span> <span class='blank-marker'>8</span> <span class='blank-marker'>9</span> with a side of <span class='blank-marker'>10</span> <span class='blank-marker'>11</span>. When the bill came, it said I owed <span class='blank-marker'>12</span> <span class='blank-marker'>13</span>!</div></div></body></html>\",\n    \"image\": {\n      \"imageName\": \"25d0dd78-3ad1-4f14-a30f-f8bdd8ebcc33_madlibs.png\",\n      \"format\": \".png\",\n      \"downloadURL\": \"https://storage.googleapis.com/apiverve/APIData/madlibs/25d0dd78-3ad1-4f14-a30f-f8bdd8ebcc33_madlibs.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010349&Signature=e4owJidlQu2GZKe1GSuClCNSpOX1UQkxdweeS08IVOxkNscZGNr33BdYhNSG%2BuVIZ2XdEeAc3o2%2BY2hxP01APjgqMgCe4QvHRBgbCLPUiueHaczDJ1m1ZBI41aRaYjM8kdB7M0iYLNhdgqogXTYs9Zc%2FaRj9a6txpLz7fb2YexgG0fXhkcZuGeCb1haQlMTHL1YZbh9zJIKgHSqMhKK3jqhf0stuIDXIWkWdiK6fbP1B2aZkomqwpbx3iQKwbhca8rwFMWjUMRN5fspY%2FRtNbS7kIWaznc07VaBloITlQktm%2FMMojDc6QSanGeegRKealslcO53diZRsdLTZvB3wAQ%3D%3D\",\n      \"expires\": 1766010349930\n    }\n  }\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## Updates\r\n\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms?utm_source=npm&utm_medium=readme), [Privacy Policy](https://apiverve.com/privacy?utm_source=npm&utm_medium=readme), and [Refund Policy](https://apiverve.com/refund?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2026 APIVerve, and EvlarSoft LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","readmeFilename":"README.md"}