32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
# Scanner : V3
|
|
|
|
Node.JS based file scanner using patterns and OLLAMA (llama3.2:1b) integration for file/code analysis.
|
|
|
|
## Setup
|
|
|
|
Install axios
|
|
|
|
```js
|
|
npm i axios
|
|
```
|
|
|
|
Edit variables in code aiprompt, patterns, pathtoscan, llamaendpoint.
|
|
|
|
Run code
|
|
|
|
```js
|
|
node scanner.js
|
|
```
|
|
|
|
If you want to quickly change path use:
|
|
|
|
```js
|
|
node scanner.js --pathtoscan="./your/path/goes/here" --ignorefolders="some,folder,to,ignore,and,not,scan" --ignorefiles="some,files,to,ignore,and,not,scan"
|
|
```
|
|
## Known limitations
|
|
|
|
1. Discord webhook integration will send every file analysis which might appear few times per request of AI, it results in a ratelimit and no messages being sent or an error.
|
|
2. If OLLAMA is self hosted there is chance of it being overloaded, if it is being hosted externally and on paid plan there is chance of it eating a lot of money.
|
|
3. We do not recommend scanning nodemodules, cache files, etc. Please use --ignorefolders or --ignorefiles tag to exclude them.
|
|
|
|
COPYRIGHT CC-BY-SA-4.0, CONTACT: lisahonkay@gmail.com |