venus-pit 1.1.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,16 +1,37 @@
1
+ # Venus
2
+ Venus is a low-overhead, easy to implement tarpit designed to protect against all crawlers, most notably AI ones. <br>
3
+ To have decent SEO and use venus at the same time, blacklist the venus prefix on robots.txt
4
+
1
5
  # Installation
2
6
  <p>From NPM</p>
3
7
  <code>npm i venus-pit</code>
4
8
  <br><br>
5
9
  <p>From source</p>
6
- <code>git clone https://github.com/Xylara/Venus.git && cd Venus && npm i && npm run build</code>
10
+ <code>git clone https://github.com/librenetwork-dev/Venus.git && cd Venus && npm i && npm run build</code>
7
11
  <br>
8
12
  <br>
9
13
 
10
- # Usage
11
- See /testing for usage
12
-
14
+ # Usage
15
+ By default, venus is set up to be ran directly inside of an express app. <br>
16
+ If you do not want to use express or do not want to use node.js, set up an ngnix proxy to serve Venus from the prefix. <br>
17
+ In order for venus to work properly, you must link the prefix somewhere on your site.
18
+ ## With express.js
19
+ ```js
20
+ import Venus from "./venus.js"
21
+ import express from 'express'
22
+
23
+ const app = express()
24
+ const venus = new Venus("/prefix/")
25
+ app.use(venus.prefix, venus.route())
26
+
27
+ app.listen(8080, () => {
28
+ console.log("Listening on port 8080")
29
+ })
30
+ ```
13
31
  # Building
14
32
  <code>npm run build</code>
15
33
 
16
- See /docs/overview.md for a more in depth documentation
34
+ See /docs/ for a more in depth documentation
35
+
36
+ # Join Libre Network
37
+ https://discord.gg/CZ5EAaD8VD
package/TODO.md CHANGED
@@ -1,3 +1,2 @@
1
1
  (ordered by importance)
2
- Refactor + delete unused code
3
- Change the markov chain to use a smaller, random corpora, and random semantic flips
2
+ MAKE THE PIT/ROUTING INSTANCES SEPERATE PER CLIENT