@iota-pico/lib-browser
v1.0.0
Published
IOTA Pico Framework Library for Browser
Downloads
3
Maintainers
Readme
IOTA Pico Framework Lib for Browser
The IOTA Pico Framework library is an alternative to the official iota.lib.js
The library is a bundle of all the following components:
- @iota-pico/core - Core functions and helper classes.
- @iota-pico/data - Data objects.
- @iota-pico/api - REST API.
- @iota-pico/crypto - Crypto functions Curl/Kerl/SHA3.
- @iota-pico/business - Business layer to perform transactions.
- @iota-pico/pal-browser - Platform abstraction layer for the browser.
- @iota-pico/pow-box - Proof of Work using TestNet PowBox. (for TestNet)
- @iota-pico/pow-js - Proof of Work using JavaScript. (Very Slow - Single Threaded)
- @iota-pico/pow-srvio - Proof of Work using Remote powsrv.io web site api.
- @iota-pico/pow-wasm - Proof of Work using WebAssembly. (Slow - Single-Threaded)
- @iota-pico/pow-webgl - Proof of Work using WebGL. (Best Choice - Multi-Threaded)
If you want to run on NodeJS try the alternate version @iota-pico/lib-nodejs
Installation
npm install @iota-pico/lib-browser --save
The library also has a dependency of big-integer which should get installed with the main package.
There are two variants of the library
- development - which is not minified and includes source maps in pkg/iota-pico-lib-browser.js
- production - which is minified and has no source maps in pkg/iota-pico-lib-browser.min.js
If you don't want all of the proof of work algorithms, there are some alternative smaller packages:
- pkg/iota-pico-lib-browser-none.js - No Proof Of Work algorithms
- pkg/iota-pico-lib-browser-none.min.js - No Proof Of Work algorithms
- pkg/iota-pico-lib-browser-webgl.js - Fastest for Platform
- pkg/iota-pico-lib-browser-webgl.min.js - Fastest for Platform
TypeScript Definitions
TypeScript definitions can be found in the pkg/iota-pico-lib-browser.d.ts and should be located automatically by your developments tools.
Usage
The library is compiled into a UMD that can be included directly in the browser or by using a module loader (Browserify/RequireJS/SystemJS/Webpack). You can see various usage scenarios in the following browser tutorials:
- Usage Library Script Include
- Usage Library Browserify
- Usage Library RequireJS
- Usage Library SystemJS
- Usage Library Webpack
Documentation
The documentation for each part of the library can be found in it's relevant repository:
- @iota-pico/core documentation
- @iota-pico/data documentation
- @iota-pico/api documentation
- @iota-pico/crypto documentation
- @iota-pico/business documentation
- @iota-pico/pal-browser documentation
- @iota-pico/pow-box documentation
- @iota-pico/pow-js documentation
- @iota-pico/pow-srvio
- @iota-pico/pow-wasm documentation
- @iota-pico/pow-webgl documentation
Tutorials
Tutorials can be found in the following repo @iota-pico/tutorials
Contributing
Contributions are always welcome to the project. Feel free to raise issues, create pull requests or just make suggestions.
Authors
Come and find us on the IOTA Discord development channels
- Martyn Janes - obany - (https://github.com/obany)
Donations
IOTA donations are always welcome :smile:
License
This project is licensed under the MIT License - see the LICENSE file for details.