<commit_before><commit_msg>Updating _posts/2014-06-05-beta-testing-linkrotjs-on-api-evangelist.html via Laneworks Publish<commit_after>---
layout: post
title: 'Beta Testing Linkrot.js On API Evangelist'
source: http://testing.apievangelist.com/2014/06/05/beta-testing-linkrotjs-on-api-evangelist/
domain: testing.apievangelist.com
image: https://s3.amazonaws.com/kinlane-productions/bw-icons/bw-broken-chain.png
---
<p><img style="padding: 15px;" src="https://s3.amazonaws.com/kinlane-productions/bw-icons/bw-broken-chain.png" alt="" width="250" align="right" /></p>
<p>I started beta testing a new JavaScript library, combined with API, that I&rsquo;m calling linkrot.js. My goal is to address link rot across my blogs. There are two main reasons links are bad on my site, either I moved the page or resource, or a website or other resource has gone away.</p>
<p>To help address this problem, I wrote a simple JavaScript file that lives in the footer of my blog, and when the page loads, it spiders all the links on the page, combining them into a single list and then makes a call to the linkrot.js API.</p>
<p>All new links will get a URL shortener applied, as well as a screenshot taken of the page. Every night a script will run to check the HTTP status of each link used in my site&mdash;verifying the page exists, and is a valid link.</p>
<p>Every time link rot.js loads, it will spider the links available in the page, sync with linkrot.js API, and the API returns the corresponding shortened URL, or if a link shows a 404 status, the link will no longer link to page, it will popup the last screenshot of the page, identifying the page no longer exists.</p>
<p>Eventually I will be developing a dashboard, allowing me to manage the link rot across my websites, make suggestions on links I can fix, provides a visual screen capture of those I cannot, while also adding a new analytics layer by implementing shortened URLs.</p>
<p>Linkrot.js is just an internal tool I&rsquo;m developing in private beta. Once I get up and running, Audrey will beta test, and we&rsquo;ll see where it goes from there. Who knows!</p>
{'fraction_non_alphanumeric': 0.0824693685202639, 'fraction_numerical': 0.012252591894439209, 'mean_word_length': 4.528645833333333, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '5898128', 'n_tokens_mistral': 621, 'n_tokens_neox': 583, 'n_words': 304}