Ngspice is a mixed-level/mixed-signal circuit simulator. its code is based on three open source software packages: spice3f5, cider1b1 and xspice.
ngspice is part of geda project, a full gpl'd suite of electronic design automation tools.
this package contains the html, postscript and pdf documentation.