Giter Site home page Giter Site logo

starknetid.js's Introduction

Starknetid.js

Starknetid.js is a JavaScript library that facilitates interaction with the Starknet.id protocol. Whether you're a dApp developer or a blockchain enthusiast, this library provides utility functions to seamlessly integrate Starknet.id into your projects.

๐Ÿ”— Full documentation of the package

Get started

Installation

# using npm
npm install starknetid.js starknet@next

# using yarn
yarn install starknetid.js starknet@next

Development

You need Node and pnpm installed. Make sure to clone this repo and run:

pnpm install
pnpm build

To start watching for changes, run:

pnpm dev

and open http://localhost:5173/

Running tests

For running tests:

pnpm test

starknetid.js's People

Contributors

irisdv avatar th0rgal avatar fricoben avatar

Stargazers

 avatar

Watchers

 avatar  avatar Immanuelolivia avatar

starknetid.js's Issues

URI not updated

The URI is not updated when I'm going into different dapps like Flex and Nostra. My former PFP is here, while I wanted to get my Starkurabu PFP.

URI

Tx set PFP: 0x00be89ad352fee43cd209e10dfc5df80bd14428c171da6be96680b852c1ef52e

Add github actions

Add Github actions that will run all the tests at each PR (devnet tests and unit tests).

Add address to data

  public abstract getUserData(
    idOrDomain: number | string,
    field: string,
  ): Promise<BN>;

Get user data also with the address because the address is the only thing an app has at the beginning. It's difficult to say oh I want the discord but I have to check if my user has a starknet ID/domain, get the tokenId/domain, and then use this function.

A function with the possibility to also give an address will be easier for devs.

Create starknetid.js profile hooks

Description

Our goal is that features outside of the name (PFP ...) to be more used. To do that we want to enhance the dev experience when integrating starknet id and abstract everything for him to retrieve this data.

Priority number one on this would be starknet-react because this is the most used hook by the community. Ideally, we don't add any breaking change but we add the possibility for people to use retrieve PFPs and other data as easily as they can retrieve names right now.

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.