{"repo":"vgrichina/fast-near","free":true,"listed":false,"github":"https://github.com/vgrichina/fast-near","clone":"git clone https://github.com/vgrichina/fast-near.git","description":"Fastest RPC for @near based on Redis/LMDB","language":"JavaScript","stars":50,"topics":["blockchain","near","web3","redis","lmdb"],"license":null,"category":"blockchain-web3","readme_excerpt":"What is fast-near? fast-near aims to provide the fastest RPC implementation for @NEARProtocol using high performance storage backends like: - in-memory storage in Redis. - SSD optimized storage using LMDB. It is optimized for view call performance and ease of deploy and scaling. It currently doesn't sync with network on its own, data needs to be loaded either from NEAR Lake or from https://github.com/vgrichina/near-state-indexer. Why nearcore RPC performance isn't good enough for novel use cases like https://web4.near.page. fast-near achieves better performance by using - in-memory storage using Redis - client-side caching to save on Redis I/O - V8 WebAssembly implementation - disabled gas metering (timeout works fine for view calls) - simpler REST API (no JSON wrapper if passing large binaries, etc) - good compatibility with caching at HTTP layer (using Nginx, etc) fast-near is also a good fit if you want to run RPC node serving limited subset of accounts (e.g. supporting your app exclusively) on a smaller hardware. This works well if data is sourced from NEAR Lake. How to Run directly from npm: Build and run via yarn: Build and run with docker: Pull data into Redis To load from NEAR Lake (use --help to learn more about options): Pull data into LMDB (experimental) To load from NEAR Lake (use --help to learn more about options): Run server: Load data only for your app's smart contracts To load data for app1.near , app2.near and all subaccounts of superapp.near : Exclude some ","default_branch":null,"files":null,"tree":[],"storefront":"/r/vgrichina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vgrichina/fast-near/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}