├── .env.example ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── docker-publish.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── nodemon.json ├── package-lock.json ├── package.json ├── public ├── assets │ ├── logo.png │ ├── logo.svg │ └── styles.css ├── index.html ├── index.js ├── managers │ └── toast.js └── service-worker.js ├── scripts ├── cors.js └── pwa-manifest-generator.js └── server.js /.env.example: -------------------------------------------------------------------------------- 1 | PORT=3000 2 | SITE_TITLE=DumbWhois 3 | ALLOWED_ORIGINS=* 4 | NODE_ENV=production -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: Your Informative Title Here 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | 30 | **Smartphone (please complete the following information):** 31 | - Device: [e.g. iPhone6] 32 | - OS: [e.g. iOS8.1] 33 | - Browser [e.g. stock browser, safari] 34 | 35 | **Additional context** 36 | Add any other context about the problem here. 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/docker-publish.yml: -------------------------------------------------------------------------------- 1 | name: Build and Push Docker Image 2 | 3 | on: 4 | push: 5 | branches: 6 | - main # Trigger the workflow on pushes to the main branch 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | # Step 1: Check out the repository 14 | - name: Checkout code 15 | uses: actions/checkout@v3 16 | 17 | # Step 2: Set up Docker Buildx with container driver 18 | - name: Set up Docker Buildx 19 | uses: docker/setup-buildx-action@v2 20 | with: 21 | driver: docker-container # Ensure multi-platform support 22 | install: true 23 | 24 | # Step 3: Build Docker Image (for all cases, including forks) 25 | - name: Build Docker Image 26 | uses: docker/build-push-action@v4 27 | with: 28 | context: . 29 | file: ./Dockerfile 30 | push: false # Don't push, just build 31 | tags: | 32 | dumbwareio/dumbwhois:latest 33 | dumbwareio/dumbwhois:${{ github.sha }} 34 | dumbwareio/dumbwhois:build-${{ github.run_number }} 35 | platforms: linux/amd64,linux/arm64 36 | 37 | push: 38 | runs-on: ubuntu-latest 39 | needs: build 40 | if: github.repository_owner == github.actor || github.repository_owner == 'dumbwareio' # Only push for repository owner, not forks 41 | 42 | steps: 43 | # Step 4: Check out the repository 44 | - name: Checkout code 45 | uses: actions/checkout@v3 46 | 47 | # Step 5: Set up Docker Buildx again (ensuring multi-platform support) 48 | - name: Set up Docker Buildx 49 | uses: docker/setup-buildx-action@v2 50 | with: 51 | driver: docker-container 52 | install: true 53 | 54 | # Step 6: Log in to Docker Hub (only for non-forked repositories) 55 | - name: Log in to Docker Hub 56 | uses: docker/login-action@v2 57 | with: 58 | username: ${{ secrets.DOCKER_USERNAME }} 59 | password: ${{ secrets.DOCKER_PASSWORD }} 60 | 61 | # Step 7: Push Docker Image (only for repository owner) 62 | - name: Push Docker Image 63 | uses: docker/build-push-action@v4 64 | with: 65 | context: . 66 | file: ./Dockerfile 67 | push: true # This will push the image to Docker Hub 68 | tags: | 69 | dumbwareio/dumbwhois:latest 70 | dumbwareio/dumbwhois:${{ github.sha }} 71 | dumbwareio/dumbwhois:build-${{ github.run_number }} 72 | platforms: linux/amd64,linux/arm64 73 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # yarn v2 126 | .yarn/cache 127 | .yarn/unplugged 128 | .yarn/build-state.yml 129 | .yarn/install-state.gz 130 | .pnp.* 131 | 132 | # Generated PWA Files 133 | /public/assets/*manifest.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Add multi-stage build 2 | FROM node:18-alpine AS builder 3 | 4 | WORKDIR /app 5 | COPY package*.json ./ 6 | RUN npm ci 7 | 8 | COPY . . 9 | 10 | FROM node:18-alpine 11 | WORKDIR /app 12 | COPY --from=builder /app . 13 | 14 | # Expose port 15 | EXPOSE 3000 16 | 17 | # Start the application 18 | CMD ["npm", "start"] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DumbWhois 2 | 3 | A simple web application for looking up WHOIS, IP, and ASN information using free APIs. The application automatically detects the type of query and provides formatted results with a clean, modern UI that supports both light and dark modes. 4 | 5 | ![image](https://github.com/user-attachments/assets/a4f84c05-c8f8-4e75-9788-dc70adc2ad9b) 6 | 7 | 8 | ## Features 9 | 10 | - 🔍 Automatic detection of query type (Domain, IP, or ASN) 11 | - 🌐 Direct WHOIS domain lookup with support for all TLDs 12 | - 🌍 IP geolocation with multiple fallback services 13 | - 🔢 ASN (Autonomous System Number) details 14 | - 🎨 Clean and modern UI with dark mode support 15 | - 📱 Responsive design for mobile and desktop 16 | - 🚫 No authentication required 17 | - ⚙️ Environment variable configuration 18 | - 🔄 Automatic service fallback for IP lookups 19 | - 🌐 Full IPv6 support 20 | - 📋 Clear source attribution for all lookups 21 | - 🔍 DNS resolution for domain IP addresses 22 | - 🔗 URL query parameter support for direct lookups 23 | - 🔖 Permalink anchors for sharing specific result sections 24 | - 🔒 CORS support for cross-origin requests 25 | - 🌐 PWA Support 26 | 27 | ## APIs Used 28 | 29 | The application uses the following free services: 30 | 31 | - **WHOIS Lookup**: Direct WHOIS protocol 32 | - Native WHOIS queries to authoritative servers 33 | - Support for all TLDs including ccTLDs 34 | - DNS resolution for IPv4 and IPv6 addresses 35 | - No API key required 36 | - No rate limits 37 | 38 | - **IP Lookup**: Multiple services with automatic fallback 39 | 1. [ipapi.co](https://ipapi.co) 40 | - Primary service for IP geolocation 41 | - Free tier with rate limits 42 | - No API key required 43 | 2. [ip-api.com](https://ip-api.com) 44 | - First fallback service 45 | - Free for non-commercial use 46 | - No API key required 47 | 3. [ipwho.is](https://ipwho.is) 48 | - Second fallback service 49 | - Free with no rate limits 50 | - No API key required 51 | 52 | - **ASN Lookup**: [BGPView API](https://bgpview.docs.apiary.io/) 53 | - Provides ASN details and related information 54 | - Free to use 55 | - No authentication required 56 | 57 | ## Setup 58 | 59 | ### Standard Setup 60 | 61 | 1. Clone the repository: 62 | ```bash 63 | git clone https://github.com/dumbwareio/dumbwhois.git 64 | cd dumbwhois 65 | ``` 66 | 67 | 2. Install dependencies: 68 | ```bash 69 | npm install 70 | ``` 71 | 72 | 3. Configure environment variables: 73 | ```bash 74 | cp .env.example .env 75 | # Edit .env to set your desired port (default is 3000) 76 | ``` 77 | 78 | 4. Start the server: 79 | ```bash 80 | npm start 81 | ``` 82 | 83 | For development with auto-reload: 84 | ```bash 85 | npm run dev 86 | ``` 87 | 88 | ### Docker Setup 89 | 90 | 1. Build the Docker image: 91 | ```bash 92 | docker build -t dumbwhois . 93 | ``` 94 | 95 | 2. Run the container: 96 | ```bash 97 | docker run -p 3000:3000 -d dumbwhois 98 | ``` 99 | 100 | Or using Docker Compose: 101 | ```bash 102 | docker-compose up -d 103 | ``` 104 | 105 | docker-compose.yml: 106 | ```yaml 107 | services: 108 | dumbwhois: 109 | image: dumbwareio/dumbwhois:latest 110 | container_name: dumbwhois 111 | restart: unless-stopped 112 | ports: 113 | - ${DUMBWHOIS_PORT:-3000}:3000 114 | environment: 115 | - SITE_TITLE=${DUMBWHOIS_SITE_TITLE:-DumbWhois} 116 | # (Optional) Restrict origins - ex: https://subdomain.domain.tld,https://auth.proxy.tld,http://internalip:port' (empty/default is '*') 117 | # - ALLOWED_ORIGINS=${DUMBWHOIS_ALLOWED_ORIGINS:-*} 118 | ``` 119 | 120 | ## Usage 121 | 122 | 1. Visit `http://localhost:3000` in your browser 123 | 2. Enter any of the following: 124 | - Domain name (e.g., `yahoo.com`, `europa.eu`) 125 | - IP address (IPv4 or IPv6, e.g., `8.8.8.8`, `2001:4860:4860::8888`) 126 | - ASN number (e.g., `AS13335` or just `13335`) 127 | 3. The application will automatically detect the type of query and display formatted results 128 | 4. Toggle between light and dark modes using the moon icon in the top-right corner 129 | 130 | You can also perform direct lookups by using the `lookup` query parameter in the URL: 131 | - Domain lookup: `http://localhost:3000/?lookup=google.com` 132 | - IP lookup: `http://localhost:3000/?lookup=8.8.8.8` 133 | - ASN lookup: `http://localhost:3000/?lookup=AS13335` 134 | 135 | ### Permalink Anchors 136 | 137 | Each section of the results now has a permalink anchor that allows direct linking to specific information: 138 | - Click the link icon (🔗) next to any section header to copy a direct link to that section 139 | - Share links to specific sections, like nameservers or IP addresses: `http://localhost:3000/?lookup=google.com#nameservers` 140 | - When following a permalink, the page will automatically scroll to the relevant section 141 | - Sections are briefly highlighted when accessed via permalink for better visibility 142 | 143 | ## Example Queries 144 | 145 | - **Domain Lookup**: `google.com`, `europa.eu`, `bbc.co.uk` 146 | - **IPv4 Lookup**: `8.8.8.8`, `1.1.1.1`, `140.82.121.4` 147 | - **IPv6 Lookup**: `2001:4860:4860::8888`, `2606:4700:4700::1111` 148 | - **ASN Lookup**: `AS13335`, `AS15169`, `AS8075` 149 | 150 | ## Rate Limits 151 | 152 | Please note that some APIs used have rate limits: 153 | - WHOIS: No rate limits (uses direct protocol) 154 | - ipapi.co: 1000 requests per day (free tier) 155 | - ip-api.com: 45 requests per minute 156 | - ipwho.is: No rate limits 157 | - BGPView: unknown rate limit waiting for reply. 158 | 159 | The application automatically handles rate limits by falling back to alternative services when needed. 160 | 161 | ## Contributing 162 | 163 | Contributions are welcome! Please feel free to submit a Pull Request. -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | dumbwhois: 3 | image: dumbwareio/dumbwhois:latest 4 | # build: . 5 | container_name: dumbwhois 6 | restart: unless-stopped 7 | ports: 8 | - ${DUMBWHOIS_PORT:-3000}:3000 9 | environment: 10 | - SITE_TITLE=${DUMBWHOIS_SITE_TITLE:-DumbWhois} 11 | # (Optional) Restrict origins - ex: https://subdomain.domain.tld,https://auth.proxy.tld,http://internalip:port' (empty/default is '*') 12 | # - ALLOWED_ORIGINS=${DUMBWHOIS_ALLOWED_ORIGINS:-*} -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignore": ["asset-manifest.json", "manifest.json"] 3 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dumbwhois", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "dumbwhois", 9 | "version": "1.0.0", 10 | "dependencies": { 11 | "axios": "^1.6.2", 12 | "cors": "^2.8.5", 13 | "dotenv": "^16.3.1", 14 | "express": "^4.18.2", 15 | "node-whois": "^2.1.3", 16 | "whois": "^2.14.2" 17 | }, 18 | "devDependencies": { 19 | "nodemon": "^3.0.2" 20 | } 21 | }, 22 | "node_modules/accepts": { 23 | "version": "1.3.8", 24 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 25 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 26 | "dependencies": { 27 | "mime-types": "~2.1.34", 28 | "negotiator": "0.6.3" 29 | }, 30 | "engines": { 31 | "node": ">= 0.6" 32 | } 33 | }, 34 | "node_modules/ansi-regex": { 35 | "version": "5.0.1", 36 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 37 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 38 | "engines": { 39 | "node": ">=8" 40 | } 41 | }, 42 | "node_modules/ansi-styles": { 43 | "version": "4.3.0", 44 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 45 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 46 | "dependencies": { 47 | "color-convert": "^2.0.1" 48 | }, 49 | "engines": { 50 | "node": ">=8" 51 | }, 52 | "funding": { 53 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 54 | } 55 | }, 56 | "node_modules/anymatch": { 57 | "version": "3.1.3", 58 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 59 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 60 | "dev": true, 61 | "dependencies": { 62 | "normalize-path": "^3.0.0", 63 | "picomatch": "^2.0.4" 64 | }, 65 | "engines": { 66 | "node": ">= 8" 67 | } 68 | }, 69 | "node_modules/array-flatten": { 70 | "version": "1.1.1", 71 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 72 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 73 | }, 74 | "node_modules/asynckit": { 75 | "version": "0.4.0", 76 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 77 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 78 | }, 79 | "node_modules/axios": { 80 | "version": "1.7.9", 81 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", 82 | "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", 83 | "dependencies": { 84 | "follow-redirects": "^1.15.6", 85 | "form-data": "^4.0.0", 86 | "proxy-from-env": "^1.1.0" 87 | } 88 | }, 89 | "node_modules/balanced-match": { 90 | "version": "1.0.2", 91 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 92 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 93 | "dev": true 94 | }, 95 | "node_modules/binary-extensions": { 96 | "version": "2.3.0", 97 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 98 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 99 | "dev": true, 100 | "engines": { 101 | "node": ">=8" 102 | }, 103 | "funding": { 104 | "url": "https://github.com/sponsors/sindresorhus" 105 | } 106 | }, 107 | "node_modules/body-parser": { 108 | "version": "1.20.3", 109 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", 110 | "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", 111 | "dependencies": { 112 | "bytes": "3.1.2", 113 | "content-type": "~1.0.5", 114 | "debug": "2.6.9", 115 | "depd": "2.0.0", 116 | "destroy": "1.2.0", 117 | "http-errors": "2.0.0", 118 | "iconv-lite": "0.4.24", 119 | "on-finished": "2.4.1", 120 | "qs": "6.13.0", 121 | "raw-body": "2.5.2", 122 | "type-is": "~1.6.18", 123 | "unpipe": "1.0.0" 124 | }, 125 | "engines": { 126 | "node": ">= 0.8", 127 | "npm": "1.2.8000 || >= 1.4.16" 128 | } 129 | }, 130 | "node_modules/brace-expansion": { 131 | "version": "1.1.11", 132 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 133 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 134 | "dev": true, 135 | "dependencies": { 136 | "balanced-match": "^1.0.0", 137 | "concat-map": "0.0.1" 138 | } 139 | }, 140 | "node_modules/braces": { 141 | "version": "3.0.3", 142 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 143 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 144 | "dev": true, 145 | "dependencies": { 146 | "fill-range": "^7.1.1" 147 | }, 148 | "engines": { 149 | "node": ">=8" 150 | } 151 | }, 152 | "node_modules/bytes": { 153 | "version": "3.1.2", 154 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 155 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 156 | "engines": { 157 | "node": ">= 0.8" 158 | } 159 | }, 160 | "node_modules/call-bind-apply-helpers": { 161 | "version": "1.0.1", 162 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", 163 | "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", 164 | "dependencies": { 165 | "es-errors": "^1.3.0", 166 | "function-bind": "^1.1.2" 167 | }, 168 | "engines": { 169 | "node": ">= 0.4" 170 | } 171 | }, 172 | "node_modules/call-bound": { 173 | "version": "1.0.3", 174 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", 175 | "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", 176 | "dependencies": { 177 | "call-bind-apply-helpers": "^1.0.1", 178 | "get-intrinsic": "^1.2.6" 179 | }, 180 | "engines": { 181 | "node": ">= 0.4" 182 | }, 183 | "funding": { 184 | "url": "https://github.com/sponsors/ljharb" 185 | } 186 | }, 187 | "node_modules/camelcase": { 188 | "version": "5.3.1", 189 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 190 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 191 | "engines": { 192 | "node": ">=6" 193 | } 194 | }, 195 | "node_modules/chokidar": { 196 | "version": "3.6.0", 197 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 198 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 199 | "dev": true, 200 | "dependencies": { 201 | "anymatch": "~3.1.2", 202 | "braces": "~3.0.2", 203 | "glob-parent": "~5.1.2", 204 | "is-binary-path": "~2.1.0", 205 | "is-glob": "~4.0.1", 206 | "normalize-path": "~3.0.0", 207 | "readdirp": "~3.6.0" 208 | }, 209 | "engines": { 210 | "node": ">= 8.10.0" 211 | }, 212 | "funding": { 213 | "url": "https://paulmillr.com/funding/" 214 | }, 215 | "optionalDependencies": { 216 | "fsevents": "~2.3.2" 217 | } 218 | }, 219 | "node_modules/cliui": { 220 | "version": "6.0.0", 221 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", 222 | "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", 223 | "dependencies": { 224 | "string-width": "^4.2.0", 225 | "strip-ansi": "^6.0.0", 226 | "wrap-ansi": "^6.2.0" 227 | } 228 | }, 229 | "node_modules/color-convert": { 230 | "version": "2.0.1", 231 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 232 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 233 | "dependencies": { 234 | "color-name": "~1.1.4" 235 | }, 236 | "engines": { 237 | "node": ">=7.0.0" 238 | } 239 | }, 240 | "node_modules/color-name": { 241 | "version": "1.1.4", 242 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 243 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 244 | }, 245 | "node_modules/combined-stream": { 246 | "version": "1.0.8", 247 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 248 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 249 | "dependencies": { 250 | "delayed-stream": "~1.0.0" 251 | }, 252 | "engines": { 253 | "node": ">= 0.8" 254 | } 255 | }, 256 | "node_modules/concat-map": { 257 | "version": "0.0.1", 258 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 259 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 260 | "dev": true 261 | }, 262 | "node_modules/content-disposition": { 263 | "version": "0.5.4", 264 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 265 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 266 | "dependencies": { 267 | "safe-buffer": "5.2.1" 268 | }, 269 | "engines": { 270 | "node": ">= 0.6" 271 | } 272 | }, 273 | "node_modules/content-type": { 274 | "version": "1.0.5", 275 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 276 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 277 | "engines": { 278 | "node": ">= 0.6" 279 | } 280 | }, 281 | "node_modules/cookie": { 282 | "version": "0.7.1", 283 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 284 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 285 | "engines": { 286 | "node": ">= 0.6" 287 | } 288 | }, 289 | "node_modules/cookie-signature": { 290 | "version": "1.0.6", 291 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 292 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 293 | }, 294 | "node_modules/cors": { 295 | "version": "2.8.5", 296 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 297 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 298 | "dependencies": { 299 | "object-assign": "^4", 300 | "vary": "^1" 301 | }, 302 | "engines": { 303 | "node": ">= 0.10" 304 | } 305 | }, 306 | "node_modules/debug": { 307 | "version": "2.6.9", 308 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 309 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 310 | "dependencies": { 311 | "ms": "2.0.0" 312 | } 313 | }, 314 | "node_modules/decamelize": { 315 | "version": "1.2.0", 316 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 317 | "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", 318 | "engines": { 319 | "node": ">=0.10.0" 320 | } 321 | }, 322 | "node_modules/delayed-stream": { 323 | "version": "1.0.0", 324 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 325 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 326 | "engines": { 327 | "node": ">=0.4.0" 328 | } 329 | }, 330 | "node_modules/depd": { 331 | "version": "2.0.0", 332 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 333 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 334 | "engines": { 335 | "node": ">= 0.8" 336 | } 337 | }, 338 | "node_modules/destroy": { 339 | "version": "1.2.0", 340 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 341 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 342 | "engines": { 343 | "node": ">= 0.8", 344 | "npm": "1.2.8000 || >= 1.4.16" 345 | } 346 | }, 347 | "node_modules/dotenv": { 348 | "version": "16.4.7", 349 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", 350 | "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", 351 | "engines": { 352 | "node": ">=12" 353 | }, 354 | "funding": { 355 | "url": "https://dotenvx.com" 356 | } 357 | }, 358 | "node_modules/dunder-proto": { 359 | "version": "1.0.1", 360 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 361 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 362 | "dependencies": { 363 | "call-bind-apply-helpers": "^1.0.1", 364 | "es-errors": "^1.3.0", 365 | "gopd": "^1.2.0" 366 | }, 367 | "engines": { 368 | "node": ">= 0.4" 369 | } 370 | }, 371 | "node_modules/ee-first": { 372 | "version": "1.1.1", 373 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 374 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 375 | }, 376 | "node_modules/emoji-regex": { 377 | "version": "8.0.0", 378 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 379 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 380 | }, 381 | "node_modules/encodeurl": { 382 | "version": "2.0.0", 383 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 384 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 385 | "engines": { 386 | "node": ">= 0.8" 387 | } 388 | }, 389 | "node_modules/es-define-property": { 390 | "version": "1.0.1", 391 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 392 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 393 | "engines": { 394 | "node": ">= 0.4" 395 | } 396 | }, 397 | "node_modules/es-errors": { 398 | "version": "1.3.0", 399 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 400 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 401 | "engines": { 402 | "node": ">= 0.4" 403 | } 404 | }, 405 | "node_modules/es-object-atoms": { 406 | "version": "1.1.1", 407 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 408 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 409 | "dependencies": { 410 | "es-errors": "^1.3.0" 411 | }, 412 | "engines": { 413 | "node": ">= 0.4" 414 | } 415 | }, 416 | "node_modules/escape-html": { 417 | "version": "1.0.3", 418 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 419 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 420 | }, 421 | "node_modules/etag": { 422 | "version": "1.8.1", 423 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 424 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 425 | "engines": { 426 | "node": ">= 0.6" 427 | } 428 | }, 429 | "node_modules/express": { 430 | "version": "4.21.2", 431 | "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", 432 | "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", 433 | "dependencies": { 434 | "accepts": "~1.3.8", 435 | "array-flatten": "1.1.1", 436 | "body-parser": "1.20.3", 437 | "content-disposition": "0.5.4", 438 | "content-type": "~1.0.4", 439 | "cookie": "0.7.1", 440 | "cookie-signature": "1.0.6", 441 | "debug": "2.6.9", 442 | "depd": "2.0.0", 443 | "encodeurl": "~2.0.0", 444 | "escape-html": "~1.0.3", 445 | "etag": "~1.8.1", 446 | "finalhandler": "1.3.1", 447 | "fresh": "0.5.2", 448 | "http-errors": "2.0.0", 449 | "merge-descriptors": "1.0.3", 450 | "methods": "~1.1.2", 451 | "on-finished": "2.4.1", 452 | "parseurl": "~1.3.3", 453 | "path-to-regexp": "0.1.12", 454 | "proxy-addr": "~2.0.7", 455 | "qs": "6.13.0", 456 | "range-parser": "~1.2.1", 457 | "safe-buffer": "5.2.1", 458 | "send": "0.19.0", 459 | "serve-static": "1.16.2", 460 | "setprototypeof": "1.2.0", 461 | "statuses": "2.0.1", 462 | "type-is": "~1.6.18", 463 | "utils-merge": "1.0.1", 464 | "vary": "~1.1.2" 465 | }, 466 | "engines": { 467 | "node": ">= 0.10.0" 468 | }, 469 | "funding": { 470 | "type": "opencollective", 471 | "url": "https://opencollective.com/express" 472 | } 473 | }, 474 | "node_modules/fill-range": { 475 | "version": "7.1.1", 476 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 477 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 478 | "dev": true, 479 | "dependencies": { 480 | "to-regex-range": "^5.0.1" 481 | }, 482 | "engines": { 483 | "node": ">=8" 484 | } 485 | }, 486 | "node_modules/finalhandler": { 487 | "version": "1.3.1", 488 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", 489 | "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", 490 | "dependencies": { 491 | "debug": "2.6.9", 492 | "encodeurl": "~2.0.0", 493 | "escape-html": "~1.0.3", 494 | "on-finished": "2.4.1", 495 | "parseurl": "~1.3.3", 496 | "statuses": "2.0.1", 497 | "unpipe": "~1.0.0" 498 | }, 499 | "engines": { 500 | "node": ">= 0.8" 501 | } 502 | }, 503 | "node_modules/find-up": { 504 | "version": "4.1.0", 505 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 506 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 507 | "dependencies": { 508 | "locate-path": "^5.0.0", 509 | "path-exists": "^4.0.0" 510 | }, 511 | "engines": { 512 | "node": ">=8" 513 | } 514 | }, 515 | "node_modules/follow-redirects": { 516 | "version": "1.15.9", 517 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", 518 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", 519 | "funding": [ 520 | { 521 | "type": "individual", 522 | "url": "https://github.com/sponsors/RubenVerborgh" 523 | } 524 | ], 525 | "engines": { 526 | "node": ">=4.0" 527 | }, 528 | "peerDependenciesMeta": { 529 | "debug": { 530 | "optional": true 531 | } 532 | } 533 | }, 534 | "node_modules/form-data": { 535 | "version": "4.0.1", 536 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", 537 | "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", 538 | "dependencies": { 539 | "asynckit": "^0.4.0", 540 | "combined-stream": "^1.0.8", 541 | "mime-types": "^2.1.12" 542 | }, 543 | "engines": { 544 | "node": ">= 6" 545 | } 546 | }, 547 | "node_modules/forwarded": { 548 | "version": "0.2.0", 549 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 550 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 551 | "engines": { 552 | "node": ">= 0.6" 553 | } 554 | }, 555 | "node_modules/fresh": { 556 | "version": "0.5.2", 557 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 558 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 559 | "engines": { 560 | "node": ">= 0.6" 561 | } 562 | }, 563 | "node_modules/fsevents": { 564 | "version": "2.3.3", 565 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 566 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 567 | "dev": true, 568 | "hasInstallScript": true, 569 | "optional": true, 570 | "os": [ 571 | "darwin" 572 | ], 573 | "engines": { 574 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 575 | } 576 | }, 577 | "node_modules/function-bind": { 578 | "version": "1.1.2", 579 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 580 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 581 | "funding": { 582 | "url": "https://github.com/sponsors/ljharb" 583 | } 584 | }, 585 | "node_modules/get-caller-file": { 586 | "version": "2.0.5", 587 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 588 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 589 | "engines": { 590 | "node": "6.* || 8.* || >= 10.*" 591 | } 592 | }, 593 | "node_modules/get-intrinsic": { 594 | "version": "1.2.7", 595 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", 596 | "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", 597 | "dependencies": { 598 | "call-bind-apply-helpers": "^1.0.1", 599 | "es-define-property": "^1.0.1", 600 | "es-errors": "^1.3.0", 601 | "es-object-atoms": "^1.0.0", 602 | "function-bind": "^1.1.2", 603 | "get-proto": "^1.0.0", 604 | "gopd": "^1.2.0", 605 | "has-symbols": "^1.1.0", 606 | "hasown": "^2.0.2", 607 | "math-intrinsics": "^1.1.0" 608 | }, 609 | "engines": { 610 | "node": ">= 0.4" 611 | }, 612 | "funding": { 613 | "url": "https://github.com/sponsors/ljharb" 614 | } 615 | }, 616 | "node_modules/get-proto": { 617 | "version": "1.0.1", 618 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 619 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 620 | "dependencies": { 621 | "dunder-proto": "^1.0.1", 622 | "es-object-atoms": "^1.0.0" 623 | }, 624 | "engines": { 625 | "node": ">= 0.4" 626 | } 627 | }, 628 | "node_modules/glob-parent": { 629 | "version": "5.1.2", 630 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 631 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 632 | "dev": true, 633 | "dependencies": { 634 | "is-glob": "^4.0.1" 635 | }, 636 | "engines": { 637 | "node": ">= 6" 638 | } 639 | }, 640 | "node_modules/gopd": { 641 | "version": "1.2.0", 642 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 643 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 644 | "engines": { 645 | "node": ">= 0.4" 646 | }, 647 | "funding": { 648 | "url": "https://github.com/sponsors/ljharb" 649 | } 650 | }, 651 | "node_modules/has-flag": { 652 | "version": "3.0.0", 653 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 654 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 655 | "dev": true, 656 | "engines": { 657 | "node": ">=4" 658 | } 659 | }, 660 | "node_modules/has-symbols": { 661 | "version": "1.1.0", 662 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 663 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 664 | "engines": { 665 | "node": ">= 0.4" 666 | }, 667 | "funding": { 668 | "url": "https://github.com/sponsors/ljharb" 669 | } 670 | }, 671 | "node_modules/hasown": { 672 | "version": "2.0.2", 673 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 674 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 675 | "dependencies": { 676 | "function-bind": "^1.1.2" 677 | }, 678 | "engines": { 679 | "node": ">= 0.4" 680 | } 681 | }, 682 | "node_modules/http-errors": { 683 | "version": "2.0.0", 684 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 685 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 686 | "dependencies": { 687 | "depd": "2.0.0", 688 | "inherits": "2.0.4", 689 | "setprototypeof": "1.2.0", 690 | "statuses": "2.0.1", 691 | "toidentifier": "1.0.1" 692 | }, 693 | "engines": { 694 | "node": ">= 0.8" 695 | } 696 | }, 697 | "node_modules/iconv-lite": { 698 | "version": "0.4.24", 699 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 700 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 701 | "dependencies": { 702 | "safer-buffer": ">= 2.1.2 < 3" 703 | }, 704 | "engines": { 705 | "node": ">=0.10.0" 706 | } 707 | }, 708 | "node_modules/ignore-by-default": { 709 | "version": "1.0.1", 710 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 711 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 712 | "dev": true 713 | }, 714 | "node_modules/inherits": { 715 | "version": "2.0.4", 716 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 717 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 718 | }, 719 | "node_modules/ip-address": { 720 | "version": "9.0.5", 721 | "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", 722 | "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", 723 | "dependencies": { 724 | "jsbn": "1.1.0", 725 | "sprintf-js": "^1.1.3" 726 | }, 727 | "engines": { 728 | "node": ">= 12" 729 | } 730 | }, 731 | "node_modules/ipaddr.js": { 732 | "version": "1.9.1", 733 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 734 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 735 | "engines": { 736 | "node": ">= 0.10" 737 | } 738 | }, 739 | "node_modules/is-binary-path": { 740 | "version": "2.1.0", 741 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 742 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 743 | "dev": true, 744 | "dependencies": { 745 | "binary-extensions": "^2.0.0" 746 | }, 747 | "engines": { 748 | "node": ">=8" 749 | } 750 | }, 751 | "node_modules/is-extglob": { 752 | "version": "2.1.1", 753 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 754 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 755 | "dev": true, 756 | "engines": { 757 | "node": ">=0.10.0" 758 | } 759 | }, 760 | "node_modules/is-fullwidth-code-point": { 761 | "version": "3.0.0", 762 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 763 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 764 | "engines": { 765 | "node": ">=8" 766 | } 767 | }, 768 | "node_modules/is-glob": { 769 | "version": "4.0.3", 770 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 771 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 772 | "dev": true, 773 | "dependencies": { 774 | "is-extglob": "^2.1.1" 775 | }, 776 | "engines": { 777 | "node": ">=0.10.0" 778 | } 779 | }, 780 | "node_modules/is-number": { 781 | "version": "7.0.0", 782 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 783 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 784 | "dev": true, 785 | "engines": { 786 | "node": ">=0.12.0" 787 | } 788 | }, 789 | "node_modules/jsbn": { 790 | "version": "1.1.0", 791 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", 792 | "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" 793 | }, 794 | "node_modules/locate-path": { 795 | "version": "5.0.0", 796 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 797 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 798 | "dependencies": { 799 | "p-locate": "^4.1.0" 800 | }, 801 | "engines": { 802 | "node": ">=8" 803 | } 804 | }, 805 | "node_modules/math-intrinsics": { 806 | "version": "1.1.0", 807 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 808 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 809 | "engines": { 810 | "node": ">= 0.4" 811 | } 812 | }, 813 | "node_modules/media-typer": { 814 | "version": "0.3.0", 815 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 816 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 817 | "engines": { 818 | "node": ">= 0.6" 819 | } 820 | }, 821 | "node_modules/merge-descriptors": { 822 | "version": "1.0.3", 823 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", 824 | "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", 825 | "funding": { 826 | "url": "https://github.com/sponsors/sindresorhus" 827 | } 828 | }, 829 | "node_modules/methods": { 830 | "version": "1.1.2", 831 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 832 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 833 | "engines": { 834 | "node": ">= 0.6" 835 | } 836 | }, 837 | "node_modules/mime": { 838 | "version": "1.6.0", 839 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 840 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 841 | "bin": { 842 | "mime": "cli.js" 843 | }, 844 | "engines": { 845 | "node": ">=4" 846 | } 847 | }, 848 | "node_modules/mime-db": { 849 | "version": "1.52.0", 850 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 851 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 852 | "engines": { 853 | "node": ">= 0.6" 854 | } 855 | }, 856 | "node_modules/mime-types": { 857 | "version": "2.1.35", 858 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 859 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 860 | "dependencies": { 861 | "mime-db": "1.52.0" 862 | }, 863 | "engines": { 864 | "node": ">= 0.6" 865 | } 866 | }, 867 | "node_modules/minimatch": { 868 | "version": "3.1.2", 869 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 870 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 871 | "dev": true, 872 | "dependencies": { 873 | "brace-expansion": "^1.1.7" 874 | }, 875 | "engines": { 876 | "node": "*" 877 | } 878 | }, 879 | "node_modules/minimist": { 880 | "version": "0.0.10", 881 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", 882 | "integrity": "sha512-iotkTvxc+TwOm5Ieim8VnSNvCDjCK9S8G3scJ50ZthspSxa7jx50jkhYduuAtAjvfDUwSgOwf8+If99AlOEhyw==" 883 | }, 884 | "node_modules/ms": { 885 | "version": "2.0.0", 886 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 887 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 888 | }, 889 | "node_modules/negotiator": { 890 | "version": "0.6.3", 891 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 892 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 893 | "engines": { 894 | "node": ">= 0.6" 895 | } 896 | }, 897 | "node_modules/node-whois": { 898 | "version": "2.1.3", 899 | "resolved": "https://registry.npmjs.org/node-whois/-/node-whois-2.1.3.tgz", 900 | "integrity": "sha512-8Ysz5s5AfSxiLKiFrFbWma3YBe+e/13uGrfJCemztdX5e2cbbJ61w28YHoVJ/u6jx1porvaBthbciSppz7UutQ==", 901 | "deprecated": "WARNING: This project has been renamed from node-whois to whois. Install using whois instead.", 902 | "dependencies": { 903 | "optimist": "^0.6.1", 904 | "underscore": "~1.5.2" 905 | } 906 | }, 907 | "node_modules/node-whois/node_modules/underscore": { 908 | "version": "1.5.2", 909 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz", 910 | "integrity": "sha512-yejOFsRnTJs0N9CK5Apzf6maDO2djxGoLLrlZlvGs2o9ZQuhIhDL18rtFyy4FBIbOkzA6+4hDgXbgz5EvDQCXQ==" 911 | }, 912 | "node_modules/nodemon": { 913 | "version": "3.1.9", 914 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.9.tgz", 915 | "integrity": "sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==", 916 | "dev": true, 917 | "dependencies": { 918 | "chokidar": "^3.5.2", 919 | "debug": "^4", 920 | "ignore-by-default": "^1.0.1", 921 | "minimatch": "^3.1.2", 922 | "pstree.remy": "^1.1.8", 923 | "semver": "^7.5.3", 924 | "simple-update-notifier": "^2.0.0", 925 | "supports-color": "^5.5.0", 926 | "touch": "^3.1.0", 927 | "undefsafe": "^2.0.5" 928 | }, 929 | "bin": { 930 | "nodemon": "bin/nodemon.js" 931 | }, 932 | "engines": { 933 | "node": ">=10" 934 | }, 935 | "funding": { 936 | "type": "opencollective", 937 | "url": "https://opencollective.com/nodemon" 938 | } 939 | }, 940 | "node_modules/nodemon/node_modules/debug": { 941 | "version": "4.4.0", 942 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 943 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 944 | "dev": true, 945 | "dependencies": { 946 | "ms": "^2.1.3" 947 | }, 948 | "engines": { 949 | "node": ">=6.0" 950 | }, 951 | "peerDependenciesMeta": { 952 | "supports-color": { 953 | "optional": true 954 | } 955 | } 956 | }, 957 | "node_modules/nodemon/node_modules/ms": { 958 | "version": "2.1.3", 959 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 960 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 961 | "dev": true 962 | }, 963 | "node_modules/normalize-path": { 964 | "version": "3.0.0", 965 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 966 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 967 | "dev": true, 968 | "engines": { 969 | "node": ">=0.10.0" 970 | } 971 | }, 972 | "node_modules/object-assign": { 973 | "version": "4.1.1", 974 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 975 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 976 | "engines": { 977 | "node": ">=0.10.0" 978 | } 979 | }, 980 | "node_modules/object-inspect": { 981 | "version": "1.13.3", 982 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", 983 | "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", 984 | "engines": { 985 | "node": ">= 0.4" 986 | }, 987 | "funding": { 988 | "url": "https://github.com/sponsors/ljharb" 989 | } 990 | }, 991 | "node_modules/on-finished": { 992 | "version": "2.4.1", 993 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 994 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 995 | "dependencies": { 996 | "ee-first": "1.1.1" 997 | }, 998 | "engines": { 999 | "node": ">= 0.8" 1000 | } 1001 | }, 1002 | "node_modules/optimist": { 1003 | "version": "0.6.1", 1004 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", 1005 | "integrity": "sha512-snN4O4TkigujZphWLN0E//nQmm7790RYaE53DdL7ZYwee2D8DDo9/EyYiKUfN3rneWUjhJnueija3G9I2i0h3g==", 1006 | "dependencies": { 1007 | "minimist": "~0.0.1", 1008 | "wordwrap": "~0.0.2" 1009 | } 1010 | }, 1011 | "node_modules/p-limit": { 1012 | "version": "2.3.0", 1013 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 1014 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 1015 | "dependencies": { 1016 | "p-try": "^2.0.0" 1017 | }, 1018 | "engines": { 1019 | "node": ">=6" 1020 | }, 1021 | "funding": { 1022 | "url": "https://github.com/sponsors/sindresorhus" 1023 | } 1024 | }, 1025 | "node_modules/p-locate": { 1026 | "version": "4.1.0", 1027 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 1028 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 1029 | "dependencies": { 1030 | "p-limit": "^2.2.0" 1031 | }, 1032 | "engines": { 1033 | "node": ">=8" 1034 | } 1035 | }, 1036 | "node_modules/p-try": { 1037 | "version": "2.2.0", 1038 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1039 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 1040 | "engines": { 1041 | "node": ">=6" 1042 | } 1043 | }, 1044 | "node_modules/parseurl": { 1045 | "version": "1.3.3", 1046 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1047 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1048 | "engines": { 1049 | "node": ">= 0.8" 1050 | } 1051 | }, 1052 | "node_modules/path-exists": { 1053 | "version": "4.0.0", 1054 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1055 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1056 | "engines": { 1057 | "node": ">=8" 1058 | } 1059 | }, 1060 | "node_modules/path-to-regexp": { 1061 | "version": "0.1.12", 1062 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", 1063 | "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==" 1064 | }, 1065 | "node_modules/picomatch": { 1066 | "version": "2.3.1", 1067 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1068 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1069 | "dev": true, 1070 | "engines": { 1071 | "node": ">=8.6" 1072 | }, 1073 | "funding": { 1074 | "url": "https://github.com/sponsors/jonschlinkert" 1075 | } 1076 | }, 1077 | "node_modules/proxy-addr": { 1078 | "version": "2.0.7", 1079 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1080 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1081 | "dependencies": { 1082 | "forwarded": "0.2.0", 1083 | "ipaddr.js": "1.9.1" 1084 | }, 1085 | "engines": { 1086 | "node": ">= 0.10" 1087 | } 1088 | }, 1089 | "node_modules/proxy-from-env": { 1090 | "version": "1.1.0", 1091 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 1092 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" 1093 | }, 1094 | "node_modules/pstree.remy": { 1095 | "version": "1.1.8", 1096 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1097 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1098 | "dev": true 1099 | }, 1100 | "node_modules/punycode": { 1101 | "version": "2.3.1", 1102 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1103 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1104 | "engines": { 1105 | "node": ">=6" 1106 | } 1107 | }, 1108 | "node_modules/qs": { 1109 | "version": "6.13.0", 1110 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 1111 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 1112 | "dependencies": { 1113 | "side-channel": "^1.0.6" 1114 | }, 1115 | "engines": { 1116 | "node": ">=0.6" 1117 | }, 1118 | "funding": { 1119 | "url": "https://github.com/sponsors/ljharb" 1120 | } 1121 | }, 1122 | "node_modules/range-parser": { 1123 | "version": "1.2.1", 1124 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1125 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1126 | "engines": { 1127 | "node": ">= 0.6" 1128 | } 1129 | }, 1130 | "node_modules/raw-body": { 1131 | "version": "2.5.2", 1132 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 1133 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 1134 | "dependencies": { 1135 | "bytes": "3.1.2", 1136 | "http-errors": "2.0.0", 1137 | "iconv-lite": "0.4.24", 1138 | "unpipe": "1.0.0" 1139 | }, 1140 | "engines": { 1141 | "node": ">= 0.8" 1142 | } 1143 | }, 1144 | "node_modules/readdirp": { 1145 | "version": "3.6.0", 1146 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1147 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1148 | "dev": true, 1149 | "dependencies": { 1150 | "picomatch": "^2.2.1" 1151 | }, 1152 | "engines": { 1153 | "node": ">=8.10.0" 1154 | } 1155 | }, 1156 | "node_modules/require-directory": { 1157 | "version": "2.1.1", 1158 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1159 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 1160 | "engines": { 1161 | "node": ">=0.10.0" 1162 | } 1163 | }, 1164 | "node_modules/require-main-filename": { 1165 | "version": "2.0.0", 1166 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1167 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" 1168 | }, 1169 | "node_modules/safe-buffer": { 1170 | "version": "5.2.1", 1171 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1172 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1173 | "funding": [ 1174 | { 1175 | "type": "github", 1176 | "url": "https://github.com/sponsors/feross" 1177 | }, 1178 | { 1179 | "type": "patreon", 1180 | "url": "https://www.patreon.com/feross" 1181 | }, 1182 | { 1183 | "type": "consulting", 1184 | "url": "https://feross.org/support" 1185 | } 1186 | ] 1187 | }, 1188 | "node_modules/safer-buffer": { 1189 | "version": "2.1.2", 1190 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1191 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1192 | }, 1193 | "node_modules/semver": { 1194 | "version": "7.6.3", 1195 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", 1196 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 1197 | "dev": true, 1198 | "bin": { 1199 | "semver": "bin/semver.js" 1200 | }, 1201 | "engines": { 1202 | "node": ">=10" 1203 | } 1204 | }, 1205 | "node_modules/send": { 1206 | "version": "0.19.0", 1207 | "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", 1208 | "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", 1209 | "dependencies": { 1210 | "debug": "2.6.9", 1211 | "depd": "2.0.0", 1212 | "destroy": "1.2.0", 1213 | "encodeurl": "~1.0.2", 1214 | "escape-html": "~1.0.3", 1215 | "etag": "~1.8.1", 1216 | "fresh": "0.5.2", 1217 | "http-errors": "2.0.0", 1218 | "mime": "1.6.0", 1219 | "ms": "2.1.3", 1220 | "on-finished": "2.4.1", 1221 | "range-parser": "~1.2.1", 1222 | "statuses": "2.0.1" 1223 | }, 1224 | "engines": { 1225 | "node": ">= 0.8.0" 1226 | } 1227 | }, 1228 | "node_modules/send/node_modules/encodeurl": { 1229 | "version": "1.0.2", 1230 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 1231 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 1232 | "engines": { 1233 | "node": ">= 0.8" 1234 | } 1235 | }, 1236 | "node_modules/send/node_modules/ms": { 1237 | "version": "2.1.3", 1238 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1239 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1240 | }, 1241 | "node_modules/serve-static": { 1242 | "version": "1.16.2", 1243 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", 1244 | "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", 1245 | "dependencies": { 1246 | "encodeurl": "~2.0.0", 1247 | "escape-html": "~1.0.3", 1248 | "parseurl": "~1.3.3", 1249 | "send": "0.19.0" 1250 | }, 1251 | "engines": { 1252 | "node": ">= 0.8.0" 1253 | } 1254 | }, 1255 | "node_modules/set-blocking": { 1256 | "version": "2.0.0", 1257 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1258 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" 1259 | }, 1260 | "node_modules/setprototypeof": { 1261 | "version": "1.2.0", 1262 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1263 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1264 | }, 1265 | "node_modules/side-channel": { 1266 | "version": "1.1.0", 1267 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 1268 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 1269 | "dependencies": { 1270 | "es-errors": "^1.3.0", 1271 | "object-inspect": "^1.13.3", 1272 | "side-channel-list": "^1.0.0", 1273 | "side-channel-map": "^1.0.1", 1274 | "side-channel-weakmap": "^1.0.2" 1275 | }, 1276 | "engines": { 1277 | "node": ">= 0.4" 1278 | }, 1279 | "funding": { 1280 | "url": "https://github.com/sponsors/ljharb" 1281 | } 1282 | }, 1283 | "node_modules/side-channel-list": { 1284 | "version": "1.0.0", 1285 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 1286 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 1287 | "dependencies": { 1288 | "es-errors": "^1.3.0", 1289 | "object-inspect": "^1.13.3" 1290 | }, 1291 | "engines": { 1292 | "node": ">= 0.4" 1293 | }, 1294 | "funding": { 1295 | "url": "https://github.com/sponsors/ljharb" 1296 | } 1297 | }, 1298 | "node_modules/side-channel-map": { 1299 | "version": "1.0.1", 1300 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 1301 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 1302 | "dependencies": { 1303 | "call-bound": "^1.0.2", 1304 | "es-errors": "^1.3.0", 1305 | "get-intrinsic": "^1.2.5", 1306 | "object-inspect": "^1.13.3" 1307 | }, 1308 | "engines": { 1309 | "node": ">= 0.4" 1310 | }, 1311 | "funding": { 1312 | "url": "https://github.com/sponsors/ljharb" 1313 | } 1314 | }, 1315 | "node_modules/side-channel-weakmap": { 1316 | "version": "1.0.2", 1317 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 1318 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 1319 | "dependencies": { 1320 | "call-bound": "^1.0.2", 1321 | "es-errors": "^1.3.0", 1322 | "get-intrinsic": "^1.2.5", 1323 | "object-inspect": "^1.13.3", 1324 | "side-channel-map": "^1.0.1" 1325 | }, 1326 | "engines": { 1327 | "node": ">= 0.4" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/ljharb" 1331 | } 1332 | }, 1333 | "node_modules/simple-update-notifier": { 1334 | "version": "2.0.0", 1335 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", 1336 | "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", 1337 | "dev": true, 1338 | "dependencies": { 1339 | "semver": "^7.5.3" 1340 | }, 1341 | "engines": { 1342 | "node": ">=10" 1343 | } 1344 | }, 1345 | "node_modules/smart-buffer": { 1346 | "version": "4.2.0", 1347 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", 1348 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", 1349 | "engines": { 1350 | "node": ">= 6.0.0", 1351 | "npm": ">= 3.0.0" 1352 | } 1353 | }, 1354 | "node_modules/socks": { 1355 | "version": "2.8.3", 1356 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", 1357 | "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", 1358 | "dependencies": { 1359 | "ip-address": "^9.0.5", 1360 | "smart-buffer": "^4.2.0" 1361 | }, 1362 | "engines": { 1363 | "node": ">= 10.0.0", 1364 | "npm": ">= 3.0.0" 1365 | } 1366 | }, 1367 | "node_modules/sprintf-js": { 1368 | "version": "1.1.3", 1369 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", 1370 | "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" 1371 | }, 1372 | "node_modules/statuses": { 1373 | "version": "2.0.1", 1374 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1375 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1376 | "engines": { 1377 | "node": ">= 0.8" 1378 | } 1379 | }, 1380 | "node_modules/string-width": { 1381 | "version": "4.2.3", 1382 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1383 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1384 | "dependencies": { 1385 | "emoji-regex": "^8.0.0", 1386 | "is-fullwidth-code-point": "^3.0.0", 1387 | "strip-ansi": "^6.0.1" 1388 | }, 1389 | "engines": { 1390 | "node": ">=8" 1391 | } 1392 | }, 1393 | "node_modules/strip-ansi": { 1394 | "version": "6.0.1", 1395 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1396 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1397 | "dependencies": { 1398 | "ansi-regex": "^5.0.1" 1399 | }, 1400 | "engines": { 1401 | "node": ">=8" 1402 | } 1403 | }, 1404 | "node_modules/supports-color": { 1405 | "version": "5.5.0", 1406 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1407 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1408 | "dev": true, 1409 | "dependencies": { 1410 | "has-flag": "^3.0.0" 1411 | }, 1412 | "engines": { 1413 | "node": ">=4" 1414 | } 1415 | }, 1416 | "node_modules/to-regex-range": { 1417 | "version": "5.0.1", 1418 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1419 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1420 | "dev": true, 1421 | "dependencies": { 1422 | "is-number": "^7.0.0" 1423 | }, 1424 | "engines": { 1425 | "node": ">=8.0" 1426 | } 1427 | }, 1428 | "node_modules/toidentifier": { 1429 | "version": "1.0.1", 1430 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1431 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1432 | "engines": { 1433 | "node": ">=0.6" 1434 | } 1435 | }, 1436 | "node_modules/touch": { 1437 | "version": "3.1.1", 1438 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", 1439 | "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", 1440 | "dev": true, 1441 | "bin": { 1442 | "nodetouch": "bin/nodetouch.js" 1443 | } 1444 | }, 1445 | "node_modules/type-is": { 1446 | "version": "1.6.18", 1447 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1448 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1449 | "dependencies": { 1450 | "media-typer": "0.3.0", 1451 | "mime-types": "~2.1.24" 1452 | }, 1453 | "engines": { 1454 | "node": ">= 0.6" 1455 | } 1456 | }, 1457 | "node_modules/undefsafe": { 1458 | "version": "2.0.5", 1459 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 1460 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 1461 | "dev": true 1462 | }, 1463 | "node_modules/underscore": { 1464 | "version": "1.13.7", 1465 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz", 1466 | "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==" 1467 | }, 1468 | "node_modules/unpipe": { 1469 | "version": "1.0.0", 1470 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1471 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1472 | "engines": { 1473 | "node": ">= 0.8" 1474 | } 1475 | }, 1476 | "node_modules/utils-merge": { 1477 | "version": "1.0.1", 1478 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1479 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1480 | "engines": { 1481 | "node": ">= 0.4.0" 1482 | } 1483 | }, 1484 | "node_modules/vary": { 1485 | "version": "1.1.2", 1486 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1487 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1488 | "engines": { 1489 | "node": ">= 0.8" 1490 | } 1491 | }, 1492 | "node_modules/which-module": { 1493 | "version": "2.0.1", 1494 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", 1495 | "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==" 1496 | }, 1497 | "node_modules/whois": { 1498 | "version": "2.14.2", 1499 | "resolved": "https://registry.npmjs.org/whois/-/whois-2.14.2.tgz", 1500 | "integrity": "sha512-JzH7/WUC4L59hPKwc6lZ59OpeBDcG+axt9vBYeQg1DCtrlwyxTUzorhI58nEWHmN+R/RtiUi9MdQ6NE9TmPREQ==", 1501 | "dependencies": { 1502 | "punycode": "^2.3.1", 1503 | "socks": "^2.2.2", 1504 | "underscore": "^1.9.1", 1505 | "yargs": "^15.4.1" 1506 | }, 1507 | "bin": { 1508 | "whois": "bin.js" 1509 | } 1510 | }, 1511 | "node_modules/wordwrap": { 1512 | "version": "0.0.3", 1513 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", 1514 | "integrity": "sha512-1tMA907+V4QmxV7dbRvb4/8MaRALK6q9Abid3ndMYnbyo8piisCmeONVqVSXqQA3KaP4SLt5b7ud6E2sqP8TFw==", 1515 | "engines": { 1516 | "node": ">=0.4.0" 1517 | } 1518 | }, 1519 | "node_modules/wrap-ansi": { 1520 | "version": "6.2.0", 1521 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", 1522 | "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", 1523 | "dependencies": { 1524 | "ansi-styles": "^4.0.0", 1525 | "string-width": "^4.1.0", 1526 | "strip-ansi": "^6.0.0" 1527 | }, 1528 | "engines": { 1529 | "node": ">=8" 1530 | } 1531 | }, 1532 | "node_modules/y18n": { 1533 | "version": "4.0.3", 1534 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", 1535 | "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" 1536 | }, 1537 | "node_modules/yargs": { 1538 | "version": "15.4.1", 1539 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", 1540 | "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", 1541 | "dependencies": { 1542 | "cliui": "^6.0.0", 1543 | "decamelize": "^1.2.0", 1544 | "find-up": "^4.1.0", 1545 | "get-caller-file": "^2.0.1", 1546 | "require-directory": "^2.1.1", 1547 | "require-main-filename": "^2.0.0", 1548 | "set-blocking": "^2.0.0", 1549 | "string-width": "^4.2.0", 1550 | "which-module": "^2.0.0", 1551 | "y18n": "^4.0.0", 1552 | "yargs-parser": "^18.1.2" 1553 | }, 1554 | "engines": { 1555 | "node": ">=8" 1556 | } 1557 | }, 1558 | "node_modules/yargs-parser": { 1559 | "version": "18.1.3", 1560 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", 1561 | "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", 1562 | "dependencies": { 1563 | "camelcase": "^5.0.0", 1564 | "decamelize": "^1.2.0" 1565 | }, 1566 | "engines": { 1567 | "node": ">=6" 1568 | } 1569 | } 1570 | } 1571 | } 1572 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dumbwhois", 3 | "version": "1.0.0", 4 | "description": "A simple WHOIS lookup web application using free APIs", 5 | "main": "server.js", 6 | "scripts": { 7 | "start": "node server.js", 8 | "dev": "nodemon server.js" 9 | }, 10 | "dependencies": { 11 | "axios": "^1.6.2", 12 | "cors": "^2.8.5", 13 | "dotenv": "^16.3.1", 14 | "express": "^4.18.2", 15 | "node-whois": "^2.1.3", 16 | "whois": "^2.14.2" 17 | }, 18 | "devDependencies": { 19 | "nodemon": "^3.0.2" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /public/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DumbWareio/DumbWhoIs/73d800b420e631e0dac7a53ce54bd0bfeaeaf097/public/assets/logo.png -------------------------------------------------------------------------------- /public/assets/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /public/assets/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --success-status-bg: rgba(96, 165, 250, 0.5); 3 | --danger-status-bg:rgba(220, 38, 38, 0.5); 4 | 5 | --bg-color: #1a1a1a; 6 | } 7 | 8 | [data-theme="dark"] { 9 | --success-status-bg: rgba(37, 99, 235, 0.6); 10 | --danger-status-bg:rgba(220, 38, 38, 0.6); 11 | } 12 | 13 | .container { 14 | max-height: calc(100vh - 2rem); 15 | } 16 | #queryInput { 17 | width: 100%; 18 | } 19 | .result-box { 20 | width: 100%; 21 | max-height: calc(100vh - 20rem); 22 | overflow-y: auto; 23 | } 24 | .data-row:nth-child(even) { 25 | background-color: var(--row-bg); 26 | } 27 | html.dark { 28 | background-color: var(--bg-color); 29 | color: #e5e5e5; 30 | } 31 | html.dark body { 32 | background-color: var(--bg-color); 33 | } 34 | html.dark .bg-white { 35 | background-color: #2d2d2d; 36 | } 37 | html.dark .text-gray-800 { 38 | color: #e5e5e5; 39 | } 40 | html.dark .text-gray-600 { 41 | color: #a0a0a0; 42 | } 43 | html.dark .bg-blue-50 { 44 | background-color: #1e2a4a; 45 | } 46 | html.dark .bg-green-50 { 47 | background-color: #1a342b; 48 | } 49 | html.dark .bg-yellow-50 { 50 | background-color: #3d3524; 51 | } 52 | html.dark .bg-purple-50 { 53 | background-color: #2d1f3d; 54 | } 55 | html.dark .bg-indigo-50 { 56 | background-color: #1f2937; 57 | } 58 | html.dark .text-blue-800 { 59 | color: #93c5fd; 60 | } 61 | html.dark .text-green-800 { 62 | color: #6ee7b7; 63 | } 64 | html.dark .text-yellow-800 { 65 | color: #fcd34d; 66 | } 67 | html.dark .text-purple-800 { 68 | color: #c084fc; 69 | } 70 | html.dark .text-indigo-800 { 71 | color: #818cf8; 72 | } 73 | html.dark .bg-green-100 { 74 | background-color: #064e3b; 75 | } 76 | html.dark .text-green-800 { 77 | color: #6ee7b7; 78 | } 79 | html.dark input { 80 | background-color: #1a1a1a; 81 | color: #e5e5e5; 82 | border-color: #4a4a4a; 83 | } 84 | html.dark input::placeholder { 85 | color: #6b7280; 86 | } 87 | 88 | /* Print styles */ 89 | @media print { 90 | body { 91 | background-color: white !important; 92 | color: black !important; 93 | } 94 | .container { 95 | max-width: 100% !important; 96 | padding: 0 !important; 97 | } 98 | .result-box { 99 | max-height: none !important; 100 | overflow: visible !important; 101 | } 102 | .bg-white { 103 | background-color: white !important; 104 | box-shadow: none !important; 105 | } 106 | #queryInput, #lookupButton, #printButton { 107 | display: none !important; 108 | } 109 | .bg-blue-50, .bg-green-50, .bg-yellow-50, .bg-purple-50, .bg-indigo-50, .bg-red-50 { 110 | background-color: white !important; 111 | border: 1px solid #ddd !important; 112 | margin-bottom: 1rem !important; 113 | } 114 | .text-blue-800, .text-green-800, .text-yellow-800, .text-purple-800, .text-indigo-800, .text-red-800 { 115 | color: black !important; 116 | } 117 | button.bg-red-100 { 118 | background-color: white !important; 119 | border: 1px solid #ddd !important; 120 | color: black !important; 121 | } 122 | #themeIcon { 123 | display: none !important; 124 | } 125 | @page { 126 | margin: 1cm; 127 | } 128 | } 129 | 130 | /* Add CSS for permalink icons */ 131 | .permalink svg { 132 | transition: opacity 0.2s ease; 133 | } 134 | 135 | /* Handle anchor scrolling with fixed header offset */ 136 | html { 137 | scroll-padding-top: 2rem; 138 | } 139 | 140 | /* Highlight the target section when linked */ 141 | :target { 142 | animation: highlight 2s ease; 143 | } 144 | 145 | .toast-container { 146 | position: fixed; 147 | bottom: 1rem; 148 | left: 50%; 149 | transform: translateX(-50%); 150 | padding: 0.5rem 1rem; 151 | display: flex; 152 | flex-direction: column; 153 | gap: 10px; 154 | z-index: 2000; 155 | } 156 | 157 | .toast { 158 | color: #ffffff; 159 | padding: 0.5rem 1rem; 160 | border-radius: 20px; 161 | opacity: 0; 162 | transition: opacity 0.3s ease-in-out; 163 | max-width: 300px; 164 | box-sizing: border-box; 165 | word-wrap: break-word; 166 | font-size: 0.875rem; 167 | cursor: pointer; 168 | text-align: center; 169 | } 170 | 171 | .toast.show { 172 | opacity: 1; 173 | } 174 | 175 | .toast.success { 176 | background-color: var(--success-status-bg); 177 | } 178 | 179 | .toast.error { 180 | background-color: var(--danger-status-bg); 181 | } 182 | 183 | @keyframes highlight { 184 | 0% { background-color: rgba(255, 255, 0, 0.2); } 185 | 100% { background-color: transparent; } 186 | } 187 | 188 | @media (max-width: 640px) { 189 | #input-group { 190 | flex-direction: column; 191 | } 192 | } -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | DumbWhois - Simple WHOIS Lookup 7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 |
21 |
22 |

