Coder Social home page Coder Social logo

sahilpabale / sonic-sdk Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.34 MB

Sonic SDK enables you to quickly setup and integrate your decentralized community in a flash!

Home Page: https://0xsonic.vercel.app

License: MIT License

TypeScript 71.43% HTML 1.58% JavaScript 20.63% CSS 6.36%
orbis react-library reactjs community decentralized sdk

sonic-sdk's Introduction

@0xsonic/sdk

Sonic SDK enables you to quickly setup and integrate your decentralized community in a flash!

NPM Package NPM Downloads Stars License

Table of Contents:

๐Ÿ“ฆ Getting Started

Installation

If not by the docs, we have a video to walk you through the installation and setting up sonic in your dapp.

Video Walkthrough

NPM

npm install @0xsonic/sdk

Yarn

yarn add @0xsonic/sdk

PNPM

pnpm install @0xsonic/sdk

Usage

React-js Application:

Warning Currently we're facing a source map issue which will throw some weird warnings in your react-app, for this we have a temporary solution to be added in package.json file.

Add GENERATE_SOURCEMAP=true in front of react-scripts start so the warning goes off!

// package.json
"scripts": {
    "start": "GENERATE_SOURCEMAP=false react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
  },
// 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

Framework Version
react-js 0.2.6 โœ…
next-js 0.3.0 ๐Ÿ—
react-ts 0.3.5 ๐Ÿ—
next-ts 0.4.0 ๐Ÿ—
vue 0.5.0 ๐Ÿ—
svelte 0.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.

sonic-sdk's People

Contributors

anishde12020 avatar sahilpabale avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.