<commit_before># Starter revisit.link Service

[Ryan](http://github.com/kid-icarus) made [a glitch sample app](https://github.com/revisitors/glitch-api-example) for <revisit.link>. I cloned it and edited it a little to make it more bare bones/general use. You can use it to build your own revisit.link service on top of it, if you want.


## How does it work?

#### Setup

1. Clone this repo
1. Run `npm install` from the new directory
1. Make a new GitHub repo for your code, copy the SSH link
1. Use `git remote set-url <new repo url>` to point your code to your own repo

#### Transform

1. In transformer.js, write code to do your transformation to the image buffer. (See below for examples of how others are doing these transformations.)
1. Add dependencies as needed with `npm install --save <libname>`
1. Test your code locally by running `npm start` from the repo directory

#### Deploy

1. Find hosting for your app (see below for some example options)
1. Deploy code to the hosting provider, copy the URL/port where your app is running
1. Oh yeah, make sure it's actually running...

#### Add to revisit.link<commit_msg>Fix link TLD problem<commit_after># Starter revisit.link Service

[Ryan](http://github.com/kid-icarus) made [a glitch sample app](https://github.com/revisitors/glitch-api-example) for [revisit.link](http://revisit.link). I cloned it and edited it a little to make it more bare bones/general use. You can use it to build your own revisit.link service on top of it, if you want.


## How does it work?

#### Setup

1. Clone this repo
1. Run `npm install` from the new directory
1. Make a new GitHub repo for your code, copy the SSH link
1. Use `git remote set-url <new repo url>` to point your code to your own repo

#### Transform

1. In transformer.js, write code to do your transformation to the image buffer. (See below for examples of how others are doing these transformations.)
1. Add dependencies as needed with `npm install --save <libname>`
1. Test your code locally by running `npm start` from the repo directory

#### Deploy

1. Find hosting for your app (see below for some example options)
1. Deploy code to the hosting provider, copy the URL/port where your app is running
1. Oh yeah, make sure it's actually running...

#### Add to revisit.link
{'fraction_non_alphanumeric': 0.08741258741258741, 'fraction_numerical': 0.008741258741258742, 'mean_word_length': 3.8805970149253732, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5841600', 'n_tokens_mistral': 666, 'n_tokens_neox': 627, 'n_words': 356}