DumbWhois

23 | 31 |
32 | 33 |
34 |
35 |
36 | 39 |
40 | 46 | 54 |
55 |
56 |

57 | Examples: yahoo.com, 8.8.8.8, 2001:4860:4860::8888, AS13335 58 |

59 |
60 | 61 | 65 |
66 |
67 |
68 | 69 | 70 | -------------------------------------------------------------------------------- /public/index.js: -------------------------------------------------------------------------------- 1 | import { ToastManager } from "./managers/toast"; 2 | 3 | document.addEventListener('DOMContentLoaded', () => { 4 | const toastManager = new ToastManager(document.getElementById('toast-container')); 5 | const siteTitle = document.getElementById('site-title'); 6 | const themeToggleBtn = document.getElementById('theme-toggle'); 7 | const sunIcon = document.getElementById('sunIcon'); 8 | const moonIcon = document.getElementById('moonIcon'); 9 | const queryInput = document.getElementById('queryInput'); 10 | const lookupButton = document.getElementById('lookupButton'); 11 | const printButton = document.getElementById('printButton'); 12 | const resultDiv = document.getElementById('result'); 13 | const resultContent = document.getElementById('resultContent'); 14 | const queryTypeDiv = document.getElementById('queryType'); 15 | 16 | function updateThemeIcon() { 17 | const isDark = document.documentElement.classList.contains('dark'); 18 | if (isDark) { 19 | sunIcon.classList.add('hidden'); 20 | moonIcon.classList.remove('hidden'); 21 | } 22 | else { 23 | moonIcon.classList.add('hidden'); 24 | sunIcon.classList.remove('hidden'); 25 | } 26 | } 27 | 28 | function toggleDarkMode() { 29 | const html = document.documentElement; 30 | const isDark = html.classList.contains('dark'); 31 | html.classList.toggle('dark'); 32 | localStorage.setItem('darkMode', !isDark); 33 | document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'light'); 34 | updateThemeIcon(); 35 | } 36 | 37 | // Set Site Title 38 | const setSiteTitle = () => { 39 | fetch('config').then(async res => { 40 | const data = await res.json(); 41 | if (data.siteTitle) { 42 | const title = `${data.siteTitle} - Simple WHOIS Lookup`; 43 | document.title = title; 44 | siteTitle.textContent = data.siteTitle; 45 | } 46 | }) 47 | } 48 | 49 | function formatDate(dateString) { 50 | return dateString ? new Date(dateString).toLocaleString() : 'N/A'; 51 | } 52 | 53 | function formatWhoisData(data) { 54 | let html = '
'; 55 | 56 | // Domain Info 57 | html += ` 58 |
59 |

60 | Domain Information 61 | 66 |

67 |
68 |
69 | Domain: ${data.ldhName} 70 |
71 |
72 | Handle: ${data.handle} 73 |
74 |
75 |
`; 76 | 77 | // IP Addresses - Always show this section for domains 78 | html += ` 79 |
80 |

81 | IP Addresses 82 | 87 |

`; 88 | 89 | if (data.ipAddresses && data.ipAddresses.v4 && data.ipAddresses.v4.length > 0) { 90 | html += ` 91 |
92 |

IPv4

93 |
94 | ${data.ipAddresses.v4.map(ip => 95 | `` 98 | ).join('')} 99 |
100 |
`; 101 | } else { 102 | html += ` 103 |
104 |

IPv4

105 |
No IPv4 addresses found
106 |
`; 107 | } 108 | 109 | if (data.ipAddresses && data.ipAddresses.v6 && data.ipAddresses.v6.length > 0) { 110 | html += ` 111 |
112 |

IPv6

113 |
114 | ${data.ipAddresses.v6.map(ip => 115 | `` 118 | ).join('')} 119 |
120 |
`; 121 | } else { 122 | html += ` 123 |
124 |

IPv6

125 |
No IPv6 addresses found
126 |
`; 127 | } 128 | 129 | html += `
`; 130 | 131 | // Status 132 | if (data.status && data.status.length > 0) { 133 | html += ` 134 |
135 |

136 | Domain Status 137 | 142 |

143 |
144 | ${data.status.map(status => 145 | `${status}` 146 | ).join('')} 147 |
148 |
`; 149 | } 150 | 151 | // Important Dates 152 | if (data.events && data.events.length > 0) { 153 | html += ` 154 |
155 |

156 | Important Dates 157 | 162 |

163 |
164 | ${data.events.map(event => ` 165 |
166 | ${event.eventAction}: 167 | ${formatDate(event.eventDate)} 168 |
169 | `).join('')} 170 |
171 |
`; 172 | } 173 | 174 | // Nameservers 175 | if (data.nameservers && data.nameservers.length > 0) { 176 | html += ` 177 |
178 |

179 | Nameservers 180 | 185 |

186 |
187 | ${data.nameservers.map(ns => ` 188 |
${ns.ldhName}
189 | `).join('')} 190 |
191 |
`; 192 | } 193 | 194 | // Registrar Info 195 | if (data.entities && data.entities.length > 0) { 196 | const registrar = data.entities.find(e => e.roles.includes('registrar')); 197 | if (registrar) { 198 | html += ` 199 |
200 |

Registrar Information

201 |
202 |
203 | Registrar: 204 | ${registrar.vcardArray[1].find(v => v[0] === 'fn')[3]} 205 |
206 | ${registrar.entities ? registrar.entities.map(entity => ` 207 |
208 | Abuse Contact: 209 | ${entity.vcardArray[1].find(v => v[0] === 'email')?.[3] || 'N/A'} 210 |
211 | `).join('') : ''} 212 |
213 |
`; 214 | } 215 | } 216 | 217 | html += '
'; 218 | return html; 219 | } 220 | 221 | function formatIPData(data) { 222 | let html = '
'; 223 | 224 | // Basic Info 225 | html += ` 226 |
227 |

IP Information

228 |
229 |
230 | IP Address: ${data.ip} 231 |
232 |
233 | Network: ${data.network} 234 |
235 |
236 | Version: ${data.version} 237 |
238 |
239 | Organization: ${data.org} 240 |
241 |
242 |
`; 243 | 244 | // Location Info 245 | html += ` 246 |
247 |

Location Information

248 |
249 |
250 | City: ${data.city} 251 |
252 |
253 | Region: ${data.region} (${data.region_code}) 254 |
255 |
256 | Country: ${data.country_name} (${data.country_code}) 257 |
258 |
259 | Postal Code: ${data.postal} 260 |
261 |
262 | Continent: ${data.continent_code} 263 |
264 |
265 | Timezone: ${data.timezone} 266 |
267 |
268 |
`; 269 | 270 | // Coordinates 271 | html += ` 272 |
273 |

Geographic Coordinates

274 |
275 |
276 | Latitude: ${data.latitude} 277 |
278 |
279 | Longitude: ${data.longitude} 280 |
281 |
282 |
`; 283 | 284 | // Additional Info 285 | html += ` 286 |
287 |

Additional Information

288 |
289 |
290 | ASN: ${data.asn} 291 |
292 |
293 | Languages: ${data.languages} 294 |
295 |
296 | Currency: ${data.currency} (${data.currency_name}) 297 |
298 |
299 | Calling Code: ${data.country_calling_code} 300 |
301 |
302 |
`; 303 | 304 | html += '
'; 305 | return html; 306 | } 307 | 308 | function formatASNData(data) { 309 | const asnData = data.data; 310 | let html = '
'; 311 | 312 | // Basic Info 313 | html += ` 314 |
315 |

ASN Information

316 |
317 |
318 | ASN: AS${asnData.asn} 319 |
320 |
321 | Name: ${asnData.name} 322 |
323 |
324 | Description: ${asnData.description_short} 325 |
326 |
327 | Country: ${asnData.country_code} 328 |
329 |
330 |
`; 331 | 332 | // Contact Info 333 | html += ` 334 |
335 |

Contact Information

336 |
337 |
338 | Website: 339 | 340 | ${asnData.website} 341 | 342 |
343 |
344 | Email Contacts:
345 | ${asnData.email_contacts.map(email => 346 | `• ${email}` 347 | ).join('
')} 348 |
349 |
350 | Abuse Contacts:
351 | ${asnData.abuse_contacts.map(email => 352 | `• ${email}` 353 | ).join('
')} 354 |
355 |
356 |
`; 357 | 358 | // Address 359 | if (asnData.owner_address && asnData.owner_address.length > 0) { 360 | html += ` 361 |
362 |

Owner Address

363 |
364 | ${asnData.owner_address.join('
')} 365 |
366 |
`; 367 | } 368 | 369 | // RIR & IANA Info 370 | html += ` 371 |
372 |

Registry Information

373 |
374 |
375 | RIR Name: ${asnData.rir_allocation.rir_name} 376 |
377 |
378 | Allocation Date: ${formatDate(asnData.rir_allocation.date_allocated)} 379 |
380 |
381 | Traffic Ratio: ${asnData.traffic_ratio || 'N/A'} 382 |
383 |
384 | Last Updated: ${formatDate(asnData.date_updated)} 385 |
386 |
387 |
`; 388 | 389 | html += '
'; 390 | return html; 391 | } 392 | 393 | function handleIpLookupClick(ip) { 394 | queryInput.value = ip; 395 | performLookup(); 396 | } 397 | 398 | async function performLookup() { 399 | const query = queryInput.value.trim(); 400 | toastManager.clear(); 401 | 402 | if (!query) { 403 | alert('Please enter a value to lookup'); 404 | return; 405 | } 406 | 407 | resultDiv.classList.remove('hidden'); 408 | printButton.classList.add('hidden'); 409 | queryTypeDiv.textContent = 'Loading...'; 410 | resultContent.innerHTML = ''; 411 | 412 | try { 413 | const response = await fetch(`/api/lookup/${query}`); 414 | const data = await response.json(); 415 | 416 | if (data.error) { 417 | queryTypeDiv.textContent = 'Error'; 418 | resultContent.innerHTML = `
${data.error}${data.message ? '
' + data.message : ''}
`; 419 | } else { 420 | queryTypeDiv.textContent = `Type: ${data.type.toUpperCase()}${ 421 | data.type === 'ip' ? ` (Source: ${data.data.source})` : 422 | data.type === 'asn' ? ' (Source: BGPView)' : 423 | data.type === 'whois' ? ' (Source: Direct WHOIS Server)' : '' 424 | }`; 425 | 426 | switch (data.type) { 427 | case 'whois': 428 | resultContent.innerHTML = formatWhoisData(data.data); 429 | break; 430 | case 'ip': 431 | resultContent.innerHTML = formatIPData(data.data); 432 | break; 433 | case 'asn': 434 | resultContent.innerHTML = formatASNData(data.data); 435 | break; 436 | default: 437 | resultContent.innerHTML = `
${JSON.stringify(data.data, null, 2)}
`; 438 | } 439 | 440 | // Add event listener to IP lookup buttons 441 | const ipButtons = document.querySelectorAll('.ipLookupButton'); 442 | ipButtons.forEach(button => { 443 | button.addEventListener('click', () => handleIpLookupClick(button.textContent.trim())); 444 | }); 445 | 446 | // Show print button after successful lookup 447 | printButton.classList.remove('hidden'); 448 | 449 | toastManager.show('Lookup complete', 'success', false, 1000); 450 | } 451 | } catch (error) { 452 | console.error(error); 453 | toastManager.show('Error performing lookup. Please try again.', 'error', true); 454 | } 455 | } 456 | 457 | function printResults() { 458 | const title = queryInput.value.trim(); 459 | const originalTitle = document.title; 460 | document.title = `DumbWhois - ${title}`; 461 | window.print(); 462 | document.title = originalTitle; 463 | } 464 | 465 | // Check for lookup query parameter and hash on page load 466 | const performLookupOnLoad = async () => { 467 | const urlParams = new URLSearchParams(window.location.search); 468 | const lookupQuery = urlParams.get('lookup'); 469 | if (lookupQuery) { 470 | queryInput.value = lookupQuery; 471 | performLookup().then(() => { 472 | // After lookup completes, check if there's a hash to scroll to 473 | if (window.location.hash) { 474 | // Small delay to ensure content is rendered 475 | setTimeout(() => { 476 | const targetElement = document.querySelector(window.location.hash); 477 | if (targetElement) { 478 | targetElement.scrollIntoView(); 479 | } 480 | }, 500); 481 | } 482 | }); 483 | } 484 | } 485 | 486 | const addButtonEventListeners = () => { 487 | lookupButton.addEventListener('click', performLookup); 488 | themeToggleBtn.addEventListener('click', toggleDarkMode); themeToggleBtn.addEventListener('click', toggleDarkMode); 489 | queryInput.addEventListener('keypress', (e) => { 490 | if (e.key === 'Enter') { 491 | performLookup(); 492 | } 493 | }); 494 | printButton.addEventListener('click', printResults); 495 | } 496 | 497 | const initialize = async () => { 498 | // Check local storage, default to dark mode if not set 499 | if (localStorage.getItem('darkMode') === 'false') { 500 | document.documentElement.classList.remove('dark'); 501 | } 502 | 503 | // Initialize App 504 | addButtonEventListeners(); 505 | updateThemeIcon(); 506 | setSiteTitle(); 507 | performLookupOnLoad(); 508 | 509 | queryInput.focus(); 510 | } 511 | 512 | initialize(); 513 | }); -------------------------------------------------------------------------------- /public/managers/toast.js: -------------------------------------------------------------------------------- 1 | export class ToastManager { 2 | constructor(containerElement) { 3 | this.container = containerElement; 4 | this.isError = 'error'; 5 | this.isSuccess = 'success'; 6 | } 7 | 8 | show(message, type = 'success', isStatic = false, timeoutMs = 2000) { 9 | const toast = document.createElement('div'); 10 | toast.classList.add('toast'); 11 | toast.textContent = message; 12 | 13 | if (type === this.isSuccess) toast.classList.add('success'); 14 | else toast.classList.add('error'); 15 | 16 | this.container.appendChild(toast); 17 | 18 | setTimeout(() => { 19 | toast.addEventListener('click', () => this.hide(toast)); 20 | toast.classList.add('show'); 21 | }, 10); 22 | 23 | if (!isStatic) { 24 | setTimeout(() => { 25 | toast.classList.remove('show'); 26 | setTimeout(() => { 27 | this.hide(toast); 28 | }, 300); // Match transition duration 29 | }, timeoutMs); 30 | } 31 | } 32 | 33 | hide(toast) { 34 | toast.classList.remove('show'); 35 | setTimeout(() => { 36 | this.container.removeChild(toast); 37 | }, 300); 38 | } 39 | 40 | clear() { 41 | // use to clear static toast messages 42 | while (this.container.firstChild) { 43 | this.container.removeChild(this.container.firstChild); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /public/service-worker.js: -------------------------------------------------------------------------------- 1 | const CACHE_NAME = "DUMBWHOIS_PWA_CACHE_V1"; 2 | const ASSETS_TO_CACHE = []; 3 | 4 | const preload = async () => { 5 | console.log("Installing web app"); 6 | return await caches.open(CACHE_NAME) 7 | .then(async (cache) => { 8 | console.log("caching index and important routes"); 9 | const response = await fetch("/asset-manifest.json"); 10 | const assets = await response.json(); 11 | ASSETS_TO_CACHE.push(...assets); 12 | console.log("Assets Cached:", ASSETS_TO_CACHE); 13 | return cache.addAll(ASSETS_TO_CACHE); 14 | }); 15 | } 16 | 17 | // Fetch asset manifest dynamically 18 | globalThis.addEventListener("install", (event) => { 19 | event.waitUntil(preload()); 20 | }); 21 | 22 | globalThis.addEventListener("activate", (event) => { 23 | event.waitUntil(clients.claim()); 24 | }); 25 | 26 | globalThis.addEventListener("fetch", (event) => { 27 | event.respondWith( 28 | caches.match(event.request).then((cachedResponse) => { 29 | return cachedResponse || fetch(event.request); 30 | }) 31 | ); 32 | }); -------------------------------------------------------------------------------- /scripts/cors.js: -------------------------------------------------------------------------------- 1 | const ALLOWED_ORIGINS = process.env.ALLOWED_ORIGINS || '*'; 2 | const NODE_ENV = process.env.NODE_ENV || 'production'; 3 | let allowedOrigins = []; 4 | 5 | function setupOrigins() { 6 | if (NODE_ENV === 'development' || ALLOWED_ORIGINS === '*') allowedOrigins = '*'; 7 | else if (ALLOWED_ORIGINS && typeof ALLOWED_ORIGINS === 'string') { 8 | try { 9 | const allowed = ALLOWED_ORIGINS.split(',').map(origin => origin.trim()); 10 | allowed.forEach(origin => { 11 | const normalizedOrigin = normalizeOrigin(origin); 12 | allowedOrigins.push(normalizedOrigin); 13 | }); 14 | } 15 | catch (error) { 16 | console.error(`Error setting up ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}:`, error); 17 | } 18 | } 19 | console.log("ALLOWED ORIGINS:", allowedOrigins); 20 | return allowedOrigins; 21 | } 22 | 23 | function normalizeOrigin(origin) { 24 | if (origin) { 25 | try { 26 | const normalizedOrigin = new URL(origin).origin; 27 | return normalizedOrigin; 28 | } catch (error) { 29 | console.error("Error parsing referer URL:", error); 30 | throw new Error("Error parsing referer URL:", error); 31 | } 32 | } 33 | } 34 | 35 | function validateOrigin(origin) { 36 | if (NODE_ENV === 'development' || allowedOrigins === '*') return true; 37 | 38 | try { 39 | if (origin) origin = normalizeOrigin(origin); 40 | else { 41 | console.warn("No origin to validate."); 42 | return false; 43 | } 44 | 45 | console.log("Validating Origin:", origin); 46 | 47 | if (allowedOrigins.includes(origin)) { 48 | console.log("Allowed request from origin:", origin); 49 | return true; 50 | } 51 | else { 52 | console.warn("Blocked request from origin:", origin); 53 | return false; 54 | } 55 | } 56 | catch (error) { 57 | console.error(error); 58 | } 59 | } 60 | 61 | function originValidationMiddleware(req, res, next) { 62 | const origin = req.headers.referer || `${req.protocol}://${req.headers.host}`; 63 | const isOriginValid = validateOrigin(origin); 64 | 65 | if (isOriginValid) { 66 | next(); 67 | } else { 68 | res.status(403).json({ error: 'Forbidden' }); 69 | } 70 | } 71 | 72 | 73 | function getCorsOptions() { 74 | const allowedOrigins = setupOrigins(); 75 | const corsOptions = { 76 | origin: allowedOrigins, 77 | credentials: true, 78 | methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], 79 | allowedHeaders: ['Content-Type', 'Authorization'], 80 | }; 81 | 82 | return corsOptions; 83 | } 84 | 85 | module.exports = { getCorsOptions, originValidationMiddleware }; -------------------------------------------------------------------------------- /scripts/pwa-manifest-generator.js: -------------------------------------------------------------------------------- 1 | const fs = require("fs"); 2 | const path = require("path"); 3 | const PUBLIC_DIR = path.join(__dirname, "..", "public"); 4 | const ASSETS_DIR = path.join(PUBLIC_DIR, "assets"); 5 | 6 | function getFiles(dir, basePath = "/") { 7 | let fileList = []; 8 | const files = fs.readdirSync(dir); 9 | 10 | files.forEach((file) => { 11 | const filePath = path.join(dir, file); 12 | const fileUrl = path.join(basePath, file).replace(/\\/g, "/"); 13 | 14 | if (fs.statSync(filePath).isDirectory()) { 15 | fileList = fileList.concat(getFiles(filePath, fileUrl)); 16 | } else { 17 | fileList.push(fileUrl); 18 | } 19 | }); 20 | 21 | return fileList; 22 | } 23 | 24 | function generateAssetManifest() { 25 | const assets = getFiles(PUBLIC_DIR); 26 | fs.writeFileSync(path.join(ASSETS_DIR, "asset-manifest.json"), JSON.stringify(assets, null, 2)); 27 | console.log("Asset manifest generated!", assets); 28 | } 29 | 30 | function generatePWAManifest(siteTitle) { 31 | generateAssetManifest(); // fetched later in service-worker 32 | 33 | const pwaManifest = { 34 | name: siteTitle, 35 | short_name: siteTitle, 36 | description: "A simple WHOIS lookup web application using free APIs", 37 | start_url: "/", 38 | display: "standalone", 39 | background_color: "#ffffff", 40 | theme_color: "#000000", 41 | icons: [ 42 | { 43 | src: "assets/logo.png", 44 | type: "image/png", 45 | sizes: "192x192" 46 | }, 47 | { 48 | src: "assets/logo.png", 49 | type: "image/png", 50 | sizes: "512x512" 51 | } 52 | ], 53 | orientation: "any" 54 | }; 55 | 56 | fs.writeFileSync(path.join(ASSETS_DIR, "manifest.json"), JSON.stringify(pwaManifest, null, 2)); 57 | console.log("PWA manifest generated!", pwaManifest); 58 | } 59 | 60 | module.exports = { generatePWAManifest }; -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config(); 2 | const express = require('express'); 3 | const cors = require('cors'); 4 | const axios = require('axios'); 5 | const path = require('path'); 6 | const whois = require('node-whois'); 7 | const util = require('util'); 8 | const { getCorsOptions, originValidationMiddleware } = require('./scripts/cors'); 9 | const { generatePWAManifest } = require('./scripts/pwa-manifest-generator'); 10 | 11 | const app = express(); 12 | const PORT = process.env.PORT || 3000; 13 | const SITE_TITLE = process.env.SITE_TITLE || 'DumbWhois'; 14 | const PUBLIC_DIR = path.join(__dirname, 'public'); 15 | const ASSETS_DIR = path.join(PUBLIC_DIR, 'assets'); 16 | 17 | // Convert whois.lookup to Promise 18 | const lookupPromise = util.promisify(whois.lookup); 19 | 20 | // Trust proxy - required for secure cookies behind a reverse proxy 21 | app.set('trust proxy', 1); 22 | 23 | // CORS setup 24 | const corsOptions = getCorsOptions(); 25 | app.use(cors(corsOptions)); 26 | app.use(express.json()); 27 | app.use(originValidationMiddleware); 28 | 29 | generatePWAManifest(SITE_TITLE); 30 | 31 | app.use(express.static('public')); 32 | 33 | // Helper function to detect query type 34 | function detectQueryType(query) { 35 | // Clean up the query - remove brackets if present 36 | const cleanQuery = query.replace(/^\[|\]$/g, ''); 37 | 38 | // ASN pattern (AS followed by numbers) 39 | if (/^(AS|as)?\d+$/i.test(cleanQuery)) { 40 | return 'asn'; 41 | } 42 | 43 | // IPv6 pattern (with optional CIDR) 44 | if (/^(?:(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,7}:|(?:[0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,5}(?::[0-9a-fA-F]{1,4}){1,2}|(?:[0-9a-fA-F]{1,4}:){1,4}(?::[0-9a-fA-F]{1,4}){1,3}|(?:[0-9a-fA-F]{1,4}:){1,3}(?::[0-9a-fA-F]{1,4}){1,4}|(?:[0-9a-fA-F]{1,4}:){1,2}(?::[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:(?:(?::[0-9a-fA-F]{1,4}){1,6})|:(?:(?::[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(?::[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(?:ffff(?::0{1,4}){0,1}:){0,1}(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(?:[0-9a-fA-F]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(?:[0-9a-fA-F]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9]))(?:\/\d{1,3})?$/.test(cleanQuery)) { 45 | return 'ip'; 46 | } 47 | 48 | // IPv4 pattern (with optional CIDR) 49 | if (/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\/\d{1,2})?$/.test(cleanQuery)) { 50 | return 'ip'; 51 | } 52 | 53 | // Domain pattern (anything with a dot that's not an IP) 54 | if (cleanQuery.includes('.')) { 55 | return 'whois'; 56 | } 57 | return 'unknown'; 58 | } 59 | 60 | // Helper function to parse WHOIS data 61 | async function parseWhoisData(data, domain) { 62 | // Split into lines and create key-value pairs 63 | const result = { 64 | domainName: domain, 65 | registrar: '', 66 | creationDate: '', 67 | expirationDate: '', 68 | lastUpdated: '', 69 | status: [], 70 | nameservers: [], 71 | ipAddresses: { 72 | v4: [], 73 | v6: [] 74 | }, 75 | raw: data 76 | }; 77 | 78 | // Get both IPv4 and IPv6 addresses from DNS lookup 79 | try { 80 | const dns = require('dns').promises; 81 | const [ipv4Addresses, ipv6Addresses] = await Promise.all([ 82 | dns.resolve4(domain).catch(() => []), 83 | dns.resolve6(domain).catch(() => []) 84 | ]); 85 | result.ipAddresses.v4 = ipv4Addresses; 86 | result.ipAddresses.v6 = ipv6Addresses; 87 | } catch (e) { 88 | // If DNS lookup fails, keep arrays empty 89 | } 90 | 91 | // Regular expressions for IP addresses 92 | const ipv4Regex = /\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/g; 93 | const ipv6Regex = /(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,7}:|(?:[0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|(?:[0-9a-fA-F]{1,4}:){1,5}(?::[0-9a-fA-F]{1,4}){1,2}|(?:[0-9a-fA-F]{1,4}:){1,4}(?::[0-9a-fA-F]{1,4}){1,3}|(?:[0-9a-fA-F]{1,4}:){1,3}(?::[0-9a-fA-F]{1,4}){1,4}|(?:[0-9a-fA-F]{1,4}:){1,2}(?::[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:(?:(?::[0-9a-fA-F]{1,4}){1,6})|:(?:(?::[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(?::[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(?:ffff(?::0{1,4}){0,1}:){0,1}(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(?:[0-9a-fA-F]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])/g; 94 | 95 | // First try to find IPs in specific fields that might contain them 96 | const lines = data.split('\n'); 97 | for (const line of lines) { 98 | const trimmedLine = line.trim().toLowerCase(); 99 | if (trimmedLine.includes('ip address') || 100 | trimmedLine.includes('a record') || 101 | trimmedLine.includes('aaaa record') || 102 | trimmedLine.includes('addresses') || 103 | trimmedLine.includes('host') || 104 | trimmedLine.includes('dns')) { 105 | 106 | const ipv4InLine = line.match(ipv4Regex); 107 | const ipv6InLine = line.match(ipv6Regex); 108 | 109 | if (ipv4InLine) result.ipAddresses.v4.push(...ipv4InLine); 110 | if (ipv6InLine) result.ipAddresses.v6.push(...ipv6InLine); 111 | } 112 | } 113 | 114 | // Remove duplicates 115 | result.ipAddresses.v4 = [...new Set(result.ipAddresses.v4)]; 116 | result.ipAddresses.v6 = [...new Set(result.ipAddresses.v6)]; 117 | 118 | // Special handling for .eu domains 119 | if (domain.toLowerCase().endsWith('.eu')) { 120 | const lines = data.split('\n'); 121 | let currentSection = ''; 122 | 123 | for (const line of lines) { 124 | const trimmedLine = line.trim(); 125 | 126 | // Skip empty lines and comment lines 127 | if (!trimmedLine || trimmedLine.startsWith('%')) continue; 128 | 129 | // Check for section headers 130 | if (trimmedLine.endsWith(':')) { 131 | currentSection = trimmedLine.slice(0, -1).toLowerCase(); 132 | continue; 133 | } 134 | 135 | // Handle indented lines (section content) 136 | if (line.startsWith(' ')) { 137 | const [key, ...values] = line.trim().split(':').map(s => s.trim()); 138 | const value = values.join(':').trim(); 139 | 140 | switch (currentSection) { 141 | case 'registrar': 142 | if (key === 'Name') { 143 | result.registrar = value; 144 | } 145 | break; 146 | case 'name servers': 147 | if (!key.includes(':') && key !== 'Please visit www.eurid.eu for more info.') { 148 | result.nameservers.push(key); 149 | } 150 | break; 151 | case 'technical': 152 | if (key === 'Organisation' && !result.registrar) { 153 | result.registrar = value; 154 | } 155 | break; 156 | } 157 | } else if (line.includes(':')) { 158 | const [key, ...values] = line.split(':').map(s => s.trim()); 159 | const value = values.join(':').trim(); 160 | 161 | if (key === 'Domain') { 162 | result.domainName = value; 163 | } 164 | } 165 | } 166 | 167 | // Add default status for .eu domains if none found 168 | if (result.status.length === 0) { 169 | result.status.push('registered'); 170 | } 171 | } else { 172 | // Original parsing logic for non-.eu domains 173 | const lines = data.split('\n'); 174 | for (const line of lines) { 175 | const [key, ...values] = line.split(':').map(s => s.trim()); 176 | const value = values.join(':').trim(); 177 | 178 | if (!key || !value) continue; 179 | 180 | const keyLower = key.toLowerCase(); 181 | 182 | // Registrar information 183 | if (keyLower.includes('registrar')) { 184 | result.registrar = value; 185 | } 186 | // Creation date 187 | else if (keyLower.includes('creation') || keyLower.includes('created') || 188 | keyLower.includes('registered')) { 189 | result.creationDate = value; 190 | } 191 | // Expiration date 192 | else if (keyLower.includes('expir')) { 193 | result.expirationDate = value; 194 | } 195 | // Last updated 196 | else if (keyLower.includes('updated') || keyLower.includes('modified')) { 197 | result.lastUpdated = value; 198 | } 199 | // Status 200 | else if (keyLower.includes('status')) { 201 | const statuses = value.split(/[,;]/).map(s => s.trim()); 202 | result.status.push(...statuses); 203 | } 204 | // Nameservers 205 | else if (keyLower.includes('name server') || keyLower.includes('nameserver')) { 206 | const ns = value.split(/[\s,;]+/)[0]; 207 | if (ns && !result.nameservers.includes(ns)) { 208 | result.nameservers.push(ns); 209 | } 210 | } 211 | } 212 | } 213 | 214 | return result; 215 | } 216 | 217 | // IP lookup services with fallbacks 218 | const ipLookupServices = [ 219 | { 220 | name: 'ipapi.co', 221 | url: (ip) => `https://ipapi.co/${ip}/json/`, 222 | transform: (data) => ({ 223 | ...data, 224 | source: 'ipapi.co' 225 | }) 226 | }, 227 | { 228 | name: 'ip-api.com', 229 | url: (ip) => `http://ip-api.com/json/${ip}`, 230 | transform: (data) => ({ 231 | ip: data.query, 232 | version: data.query.includes(':') ? 'IPv6' : 'IPv4', 233 | city: data.city, 234 | region: data.regionName, 235 | region_code: data.region, 236 | country_code: data.countryCode, 237 | country_name: data.country, 238 | postal: data.zip, 239 | latitude: data.lat, 240 | longitude: data.lon, 241 | timezone: data.timezone, 242 | org: data.org || data.isp, 243 | asn: data.as, 244 | source: 'ip-api.com' 245 | }) 246 | }, 247 | { 248 | name: 'ipwho.is', 249 | url: (ip) => `https://ipwho.is/${ip}`, 250 | transform: (data) => ({ 251 | ip: data.ip, 252 | version: data.type, 253 | city: data.city, 254 | region: data.region, 255 | region_code: data.region_code, 256 | country_code: data.country_code, 257 | country_name: data.country, 258 | postal: data.postal, 259 | latitude: data.latitude, 260 | longitude: data.longitude, 261 | timezone: data.timezone.id, 262 | org: data.connection.org, 263 | asn: data.connection.asn, 264 | source: 'ipwho.is' 265 | }) 266 | } 267 | ]; 268 | 269 | // Helper function to try IP lookup services in sequence 270 | async function tryIpLookup(ip) { 271 | // Remove brackets and CIDR notation for the lookup 272 | const cleanIp = ip.replace(/^\[|\]$/g, '').replace(/\/\d+$/, ''); 273 | let lastError = null; 274 | 275 | for (const service of ipLookupServices) { 276 | try { 277 | console.log(`Trying IP lookup with ${service.name}...`); 278 | const response = await axios.get(service.url(cleanIp)); 279 | 280 | // Check if the service returned an error 281 | if (response.data.error) { 282 | throw new Error(response.data.message || 'Service returned error'); 283 | } 284 | 285 | // Transform the data to our standard format 286 | return service.transform(response.data); 287 | } catch (error) { 288 | console.log(`${service.name} lookup failed:`, error.message); 289 | lastError = error; 290 | // Continue to next service 291 | continue; 292 | } 293 | } 294 | 295 | // If we get here, all services failed 296 | throw lastError; 297 | } 298 | 299 | // Universal lookup endpoint 300 | app.get('/api/lookup/:query', async (req, res) => { 301 | const query = req.params.query; 302 | const queryType = detectQueryType(query); 303 | 304 | try { 305 | let response; 306 | switch (queryType) { 307 | case 'whois': 308 | // Set specific options for WHOIS query 309 | const options = { 310 | follow: 3, // Follow up to 3 redirects 311 | timeout: 10000, // 10 second timeout 312 | }; 313 | 314 | // Add specific server for .eu domains 315 | if (query.toLowerCase().endsWith('.eu')) { 316 | options.server = 'whois.eu'; 317 | } 318 | 319 | const whoisData = await lookupPromise(query, options); 320 | const parsedData = await parseWhoisData(whoisData, query); 321 | 322 | response = { 323 | data: { 324 | ldhName: parsedData.domainName, 325 | handle: query, 326 | status: parsedData.status, 327 | ipAddresses: parsedData.ipAddresses, 328 | events: [ 329 | { 330 | eventAction: 'registration', 331 | eventDate: parsedData.creationDate 332 | }, 333 | { 334 | eventAction: 'expiration', 335 | eventDate: parsedData.expirationDate 336 | }, 337 | { 338 | eventAction: 'lastChanged', 339 | eventDate: parsedData.lastUpdated 340 | } 341 | ], 342 | nameservers: parsedData.nameservers.map(ns => ({ ldhName: ns })), 343 | entities: [{ 344 | roles: ['registrar'], 345 | vcardArray: [ 346 | "vcard", 347 | [ 348 | ["version", {}, "text", "4.0"], 349 | ["fn", {}, "text", parsedData.registrar], 350 | ["email", {}, "text", ""] 351 | ] 352 | ] 353 | }] 354 | } 355 | }; 356 | break; 357 | case 'ip': 358 | const ipData = await tryIpLookup(query); 359 | response = { data: ipData }; 360 | break; 361 | case 'asn': 362 | // Remove 'AS' prefix if present 363 | const asnNumber = query.replace(/^(AS|as)/i, ''); 364 | response = await axios.get(`https://api.bgpview.io/asn/${asnNumber}`); 365 | break; 366 | default: 367 | return res.status(400).json({ 368 | error: 'Invalid input', 369 | message: 'Please enter a valid domain name, IP address, or ASN number' 370 | }); 371 | } 372 | res.json({ type: queryType, data: response.data }); 373 | } catch (error) { 374 | console.error('Error details:', error); 375 | if (error.response) { 376 | if (error.response.status === 429) { 377 | res.status(429).json({ 378 | error: 'Rate limit exceeded', 379 | message: 'All IP lookup services are currently rate limited. Please try again later.' 380 | }); 381 | } else if (error.response.status === 404) { 382 | res.status(404).json({ error: `${queryType.toUpperCase()} not found` }); 383 | } else { 384 | res.status(error.response.status).json({ 385 | error: `Error fetching ${queryType.toUpperCase()} data`, 386 | message: error.response.data?.message || error.message 387 | }); 388 | } 389 | } else { 390 | res.status(500).json({ 391 | error: `Error fetching ${queryType.toUpperCase()} data`, 392 | message: error.message 393 | }); 394 | } 395 | } 396 | }); 397 | 398 | // Serve the pwa/asset manifest 399 | app.get('/asset-manifest.json', (req, res) => { 400 | // generated in pwa-manifest-generator and fetched from service-worker.js 401 | res.sendFile(path.join(ASSETS_DIR, 'asset-manifest.json')); 402 | }); 403 | app.get('/manifest.json', (req, res) => { 404 | res.sendFile(path.join(ASSETS_DIR, 'manifest.json')); 405 | }); 406 | 407 | app.get('/config', (req, res) => { 408 | res.json({ 409 | siteTitle: SITE_TITLE 410 | }); 411 | }); 412 | 413 | app.get('/managers/toast', (req, res) => { 414 | res.sendFile(path.join(PUBLIC_DIR, 'managers', 'toast.js')); 415 | }); 416 | 417 | app.get('*', (req, res) => { 418 | res.sendFile(path.join(__dirname, 'public', 'index.html')); 419 | }); 420 | 421 | app.listen(PORT, () => { 422 | console.log(`Server is running on: http://localhost:${PORT}`); 423 | }); --------------------------------------------------------------------------------