0.2.6 • Published 1 year ago

@0xsonic/sdk v0.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM Package NPM Downloads Stars License

Table of Contents:

📦 Getting Started

Installation

Install Sonic SDK using any npm package provider.

NPM

npm install @0xsonic/sdk

Yarn

yarn add @0xsonic/sdk

PNPM

pnpm install @0xsonic/sdk

Usage

React-js Application:

// src/index.js

import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { SonicProvider } from '@0xsonic/sdk';

// ...

root.render(
  <React.StrictMode>
    <SonicProvider> // wrap around your react app component
      <App />
    </SonicProvider>
  </React.StrictMode>
);
// src/App.js

import React from 'react';
import { Sonic } from '@0xsonic/sdk';

function App() {
  return (
    <>
      <Blog/>
      <Sonic context="blog-related-context"/> // enables decentralised comments for your dapp
    </>
  );
}

export default App;

⭐️ Features

  1. <SonicProvider /> SonicProvider wrapper helps us to manage the states and connection with Orbis & Ceramic protocol under the hood.
  2. <Sonic context=""/> Sonic is the main plug-&-play comments widget that dApps can use to integrate decentralised comments feature with 0 headache.
  3. <SonicForum /> WIP 🏗 A easy to use forums widget for all Web3ians
  4. <SonicChat /> WIP 🏗 Another quick, plug-&-play chat widget for dApps, dGames

🚀 Support

FrameworkVersion
react-js0.2.5 ✅
next-js0.3.0 🏗
react-ts0.3.5 🏗
next-ts0.4.0 🏗
vue0.5.0 🏗
svelte0.6.0 🏗

We plan to release these major versions and support all the leading web frameworks in coming months.

✅ Contributing

All code contributions, including those of people having commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code.

We truly ❤️ pull requests! If you wish to help, we will soon be making our sdk ready to be contribute post hackathon, and we'll do a proper announcement for everyone to contribute.

👨🏻‍💻 Builders

Twitter Twitter

📄 License

This repository is available under the MIT License.