dApp-kit v2: A framework-agnostic toolkit for building dApps #221
williamrobertson13
started this conversation in
Technical Discussions
Replies: 2 comments 1 reply
-
this will be awesome. waiting for update on this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
what is the update on this. is Sui that much inactive ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
dApp-kit v2: A framework-agnostic toolkit for building dApps
Since the initial release of
dApp-kit
, we've received valuable feedback from the builder community and have identified several pain points dApp builders commonly encounter. This post outlines our work-in-progress design and goals for the next-generation version of dApp Kit, built to be framework-agnostic, highly customizable, and focused on delivering a significantly improved developer experience.Problems
What we're building to solve these problems
The next-generation version is split into two major pieces: a framework-agnostic core for state management and set of highly themable UI components. This architecture will provide a composable foundation for builders, especially those looking to build on top of dApp Kit without having to re-create the core logic from scratch.
State management
The core state management logic is built using Nanostores, a small, reactive state management library that works across all popular web frameworks and can be accessed anywhere. dApp Kit will automatically register a store on the
globalThis
instance that can be accessed using thegetDefaultStore
method. Below is an example of how one might integrate dApp Kit in a Vue app to display a list of the registered wallets:UI components
We're introducing framework-agnostic web components for core UI elements like the connect modal and button. These components are built using web standards and can be dropped into any frontend stack without extra dependencies. Below is another example in Vue of how to leverage the pre-built UI components:
Future React support
As dApp Kit originally launched as a library for React, we hope to provide a similar experience for developers in the new version of dApp Kit. We are still discussing specifics so there will be more to share in the near future; we are notably looking into providing utilities for data fetching patterns, shadcn registries for React-specific components, and other useful hooks and wrappers to streamline development. Any additional feedback or suggestions are much appreciated!
Other notable changes/mentions
reportTransactionEffects
from the wallet standardBeta Was this translation helpful? Give feedback.
All reactions