flores / moarcats-app

Cat gifs on demand. Please to add moar cats.

Home Page:edgecats.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example

cat gifs on demand for any occasion or project. GET any resource for moar cats. No 5xx or 4xx's here: just cat gifs.

Use it anywhere you need a cat gif! For example

<img src='http://edgecats.net/first' alt='a random cat gif!'/>

or something like this to click for new cat gifs

  
    <div id="catcontainer" onclick="moarcats();">
      <img src="http://edgecats.net" alt="random cat"/>
    </div>

    <script type="text/javascript">
      function moarcats() {
        var catcontainer = document.getElementById("catcontainer");
        catcontainer.innerHTML = '<img src="http://edgecats.net" alt="random cat"/>';
        return false;
      }
    </script>
  

Also allows cross origin requests.

automagically get moar cats!

wait, first here's a cat!

example

try /works for autorotating fullscreen gifs every 20s!

it may not work on your browser, but you can try /auto!

  • every 60s is a new cat
  • click the image to immediately get moar cats
  • the X-cat-link header has a direct link to the current random cat

or got to /auto/full for all dem cats in full screen!

omg /netcat!!

try /netcat out!

  • drag him around!
  • type moar cats for an adorable cat!

Awesome right? Fuck yeah here's another cat

example

need a random link generator?

you can haz! try /random

want to see a shitton of cats OMG YES PLEASE!!!??!?

well here's one right now!

example

  • /all for a list of all cat gifs
  • /all/count for a count of all cat gifs
  • /all/show to show all cat gifs. May be slow!

edgecats.net/cats/ stores static cacheable cats, like this motherfucker right here

example

oh noes it needs a CDN

After getting hit by social networks bandwidth became prohibitive, so enter a CDN from the nice folks at EdgeCast. During high traffic periods, you may find your self redirected to /meow,which serves a cacheable image from /cats.

want to submit a new cat?

Please submit your cat to https://github.com/flores/moarcats-cats

kthx

license

This is released under the Kitty License. If you like this code you should scratch your nearest cat.

example example example example

contributors

Ordered by date of contribution

About

Cat gifs on demand. Please to add moar cats.

edgecats.net


Languages

Language:HTML 56.2%Language:Ruby 39.2%Language:Dockerfile 4.6%