These implementations are for demonstration purposes. They are less efficient than the implementations in the Python standard library.
JSBI is a pure-JavaScript implementation of the ECMAScript BigInt proposal, which officially became a part of the JavaScript language in ES2020. Native BigInts are already shipping in modern browsers ...