Skip to content

Core services sdk for building nostr and related applications

Notifications You must be signed in to change notification settings

Cynsar-Foundation/2nd.sdk

Repository files navigation

Second Exchange SDK

  • Note : This lib is not usable for now, but soon it will expected release date from now , is around + 1 month , alpha release soon :)

For people developing clients and services , this is a core services that lets them develop usefull applications like Front End for tech stack as below.

  1. If you are intending to build something simple , that uses nostr
  2. If you like to build something related to the UI check our UI-SDK
  3. This is just a composed form of services that lets you develop faster

Features

  1. Create memonic pairs for the client,
  2. add your pool or find existing pools or relays
  3. Build schema like events and relay them.
  4. Store files over hypercore and relay them.
  5. Fetch Events for the required fields
  6. Low on dependency and has tested features and tests
  7. Typescript Enabled
  8. Query events like Get this from this Relay

How to use ?

  • Add the SDK in your project
  1. import {Application} from '2nd.SDK'
  2. const init = new Application()

The above will initialize a new Application class that can be accessed and methods exposed directly for use such as init.keys() or init.relayPool() and so on.

  • Make sure that you init the above class , and then you can explore other classes based on your need, like Keys, though most of the basic instances are available with new classes that you instantiate in your project and lets you do most of the methods exposed as per needs.

Using UI Service

  1. Packaging the React UI services that can be used as context

Ship Faster Services and Products

API

  • Application
  • Application.Relay
  • Application.Logger
  • Events.publish
  • Pools.api
  • Keys.api

About

Core services sdk for building nostr and related applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published