bigint

Top 18 bigint Open-Source Projects

  • protobuf-ts

    Protobuf and RPC for TypeScript

  • Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12

    DX for front or back end? The beauty of tRPC is that the types are derived/inferred from the backend runtime code (like, as you type). It would be nigh impossible to do that with grpc(-web) using proto files as the source of truth.

    It's possible there's a project out there which could automatically produce proto files from something like zod, json-schema, etc. which could be directly interpreted by TS to provide similar (as you type) DX while still allowing some other language backend to consume the derived proto files (though the DX there would be less than ideal).

    If you're just looking for similar TS clients/interfaces for grpc-web then I'd recommend https://github.com/timostamm/protobuf-ts which operates on plain JS objects (no new MyMessage().serialize(), instead the code generator mostly produces TS interfaces for you to work against: const myMessage: MyMessage = pojoConformingToInterface; const binary = MyMessage.toBinary(myMessage);)

  • jsbi

    JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.

  • Project mention: How to Implement and Deploy a Smart Contract Event Listener with AWS CDK | dev.to | 2023-11-19

    import 'dotenv/config'; import * as erc20abi from './abi.json'; import Web3, { Contract, WebSocketProvider } from 'web3'; /* Workaround for JSON.stringify() event logs with BigInt values. We need to stringify event logs for more readable logging in CloudWatch. https://github.com/GoogleChromeLabs/jsbi/issues/30 */ (BigInt.prototype as any).toJSON = function () { return this.toString(); }; /** * Starts the smart contract event listener. * Websocket Provider config: https://docs.web3js.org/api/web3-providers-ws/class/WebSocketProvider * @param chain - Name of the blockchain network for logging purposes. * @param wssEndpoint - Websocket endpoint for the blockchain network. * @param contractAddress - Smart contract address. */ const startEventListener = async (chain: string, wssEndpoint: string, contractAddress: string) => { const provider = new WebSocketProvider( wssEndpoint, {}, { autoReconnect: true, delay: 10000, // Default: 5000 ms maxAttempts: 10, // Default: 5 }, ); provider.on('connect', () => { console.log(`Connected to ${chain} websocket provider`); }); provider.on('disconnect', error => { console.error(`Closed ${chain} webSocket connection`, error); }); const web3 = new Web3(provider); /* Smart contract event listeners Listening to events: - Transfer - Approval */ const contract = new web3.eth.Contract(erc20abi, contractAddress); await subscribeToEvent(chain, contract, 'Transfer'); await subscribeToEvent(chain, contract, 'Approval'); }; /** * Subscribes to a smart contract event. * @param chain - Name of the blockchain network for logging purposes. * @param contract - Smart contract address. * @param eventName - Name of the event to subscribe to. */ const subscribeToEvent = async (chain: string, contract: Contract, eventName: string) => { const subscription = await contract.events[eventName](); subscription.on('connected', subscriptionId => { console.log(`${chain} USDT '${eventName}' SubID:`, subscriptionId); }); subscription.on('data', event => { console.log(`${chain} USDT '${eventName}'`, JSON.stringify({ event })); // cannot json.stringify BigInt... }); subscription.on('changed', event => { // Remove event from local database }); subscription.on('error', error => { console.error(`${chain} USDT '${eventName}' error:`, error); }); }; /* Start smart contract event listeners Chains: - Ethereum */ startEventListener('Ethereum', process.env.ETH_WSS_ENDPOINT!, process.env.ETH_SMART_CONTRACT_ADDRESS!);

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • structurae

    Data structures for high-performance JavaScript applications.

  • Project mention: Structurae – data structures for high-performance JavaScript applications | news.ycombinator.com | 2023-07-04
  • constantine

    Constantine: modular, high-performance, zero-dependency cryptography stack for proof systems and blockchain protocols.

  • Project mention: A beginner's guide to constant-time cryptography (2017) | news.ycombinator.com | 2024-02-22

    Percival cache attacks on Hyperthreading.

    I go over some examples here: https://github.com/mratsim/constantine/issues/358#issuecomme...

  • Swift-BigInt

    A lightweight, Arbitrary Precision Arithmetic Library for Swift!

  • safe-json-value

    ⛑️ JSON serialization should never fail

  • BigNumber

    C++ class for creating and computing arbitrary-length integers

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nim-stint

    Stack-based arbitrary-precision integers - Fast and portable with natural syntax for resource-restricted devices.

  • Project mention: Stint (Stack-based multiprecision integers) | news.ycombinator.com | 2023-07-03
  • dashu

    A library set of arbitrary precision numbers implemented in Rust.

  • Fermat

    A library providing math and statistics operations for numbers of arbitrary size.

  • proposal-bigint-math

    Draft specification for supporting BigInts in JavaScript’s Math methods.

  • varint

    VarInt: fast & memory efficient arbitrary bit width integers in Go. (by 1pkg)

  • money-fns

    Zero-dependency Money library (BigInt, Typescript and FP-oriented).

  • Project mention: Money-fns: Type-safe and FP JavaScript Money library | news.ycombinator.com | 2023-08-20
  • jsbi-calculator

    JSBI-Calculator is an IE11-compatible calculator utility to perform arbitrary (up to 18 decimals) arithmetic computation, with the help of JSBI-based BigDecimal.

  • PDOPlusPlus

    A PHP single class PDO Wrapper : PDO++ (alias PPP) - CRUD - SP - BIGINT natively compatible

  • EUL

    The mathEmatics Useful Library (the name is a work in progress) is a math general purpose c++20 header library that, among other things, features a big integer implementation. (by ThePirate42)

  • is-json-value

    Check if a value is valid JSON.

  • EsoMath.js

    Esoteric Mathematic Library for Javascript (past names: more-math-for-JS, mostly_math, NTML.js)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

bigint related posts

  • How to Implement and Deploy a Smart Contract Event Listener with AWS CDK

    5 projects | dev.to | 19 Nov 2023
  • Stint (Stack-based multiprecision integers)

    1 project | news.ycombinator.com | 3 Jul 2023
  • Error using JWT Authentication using GRPC Web in .net 7; postman works - typescript client does not authorize

    1 project | /r/csharp | 28 Apr 2023
  • BigInt support for Android without Hermes

    1 project | /r/reactnative | 6 Feb 2023
  • Building a real-time bidding system with Socket.io and React Native

    1 project | /r/javascript | 15 Nov 2022
  • Connect-Web: ergonomic Protobuf & gRPC for browsers

    3 projects | /r/typescript | 4 Aug 2022
  • Is there a GIMPS for Collatz conjecture?

    4 projects | /r/askmath | 28 Jul 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 2 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source bigint projects? This list will help you:

Project Stars
1 protobuf-ts 948
2 jsbi 891
3 structurae 679
4 constantine 254
5 Swift-BigInt 233
6 safe-json-value 206
7 BigNumber 173
8 nim-stint 77
9 dashu 71
10 Fermat 64
11 proposal-bigint-math 35
12 varint 35
13 money-fns 15
14 jsbi-calculator 9
15 PDOPlusPlus 8
16 EUL 6
17 is-json-value 5
18 EsoMath.js 3

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com