├── .gitignore ├── assets └── main.png ├── package.json ├── vercel.json ├── README.md ├── index.html └── api ├── text.js └── json.js /.gitignore: -------------------------------------------------------------------------------- 1 | .vercel 2 | -------------------------------------------------------------------------------- /assets/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PerryPal21/Techy-API/HEAD/assets/main.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "techy", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.html", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC" 12 | } 13 | -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "headers": [ 3 | { 4 | "source": "/api/(.*)", 5 | "headers": [ 6 | { "key": "Access-Control-Allow-Credentials", "value": "true" }, 7 | { "key": "Access-Control-Allow-Origin", "value": "*" }, 8 | { 9 | "key": "Access-Control-Allow-Methods", 10 | "value": "GET" 11 | }, 12 | { 13 | "key": "Access-Control-Allow-Headers", 14 | "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" 15 | } 16 | ] 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![main](https://raw.githubusercontent.com/PerryPal21/Techy-API/main/assets/main.png) 2 | 3 | This is a cool little API I made using Vercel's serverless functions. It generates tech-savvy sounding phrases which *may or may not make sense.* But if you want to sound like Morpheus from the Matrix, you can utilize this API. 4 | 5 | ✨ [**Demo can be found here**](https://techy-api.vercel.app/) ✨ 6 | 7 | --- 8 | # How to use 9 | 10 | Output in Plain Text -> `https://techy-api.vercel.app/api/text` 11 | ``` 12 | Just use cryptography on the fusion interface 13 | ``` 14 | 15 | Output in JSON -> `https://techy-api.vercel.app/api/json` 16 | ``` 17 | {"message":"I should really get to fixing the resistance external"} 18 | ``` 19 | 20 | --- 21 | [**The older demo based on EJS can be found here**](https://techy-phrase.herokuapp.com/) 22 | - Be sure to check out the `express` branch as well if you are interested 23 | 24 | Inspired by [khalby786](https://github.com/khalby786/getxkcd)'s project 25 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Techy 8 | 12 | 13 | 14 | 24 |
25 |

Techy

26 |

Generate cool tech-savvy sounding phrases easily

27 |
28 |
29 |

How to use:

30 |

31 | Output in Plaintext -> 32 | /api/text 33 |

34 |
35 |

36 | Output in JSON -> /api/json 37 |

38 |
39 |
40 | Made By PerryPal and 41 | Source Code 42 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /api/text.js: -------------------------------------------------------------------------------- 1 | module.exports = async (req, res) => { 2 | 3 | var rawArr = 4 | "linear resistance hard-wired suppression intermittent flow hard-wired distortion hard-wired inductance power fusion storage flow utility inductance analog distortion field modulation memory refraction external interface hard-wired alignment power capacity storage velocity amplitude alignment utility resistance opaque anomalies power adapter intermittent velocity virtual fusion temporal inductance non-linear adapter power deviation phased impedance thermal resistance phased adapter field mis-match secondary flow temporal inductance analog fusion power mis-match traffic fiber digital resistance virtual interface intermittent losses non-linear losses amplitude interface traffic velocity hard-wired fusion intermittent cohesion linear suppression external suppression phased refraction secondary adapter spatial fragmentation spatial coupling virtual alignment storage redirection linear refraction hard-wired velocity external flow thermal refraction power fiber digital flow revenue impedance intermittent anomalies power inductance flux resistance external fragmentation secondary anomalies spatial heirarchy storage fragmentation virtual cohesion intermittent losses secondary cohesion field index intermittent losses utility velocity flux modulation traffic fusion internal fusion traffic deviation revenue reduction secondary suppression external adapter non-linear fiber storage velocity thermal velocity secondary anomalies revenue inductance thermal resistance thermal modulation analog deviation power interface analog reduction storage losses field fragmentation utility interface phased anomalies external inductance phased fiber revenue suppression traffic suppression external coupling spatial fragmentation power suppression internal losses field inductance internal modulation"; 5 | 6 | var wordArr = rawArr.split(" "); 7 | 8 | var phraseArr = [ 9 | "You have to fix the", 10 | "I should really get to fixing the", 11 | "The hardest part was setting the", 12 | "I only had an error while configuring the", 13 | "I spent a lot of time setting up the", 14 | "You should really get to fixing the", 15 | "It was very hard doing the", 16 | "The easiest part was configuring the", 17 | "I was only stuck where you had to hash the", 18 | "I am almost done configuring the", 19 | "All you have to do is hash the", 20 | "Just use cryptography on the", 21 | "All you gotta do is properly set the", 22 | "Its the part where you had to hash", 23 | "Just edit the config file for the", 24 | "Make sure to set the parameters for", 25 | "You have to make sure to set the algorithm right for the", 26 | "Make sure to modulate the", 27 | "Just gotta finishing setting interface for the", 28 | ]; 29 | 30 | var randomWord = Math.floor(Math.random() * wordArr.length); 31 | var randomPhrase = Math.floor(Math.random() * phraseArr.length); 32 | 33 | var phrase = phraseArr[randomPhrase] + " " + wordArr[randomWord] + " " + wordArr[Math.floor(Math.random() * wordArr.length)]; 34 | 35 | res.send(phrase) 36 | } 37 | -------------------------------------------------------------------------------- /api/json.js: -------------------------------------------------------------------------------- 1 | module.exports = async (req, res) => { 2 | 3 | var rawArr = 4 | "linear resistance hard-wired suppression intermittent flow hard-wired distortion hard-wired inductance power fusion storage flow utility inductance analog distortion field modulation memory refraction external interface hard-wired alignment power capacity storage velocity amplitude alignment utility resistance opaque anomalies power adapter intermittent velocity virtual fusion temporal inductance non-linear adapter power deviation phased impedance thermal resistance phased adapter field mis-match secondary flow temporal inductance analog fusion power mis-match traffic fiber digital resistance virtual interface intermittent losses non-linear losses amplitude interface traffic velocity hard-wired fusion intermittent cohesion linear suppression external suppression phased refraction secondary adapter spatial fragmentation spatial coupling virtual alignment storage redirection linear refraction hard-wired velocity external flow thermal refraction power fiber digital flow revenue impedance intermittent anomalies power inductance flux resistance external fragmentation secondary anomalies spatial heirarchy storage fragmentation virtual cohesion intermittent losses secondary cohesion field index intermittent losses utility velocity flux modulation traffic fusion internal fusion traffic deviation revenue reduction secondary suppression external adapter non-linear fiber storage velocity thermal velocity secondary anomalies revenue inductance thermal resistance thermal modulation analog deviation power interface analog reduction storage losses field fragmentation utility interface phased anomalies external inductance phased fiber revenue suppression traffic suppression external coupling spatial fragmentation power suppression internal losses field inductance internal modulation"; 5 | 6 | var wordArr = rawArr.split(" "); 7 | 8 | var phraseArr = [ 9 | "You have to fix the", 10 | "I should really get to fixing the", 11 | "The hardest part was setting the", 12 | "I only had an error while configuring the", 13 | "I spent a lot of time setting up the", 14 | "You should really get to fixing the", 15 | "It was very hard doing the", 16 | "The easiest part was configuring the", 17 | "I was only stuck where you had to hash the", 18 | "I am almost done configuring the", 19 | "All you have to do is hash the", 20 | "Just use cryptography on the", 21 | "All you gotta do is properly set the", 22 | "Its the part where you had to hash", 23 | "Just edit the config file for the", 24 | "Make sure to set the parameters for", 25 | "You have to make sure to set the algorithm right for the", 26 | "Make sure to modulate the", 27 | "Just gotta finishing setting interface for the", 28 | ]; 29 | 30 | var randomWord = Math.floor(Math.random() * wordArr.length); 31 | var randomPhrase = Math.floor(Math.random() * phraseArr.length); 32 | 33 | var phrase = phraseArr[randomPhrase] + " " + wordArr[randomWord] + " " + wordArr[Math.floor(Math.random() * wordArr.length)]; 34 | 35 | res.json({ 36 | message: `${phrase}` 37 | }) 38 | } 39 | --------------------------------------------------------------------------------