@skalenetwork/metaport
Version:
SKALE Metaport Widget
58 lines (36 loc) • 1.63 kB
Markdown
# SKALE Metaport Widget
[](https://discord.gg/vvUtWJB)




Metaport is a Typescript/Javascript widget that could be embeded into a web application to add IMA functionality to any SKALE dApp.
## Documentation
See https://docs.skale.network/metaport/1.1.x/
## Development
### Storybook preview
```
bash prepare_meta.sh && bun install && bun build:lib
bun dev
```
### Debug mode
To enable debug mode, set `debug` environment variable to `true`:
```Javascript
const metaport = new Metaport({
...
debug: false // Enable debug mode (optional, default = false)
...
});
```
Additionally, you can enable debug logs in developer console by enabling `Verbose` level of logs.
#### Linter git hook
Be sure to add pre-commit git hook:
```shell
echo 'bun lint' > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```
## Security and Liability
The Metaport UI and code is WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## License

All contributions are made under the [GNU Lesser General Public License v3](https://www.gnu.org/licenses/lgpl-3.0.en.html). See [LICENSE](LICENSE).