NPM to JSS version
I may have misunderstood part of the question, but from my understanding, the NPM version and the JSS version are the same thing, so the compatibility matches the NPM version. This means if JSS 13 is what is compatible with your version, then you should be using NPM version 13.
Compatibility by Sitecore XP version
You can review the compatibility of JSS up to version 9.3 on this compatibility document: https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0541788
From that doc, these are the compatibility of JSS versions up to 9.3:
- JSS 9.0 Tech Preview: 9.0
- JSS 11.0: 9.0, 9.1
- JSS 12.0: 9.2
- JSS 13.0: 9.3
- JSS 14.0: Not compatible with 9.3
For versions after 9.3, you can review this article: https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1000576
From that doc, JSS version compatibility is as follows:
- JSS 14.0: 10.0
- JSS 15.0: 10.0
- JSS 16.0: 10.1
- JSS 18.0: 10.1
- JSS 19.0: 10.2
Note on JSS vs Headless Services
With Headless Services it is more than just JSS and now includes ASP.NET Core as well. Newer releases are referred to as Headless Services instead of JSS. You can find the downloads for Headless Services here: dev.sitecore.net/Downloads/Sitecore_Headless_Rendering.aspx