APM Search


#1

Looking at the APM API docs, it doesn’t seem possible to distinguish between non-themes, syntax themes, and UI themes. Is that correct?


#2

I think the API docs are a bit outdated. When I query /api/packages I get a lot more then just the name and repository of each package:

{
    "name": "base16-tomorrow-dark-theme",
    "repository": {
      "type": "git",
      "url": "https://github.com/atom/base16-tomorrow-dark-theme"
    },
    "downloads": 247371,
    "stargazers_count": 23,
    "releases": {
      "latest": "1.1.0"
    },
    "versions": {
      "1.1.0": {
        "name": "base16-tomorrow-dark-theme",
        "theme": "syntax",
        "version": "1.1.0",
        "description": "Base16 dark theme for Atom",
        "keywords": [
          "base16",
          "dark",
          "syntax"
        ],
        "repository": "https://github.com/atom/base16-tomorrow-dark-theme",
        "license": "MIT",
        "engines": {
          "atom": ">0.49.0"
        },
        "dist": {
          "tarball": "https://www.atom.io/api/packages/base16-tomorrow-dark-theme/versions/1.1.0/tarball"
        }
      },
      ...
    },
    "metadata": {
      "name": "base16-tomorrow-dark-theme",
      "theme": "syntax",
      "version": "1.1.0",
      "description": "Base16 dark theme for Atom",
      "keywords": [
        "base16",
        "dark",
        "syntax"
      ],
      "repository": "https://github.com/atom/base16-tomorrow-dark-theme",
      "license": "MIT",
      "engines": {
        "atom": ">0.49.0"
      }
    }
  }

The key here is metadata.theme as defined here:

  • The key does not exist for non-themes
  • ui for UI themes
  • syntax for syntax themes

#3

Thank you.