Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc-like functions. The API is used in the Mozilla clients, many of Red Hat's and Sun's server applications, and other software offerings.

Getting NSPR

NSPR is available in various source and binary packages, depending on your platform:

  • Windows: Build the source package, using the NSPR build instructions.
  • Mac: Install the MacPorts nspr package, or the Homebrew nspr package.
  • Ubuntu: Install the libnspr4-dev package via apt-get.
  • Debian: Install the libnspr4-dev package via apt-get.


About NSPR
This topic describes, in general terms, the goals of NSPR and a bit about how it does it.
NSPR API Reference
The reference describes each API public macro, structure and function in the NSPR API.
NSPR build instructions
How to checkout and build from source.
NSPR release process
How to prepare an NSPR release.
Legacy NSPR Content
Older NSPR content is available in SVN for browsing and/or migration to this site

View All...


  • View Mozilla forums...