SnarkJS is a first-party JavaScript library used to make use of Circom files at all levels of the stack. While circuits themselves are written as .circom files, just about all functionality derived from these files comes from their integration with SnarkJS.