Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • f785e67
  • /
  • index.html
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:de57761f41b600661c13502048fb68b5aeb266bf
directory badge
swh:1:dir:f785e67ead99e03a20f7fccba0bfca402dc4afde

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
index.html
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="google-site-verification"
          content="7UY7VcXR28Tpmw6m6fc6wtJJQvar71GKqGojp3HPb4Q"/>
    <title>phantasus</title>
    <link rel="stylesheet" href="css/phantasus-latest.min.css">
    <script type="text/javascript" src="RELEASE.js"></script>
    <script type="text/javascript" src="js/phantasus-external-other.min.js"></script>
    <script type="text/javascript" src="js/phantasus-external-pdfkit-xlsx.min.js"></script>
    <script type="text/javascript" src="js/phantasus-external-plotly-echarts.min.js"></script>
    <script type="text/javascript"
                     src="https://apis.google.com/js/api.js"></script>
    <script src="js/phantasus.js"></script>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <script type="text/javascript"
            src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs"
            data-app-key="6xq3zgeoago5fhw"></script>

</head>
<body>
<noscript>
    <p>Please enable JavaScript</p>
</noscript>
<div id="vis"></div>

<script type="text/javascript">
  console.log(PHANTASUS_VERSION,'-',PHANTASUS_BUILD);
  phantasus.DEBUG_ENABLED = phantasus.Util.getURLParameter('debug') !== null;
  phantasus.Util.setLibrary('phantasus');
  phantasus.Util.loadTrackingCode();
  window.onerror = function () {
    var errorObj = _.last(arguments);
    var errorMsg = _.size(errorObj.message) ? errorObj.message : 'Oops, something went wrong. Please try again.';
    phantasus.FormBuilder.showInModal({
      title: 'Error',
      html: errorMsg
    });
  };

  var searchString = window.location.search;
  if (searchString.length === 0) {
    searchString = window.location.hash;
  }
  var landingPage = new phantasus.LandingPage();
  landingPage.$el.prependTo($(document.body));
  if (searchString.length === 0) {
    landingPage.show();
  } else {
    searchString = searchString.substring(1);
    var keyValuePairs = searchString.split('&');
    var params = {};
    for (var i = 0; i < keyValuePairs.length; i++) {
      var pair = keyValuePairs[i].split('=');
      params[pair[0]] = decodeURIComponent(pair[1]);
    }
    // console.log(params);
    if (params.json) {
      var options = JSON.parse(decodeURIComponent(params.json));
      landingPage.open(options);
    } else if (params.url) { // url to config
      var $loading = phantasus.Util.createLoadingEl();
      $loading.appendTo($('#vis'));
      phantasus.Util.getText(params.url).done(function (text) {
        var options = JSON.parse(text);
        landingPage.open(options);
      }).fail(function (err) {
        console.log('Unable to get config file');
        landingPage.show();
      }).always(function () {
        $loading.remove();
      });
    } else if (params.geo) {
      var options = {
        dataset : {
          file : params.geo.toUpperCase(),
          options : {
            interactive : true,
            isGEO : true
          }
        }
      };
      landingPage.open(options);
    } else if (params.preloaded) {
      var req = ocpu.call('preloadedDirExists', {}, function (session) {
        session.getObject(function(success) {
          console.log(success);
          if (JSON.parse(success)[0]) {
            var options = {
              dataset : {
                file : params.preloaded,
                options : {
                  interactive : true,
                  preloaded : true
                }
              }
            };
            landingPage.open(options);
          } else {
            throw new Error("There are no preloaded datasets on this server");
          }
        });
      });
      req.fail(function () {
        throw new Error(req.responseText);
      })

    } else {
      landingPage.show();
    }
  }
</script>
</body>

</html>

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API