Git Product home page Git Product logo

fractl-ui's Introduction

Introduction

Fractl is a framework-agnostic UI library for interacting with blockchains, smart contracts, and wallets. Built for an ecosystem of fragmented ecosystems.

Docs

The first set of components in

Examples?

yes

Install

pnpm add fractl-ui

and a core package for the appropriate network(s). EVM: fractl-ui/evm wagmi viem starknet: fractl-ui/starknet fuel: fractl-ui/fuel fuels

Setup

The general pattern stays the same across core packages. refer to the specific documentation for more details.

Using the evm as an example:

<body>
	<fractl-modal />

	<script>
		/* import fractl-modal from @fractl-ui/ui. (Web Components do not need named imports) */
		import 'fractl-ui'
		import { addEvm } from '@fractl-ui/evm'
		/* setup wagmi regularly */
		import { wagmiConfig } from './lib/wagmiConfig'

		/* addEvm returns an object. So we need to pass it to fractl-modal using javascript */
		const connections = addEvm({config: wagmiConfig})
		document.querySelector('fractl-modal')!.config = connections
	</script>
</body>

Fractl will manage it's state internally and pass updates to wagmi, which you can listen to in your app.

Can I use this now?

Fractl is still very early and some important features will require the API is going to change (for example, to use multiple networks together). That said, Fractl UI and Fractl EVM work relatively well as they are. You should stick to a fixed version if you do decide to use it.

Contributing

PRs and issues welcome. Fractl's UI is built with svelte, compiled to web components. Chain specific packages are written in typescript. If you'd like to try making a new core package, please open an issue first to avoid duplicating work.

Credits

  • Rainbowkit, ConnectKit, and Web3modal for prior work and inspiration
  • Zora Labs for the Zorbs

fractl-ui's People

Contributors

sameoldlab avatar github-actions[bot] avatar

Stargazers

iownqoqw avatar Shun Kakinoki avatar ivan grachev avatar

Watchers

ivan grachev avatar  avatar

fractl-ui's Issues

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.