Pachanka's Source Archive

Here be sources.

SRC Documentation

Here you will find the basic usage of the src.pachanka.org interface.

Introduction

The content on src.pachanka.org is intended to host static files in a logical order. Since these files don't change often having a CDN makes a lot of sense, since it adds a logical place to store and maintain static data.

Disclaimer

Even though the content here is free for anyone to link to, there is no promise that it will continue to work in the future. Most, if not all, of the content here is probably going to be used to be refereed to by other pages in the pachanka.org domain, which is the prime purpose of this sub-domain.

If you own something hosted on this server and want it taken down, by all means, give us a hit.

Parameters

The file structure in src is a set of GET requests that are used to classify the content, all data stored must be documented, named, whitelisted and uploaded to avoid the legacy what is where problem and other scenes of hell that I have survived and have no desire to go back to.

All parameters are required.

So you must provide a method, resource, version and format (in that order) with every request. If no parameters are provided you will just land on this page again.

See the examples for some functional URLs that use these four parameters.

Method

So far src only supports the GET parameter as the first part of the URL.

  • Get a library or resource from src

    src.pachanka.org/get/

Library or resource

The second parameter sets the library name on src, its limited to letters, numbers and a few special characters.

  • Get a library or file called resource.

    src.pachanka.org/get/resource/

Version

There are three ways to set the version parameter in src. Note that if you use the default or latest versions your build can break if the resource you are linking to is not backwards compatible.

  • Get the specific version, it can be any number or code name, for example 1.0 for this resource.

    src.pachanka.org/get/resource/1.0/

  • Get the default for this resource, usually this is the stable version available on src.

    src.pachanka.org/get/resource/default/

  • You can also use the latest resource, this is the newest version available on src.

    src.pachanka.org/get/resource/latest/

Format

The format or extension to get from the resource.

  • Whitelisted formats available are css, js, json, jsonp, txt, csv, md, xml, rss, atom, png, ico, jpg, gif, bmp, svg, svgz, woff, woff2, ttf, otf, eot and is likely to grow.

    src.pachanka.org/get/resource/default/format

Available Resources

Any given resource will always have the default version available and one of the allowed formats.

List of resources

As src is still very experimental so the full list of resources will remain undisclosed until the model is stable and secure.

Meanwhile hang on tight.

Examples

JavaScript Libraries

JavaScript example:

  • src.pachanka.org/get/menu/default/js

JSON and JSONP

JSON example:

  • src.pachanka.org/get/menu/1.0/json

JSONP example:

  • src.pachanka.org/get/menu/default/jsonp?callback=jsonp_menu_markup

Images

SVG example:

  • src.pachanka.org/get/image/stallman/svg