{
  "version": 1,
  "canonical": "https://xaede.net/work/python-pixijs",
  "title": "Python + PixiJS",
  "description": "A short experiment that uses Transcrypt to turn Python into JavaScript for a PixiJS browser scene.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<section class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">Python + PixiJS</span></li></ol></nav><span class=\"eyebrow\">Experiment / Python</span><h1>Python + PixiJS</h1><p class=\"detail-deck\">Can the same browser experiment be written in Python?</p><p class=\"intro-copy\">A short experiment that uses Transcrypt to turn Python into JavaScript for a PixiJS browser scene.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/python-pixijs\" rel=\"noopener noreferrer\">View the source <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/python-pixijs/blob/main/README.md\" rel=\"noopener noreferrer\">Project documentation <span aria-hidden=\"true\">↗</span></a></div></section><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/projects--python-pixijs.svg\" class=\"visual-open\" aria-label=\"Open full-size visual: Python + PixiJS\"><img src=\"/media/visuals/projects--python-pixijs.svg\" width=\"1600\" height=\"1000\" alt=\"Python + PixiJS — explanatory diagram\"  decoding=\"async\"></a><figcaption>Authoring and compilation workflow. This is transpilation, not an embedded CPython runtime. · <a href=\"/media/visuals/projects--python-pixijs.svg\">View full size ↗</a></figcaption></figure><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">AREAS OF EXPLORATION</span><div class=\"tags\"><span>Python</span><span>Transpilation</span><span>Rendering</span></div><p class=\"small\">MIT · Public repository</p><p class=\"small\">GitHub record: October 27, 2021</p></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>Keep the renderer, change the authoring language</h2><p>Python + PixiJS asks a narrow question: can a browser graphics experiment be authored in Python while still using PixiJS? Transcrypt supplies the bridge by translating the Python source into JavaScript that the browser can run.</p></section><section class=\"project-chapter\"><h2>The translation step is explicit</h2><p>The repository contains the Python experiment, a Transcrypt compilation command and a static browser entry point. After compilation, a local HTTP server delivers the resulting page. PixiJS remains the graphics runtime; the source language is the variable being explored.</p></section><section class=\"project-chapter\"><h2>What it does and does not demonstrate</h2><p>The experiment tests the ergonomics of a small transpiled program rather than embedding a full Python interpreter. It does not imply support for arbitrary CPython packages, native extensions or unchanged Python applications. Its scope is a specific route from a constrained Python program to a browser scene.</p></section><h2>Implementation at a glance</h2><ul><li>Uses a Python-to-JavaScript compilation step.</li><li>Serves the resulting output as a static browser application.</li><li>Explores authoring-language choice while retaining a JavaScript graphics runtime.</li></ul><h2>Project status</h2><p>Python-to-JavaScript transpilation, rather than native CPython execution in the browser.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/python-pixijs\" rel=\"noopener noreferrer\">Source on GitHub <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/python-pixijs/blob/main/README.md\" rel=\"noopener noreferrer\">Further technical detail <span aria-hidden=\"true\">↗</span></a></div></div></section>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/python-pixijs#webpage",
        "url": "https://xaede.net/work/python-pixijs",
        "name": "Python + PixiJS",
        "description": "A short experiment that uses Transcrypt to turn Python into JavaScript for a PixiJS browser scene.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/python-pixijs#project"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/python-pixijs#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/projects--python-pixijs.svg#image"
        }
      },
      {
        "@type": "SoftwareSourceCode",
        "@id": "https://xaede.net/work/python-pixijs#project",
        "name": "Python + PixiJS",
        "description": "A short experiment that uses Transcrypt to turn Python into JavaScript for a PixiJS browser scene.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "codeRepository": "https://github.com/josh-english-2k18/python-pixijs",
        "programmingLanguage": [
          "Python",
          "HTML"
        ],
        "creativeWorkStatus": "Experiment",
        "url": "https://xaede.net/work/python-pixijs",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/python-pixijs#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/projects--python-pixijs.svg#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/python-pixijs#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Python + PixiJS",
            "item": "https://xaede.net/work/python-pixijs"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/projects--python-pixijs.svg#image",
        "url": "https://xaede.net/media/visuals/projects--python-pixijs.svg",
        "contentUrl": "https://xaede.net/media/visuals/projects--python-pixijs.svg",
        "width": 1600,
        "height": 1000,
        "caption": "Authoring and compilation workflow. This is transpilation, not an embedded CPython runtime."
      }
    ]
  }
}
