Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suhailkakar/lens.js
JavaScript SDK for Lens Protocol
https://github.com/suhailkakar/lens.js
Last synced: 3 days ago
JSON representation
JavaScript SDK for Lens Protocol
- Host: GitHub
- URL: https://github.com/suhailkakar/lens.js
- Owner: suhailkakar
- License: mit
- Created: 2022-07-22T07:34:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T06:55:55.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T12:21:32.946Z (16 days ago)
- Language: TypeScript
- Homepage: https://lensjs.suhailkakar.com
- Size: 693 KB
- Stars: 124
- Watchers: 3
- Forks: 14
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-lens-protocol - lens.js - JavaScript SDK. (Development / Libraries & Tools)
README
# Lens JS
![GitHub package.json version](https://img.shields.io/github/package-json/v/suhailkakar/lens.js.svg)
[![GitHub license](https://img.shields.io/github/license/suhailkakar/lens.js.svg)](https://github.com/suhailkakar/lens.js/blob/master/LICENSE)
[![GitHub Shield](https://img.shields.io/badge/open-GitPod-D4973A?logo=gitpod)](https://gitpod.io/#https://github.com/suhailkakar/lens.js)
> A JavaScript SDK for the Lens API
Lens.js is a JavaScript SDK or a API wrapper for the Lens API.
Lens.js simplify the process of creating a social media app one more step.
It is a simple, easy to use, and powerful API for interacting with Lens Protocol.You can use Lens.js on node server, browser, or mobile.
## Installations
You can install Lens.js either using NPM and YARN.
Inside your project directory, run the following command:
```sh
npm install lens-protocol
```Or with `yarn`:
```sh
yarn add lens-protocol
```## Example
Using lens.js is way easier, you can check all APIs in the docs and here is a example on how to get the status of the API
```js
Lens
.ping()
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});
```## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue.
Don't forget to give the project a star! Thanks again!1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Lens.js project is an open source software licensed under the MIT License