{"_id":"@bottlycorp/beyond2021","_rev":"3-ff93f40ca4304322b8d29d0dc39edea4","name":"@bottlycorp/beyond2021","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@bottlycorp/beyond2021","version":"0.0.1","description":"A package to retrieve data from internet","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/bottlycorp/beyond2021.git"},"scripts":{"build":"tsc","types":"tsc --declaration --allowJs --emitDeclarationOnly --outDir types","release":"git push --follow-tags && npm publish","lint":"eslint .","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit"},"private":false,"keywords":["gpt","google","gpt-3.5-turbo","search","web","data"],"author":{"name":"Gaëtan H","url":"Steellgold"},"license":"ISC","devDependencies":{"@bluzzi/eslint-config":"^0.9.0","@swc-node/register":"^1.6.4","@swc/core":"^1.3.49","@types/html-to-text":"^9.0.1","@types/node":"^18.15.11","dotenv":"^16.0.3","eslint":"^8.38.0","typescript":"^5.0.4","nodemon":"^2.0.22","tsconfig-paths":"^4.2.0"},"eslintConfig":{"extends":"@bluzzi","rules":{"camelcase":"off"}},"dependencies":{"gpt-3-encoder":"^1.1.4","html-to-text":"^9.0.5","openai":"^3.2.1"},"types":"./build/index.d.ts","bugs":{"url":"https://github.com/bottlycorp/beyond2021/issues"},"homepage":"https://github.com/bottlycorp/beyond2021#readme","_id":"@bottlycorp/beyond2021@0.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Ca4+TiS4hTVm0H4hUypBRJU8YZf09VnVAcRMbjyFYCarWaCFQGCJG0V/5IjHHbuhrp+5OuDdZcOmRdBTMmoeKQ==","shasum":"ad0a0e46ea6c78af7442809b13d05740d910b67e","tarball":"https://registry.npmjs.org/@bottlycorp/beyond2021/-/beyond2021-0.0.1.tgz","fileCount":18,"unpackedSize":15900,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtBxEi57Pb0YAtBk49FOQfSyYiLrAGa4gEGznmqt8yRAiBWEPiJYZNDDFdfKXZCWz6FKhDM6LmjGuqGy5TjjA9sCg=="}]},"_npmUser":{"name":"steellgold","email":"steellgold0@gmail.com"},"directories":{},"maintainers":[{"name":"steellgold","email":"steellgold0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beyond2021_0.0.1_1685288493124_0.982195481454057"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bottlycorp/beyond2021","version":"0.0.2","description":"A package to retrieve data from internet","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/bottlycorp/beyond2021.git"},"scripts":{"build":"tsc","types":"tsc --declaration --allowJs --emitDeclarationOnly --outDir types","release":"git push --follow-tags && npm publish","lint":"eslint .","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit","dev":"npx nodemon --exec node -r @swc-node/register -r tsconfig-paths/register ./test.ts dev"},"private":false,"keywords":["gpt","google","gpt-3.5-turbo","search","web","data"],"author":{"name":"Gaëtan H","url":"Steellgold"},"license":"ISC","devDependencies":{"@bluzzi/eslint-config":"^0.9.0","@swc-node/register":"^1.6.4","@swc/core":"^1.3.49","@types/html-to-text":"^9.0.1","@types/node":"^18.15.11","dotenv":"^16.0.3","eslint":"^8.38.0","typescript":"^5.0.4","nodemon":"^2.0.22","tsconfig-paths":"^4.2.0"},"eslintConfig":{"extends":"@bluzzi","rules":{"camelcase":"off"}},"dependencies":{"gpt-3-encoder":"^1.1.4","html-to-text":"^9.0.5","openai":"^3.2.1"},"types":"./build/index.d.ts","gitHead":"49913323cd28d30bcdbb26a09ca140ee6a9ba520","bugs":{"url":"https://github.com/bottlycorp/beyond2021/issues"},"homepage":"https://github.com/bottlycorp/beyond2021#readme","_id":"@bottlycorp/beyond2021@0.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-nP+F9r9H7yqf1TPiQaEJU9TTY1U8rEjEydlWk9wz1mkEeCBYXrXJD1Ohb/4gBHPbad9RqFNxX+2S1F4LanM/qA==","shasum":"0a5f029c3cae3380a80d3085b1181358de9d36e3","tarball":"https://registry.npmjs.org/@bottlycorp/beyond2021/-/beyond2021-0.0.2.tgz","fileCount":19,"unpackedSize":515176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/szoa6nyfyWnhnRbod2sO0Ic4Kw+Aruz/qnVIBsBhqAIhAObRuuV9ct13tnuvWnyCW4DDS6611AXsmsQrLFE7Nf9T"}]},"_npmUser":{"name":"steellgold","email":"steellgold0@gmail.com"},"directories":{},"maintainers":[{"name":"steellgold","email":"steellgold0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beyond2021_0.0.2_1685349538915_0.2648175310166432"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bottlycorp/beyond2021","version":"0.0.3","description":"A package to retrieve data from internet","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/bottlycorp/beyond2021.git"},"scripts":{"build":"tsc","types":"tsc --declaration --allowJs --emitDeclarationOnly --outDir types","release":"git push --follow-tags && npm publish","lint":"eslint .","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit","dev":"npx nodemon --exec node -r @swc-node/register -r tsconfig-paths/register ./test.ts dev"},"private":false,"keywords":["gpt","google","gpt-3.5-turbo","search","web","data"],"author":{"name":"Gaëtan H","url":"Steellgold"},"license":"ISC","devDependencies":{"@bluzzi/eslint-config":"^0.9.0","@swc-node/register":"^1.6.4","@swc/core":"^1.3.49","@types/html-to-text":"^9.0.1","@types/node":"^18.15.11","dotenv":"^16.0.3","eslint":"^8.38.0","typescript":"^5.0.4","nodemon":"^2.0.22","tsconfig-paths":"^4.2.0"},"eslintConfig":{"extends":"@bluzzi","rules":{"camelcase":"off"}},"dependencies":{"openai":"^3.2.1"},"types":"./build/index.d.ts","gitHead":"61dbc9370264fa42e92e3f2e2a5aee82b250872b","bugs":{"url":"https://github.com/bottlycorp/beyond2021/issues"},"homepage":"https://github.com/bottlycorp/beyond2021#readme","_id":"@bottlycorp/beyond2021@0.0.3","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-2270CfK5Pn5UyVky79Z3ThJ4TeYDf7jhJwzcIx90BGP+9VMvWzOKaJi3FeK/9+owk4eGykGLKCLkTyG2yiaobA==","shasum":"4c1aeba7f615b85806151369ce57243b8960560e","tarball":"https://registry.npmjs.org/@bottlycorp/beyond2021/-/beyond2021-0.0.3.tgz","fileCount":19,"unpackedSize":517182,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZwLYc9YDBSDh4KTWj4nDT5H5Ypi9nHZ5VUvd14MigNQIhAMOpfyoc/5Ciq5FzLHZkLK5wXD6Bu3r8yUG7wqA6t7uE"}]},"_npmUser":{"name":"steellgold","email":"steellgold0@gmail.com"},"directories":{},"maintainers":[{"name":"steellgold","email":"steellgold0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beyond2021_0.0.3_1685349714608_0.5052057086541086"},"_hasShrinkwrap":false},"0.0.4":{"name":"@bottlycorp/beyond2021","version":"0.0.4","description":"A package to retrieve data from internet","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/bottlycorp/beyond2021.git"},"scripts":{"build":"tsc","types":"tsc --declaration --allowJs --emitDeclarationOnly --outDir types","release":"git push --follow-tags && npm publish","lint":"eslint .","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit","dev":"npx nodemon --exec node -r @swc-node/register -r tsconfig-paths/register ./test.ts dev"},"private":false,"keywords":["gpt","google","gpt-3.5-turbo","search","web","data"],"author":{"name":"Gaëtan H","url":"Steellgold"},"license":"ISC","devDependencies":{"@bluzzi/eslint-config":"^0.9.0","@swc-node/register":"^1.6.4","@swc/core":"^1.3.49","@types/html-to-text":"^9.0.1","@types/node":"^18.15.11","dotenv":"^16.0.3","eslint":"^8.38.0","nodemon":"^2.0.22","tsconfig-paths":"^4.2.0","typescript":"^5.0.4"},"eslintConfig":{"extends":"@bluzzi","rules":{"camelcase":"off"}},"dependencies":{"bettercolors":"^1.1.1","openai":"^3.2.1"},"types":"./build/index.d.ts","gitHead":"b12a473c693e1cc8370ff459e17e35f0d585568b","bugs":{"url":"https://github.com/bottlycorp/beyond2021/issues"},"homepage":"https://github.com/bottlycorp/beyond2021#readme","_id":"@bottlycorp/beyond2021@0.0.4","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-m76JOoU8hpjDtHaz3BaDe3KeFOMOKY8avlXe3npaLy9f0gU4uITo9lALqmYrwWHsMjEObzWE9KNaFBjtr8IgZA==","shasum":"db5146f1530935007b7f69fb7b608665ca013b4c","tarball":"https://registry.npmjs.org/@bottlycorp/beyond2021/-/beyond2021-0.0.4.tgz","fileCount":19,"unpackedSize":519610,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDP00c13q3lOX9zeuuQM7dGcmGowpa5hnba4QJjJibLzAiBJ5VHjbtJ2fTyBOSWoic5P5iJ1vLr9OpJMeofngY0OnQ=="}]},"_npmUser":{"name":"steellgold","email":"steellgold0@gmail.com"},"directories":{},"maintainers":[{"name":"steellgold","email":"steellgold0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beyond2021_0.0.4_1685382343041_0.37740923117849956"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-28T15:41:33.062Z","0.0.1":"2023-05-28T15:41:33.312Z","modified":"2023-05-29T17:45:43.348Z","0.0.2":"2023-05-29T08:38:59.063Z","0.0.3":"2023-05-29T08:41:54.857Z","0.0.4":"2023-05-29T17:45:43.246Z"},"maintainers":[{"name":"steellgold","email":"steellgold0@gmail.com"}],"description":"A package to retrieve data from internet","homepage":"https://github.com/bottlycorp/beyond2021#readme","keywords":["gpt","google","gpt-3.5-turbo","search","web","data"],"repository":{"type":"git","url":"git+https://github.com/bottlycorp/beyond2021.git"},"author":{"name":"Gaëtan H","url":"Steellgold"},"bugs":{"url":"https://github.com/bottlycorp/beyond2021/issues"},"license":"ISC","readme":"# Beyond2021\r\n\r\nBeyond2021 is a package to get data from the web. It uses Google Search API and OpenAI API to get data from the web.\r\n\r\n### Installation:\r\n\r\nUse PNPM or PNPM and install the pacakges `pnpm install` or `npm install`\r\n\r\n### Setup\r\n\r\nSet the required environment variables \r\n```ts\r\nexport const web = new DataBeyond({\r\n  GOOGLE_SEARCH_API_KEY: \"\",\r\n  GOOGLE_SEARCH_ENGINE_ID: \"\",\r\n  OPENAI_API_KEY: \"\",\r\n  OPENAI_ORGANIZATION_ID: \"\", // Optional\r\n  MULTIPLE_SEARCH_API_KEYS: [], // Optional (Key table for using a new key if it is rate-limited)\r\n  LOGGER: { // Optional (default for all is false)\r\n    LOG_ERRORS: false,\r\n    LOG_REQUESTS: true,\r\n    LOG_RESPONSES: false\r\n  }\r\n});\r\n```\r\n\r\n### Usage\r\n\r\n```ts\r\nconst dataWebSearch = await websearch.search(\"What is the best way to learn programming?\");\r\n\r\nconst url = dataWebSearch.url ?? \"No url found\";\r\nconst content = dataWebSearch.content;\r\n```\r\n\r\n### How it works ?\r\n\r\n![How it works](./HowItWorks.png)","readmeFilename":"README.md"}