rel=”source-code”: A Link Relation for Source Code Location
How do you indicate, in a page, where the location of the sourcecode for the software in question is located? How about something like this?
<link rel=”source-code” href=”http://www.example.com/git/whatever” />
How to Use It
The relation, simply put, allows you to link to a resource that contains the source code related to the current resource. The relation takes on two primary uses:
- Included in a resource that is part of an application. In this case, the link references the source code for that application. For example, the link could be included in the header of every page of a web app, pointing to a public source repository for the project.
- Included in a resource that describes or is otherwise related to an application, but is not the application itself. For example, a page on a project website may refer to the public source repository for the project.
Really?
This came up as a side thread in a discussion recently between a few folks at IIW about WebFinger and general Link relation lookup. All we wanted was an easy way to locate the source code for a demo.
What do you think — sensible? Does anything close to this exist already? It seems there is a wide variety of ways to get a relation into common use, ranging from formal RFCs to a shared wiki to just throwing it into the blogosphere. But hey, I just wanted to float the idea.
Untitled
Hard to believe that the lead singer of Traffic and that guy from the
80s are the same person.

