0.0.111 • Published 9 months ago

@omnisat/lasereyes v0.0.111

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

lasereyes_logo

lasereyes

@omnisat/lasereyes is the main package that bundles both lasereyes-core and lasereyes-react, offering a unified interface for Bitcoin wallet integration in both framework-agnostic and React-based environments. This package simplifies wallet interactions across various Bitcoin wallets, making it easy for developers to build dApps with Bitcoin support.

Key Features

  • Unified Wallet Interface: Simplifies Bitcoin wallet integration by providing a common interface for multiple wallet providers.
  • Framework-Agnostic: lasereyes-core can be used in any JavaScript or TypeScript environment, not tied to any specific framework.
  • React Support: lasereyes-react offers React hooks, context providers, and wallet icons for seamless integration into React applications.
  • Vue Support (coming soon): lasereyes-vue offers a Vue hook, context providers, and wallet icons for seamless integration into Vue applications.
  • Angular Support (coming soon): lasereyes-angular offers a Angular hook, context providers, and wallet icons for seamless integration into Angular applications.

Packages

This package exports two core packages:

  1. lasereyes-core: The framework-agnostic core logic for wallet interactions.
  2. lasereyes-react: React-specific components, including hooks, providers, and wallet icons.

Installation

To install the @omnisat/lasereyes package:

pnpm add @omnisat/lasereyes

Usage

@omnisat/lasereyes provides both framework-agnostic and React-specific integrations. You can use it in either environment based on your app’s requirements.

Example Usage (React)

import { LaserEyesProvider, useWallet } from '@omnisat/lasereyes-react';

function App() {
  return (
    <LaserEyesProvider network="mainnet">
      <WalletInfo />
    </LaserEyesProvider>
  );
}

function WalletInfo() {
  const { wallet, connect } = useWallet();

  return (
    <div>
      {wallet ? (
        <p>Connected: {wallet.address}</p>
      ) : (
        <button onClick={connect}>Connect Wallet</button>
      )}
    </div>
  );
}

Development

To develop the @omnisat/lasereyes package within the monorepo:

  1. Clone the repository and navigate to the monorepo root.
  2. Install dependencies:
pnpm install
  1. Run the development build:
pnpm dev

Contributing

Contributions are welcome! Feel free to submit pull requests or open issues for bug fixes, feature enhancements, or documentation improvements.

License

@omnisat/lasereyes is MIT licensed.

If you find Laser Eyes useful or use it for work, please consider sponsoring Laser Eyes. Thank you 🙏

0.0.106

9 months ago

0.0.105

9 months ago

0.0.104

9 months ago

0.0.103

9 months ago

0.0.109

9 months ago

0.0.108

9 months ago

0.0.107

9 months ago

0.0.102

9 months ago

0.0.111

9 months ago

0.0.110

9 months ago

0.0.101

9 months ago

0.0.100

9 months ago

0.0.98

9 months ago

0.0.99

9 months ago

0.0.95

9 months ago

0.0.96

9 months ago

0.0.97

9 months ago

0.0.94

9 months ago

0.0.90

9 months ago

0.0.91

9 months ago

0.0.92

9 months ago

0.0.93

9 months ago

0.0.85

9 months ago

0.0.86

9 months ago

0.0.87

9 months ago

0.0.88

9 months ago

0.0.89

9 months ago

0.0.81

9 months ago

0.0.82

9 months ago

0.0.83

9 months ago

0.0.80

9 months ago

0.0.73

10 months ago

0.0.74

10 months ago

0.0.75

10 months ago

0.0.76

10 months ago

0.0.77

10 months ago

0.0.78

9 months ago

0.0.79

9 months ago

0.0.71

10 months ago

0.0.72

10 months ago

0.0.70

10 months ago

0.0.69

10 months ago

0.0.62

10 months ago

0.0.63

10 months ago

0.0.64

10 months ago

0.0.65

10 months ago

0.0.66

10 months ago

0.0.67

10 months ago

0.0.60

10 months ago

0.0.61

10 months ago

0.0.59

10 months ago

0.0.52

10 months ago

0.0.53

10 months ago

0.0.54

10 months ago

0.0.55

10 months ago

0.0.56

10 months ago

0.0.57

10 months ago

0.0.58

10 months ago

0.0.51

10 months ago

0.0.43

10 months ago

0.0.44

10 months ago

0.0.45

10 months ago

0.0.46

10 months ago

0.0.47

10 months ago

0.0.50

10 months ago

0.0.48

10 months ago

0.0.42

11 months ago

0.0.41

11 months ago

0.0.40

11 months ago

0.0.38

11 months ago

0.0.39

11 months ago

0.0.37

11 months ago

0.0.35

11 months ago

0.0.36

11 months ago

0.0.34

11 months ago

0.0.33

11 months ago

0.0.32

11 months ago

0.0.31

11 months ago

0.0.30

11 months ago

0.0.29

11 months ago

0.0.28

11 months ago

0.0.27

11 months ago

0.0.26

11 months ago

0.0.25

11 months ago

0.0.24

11 months ago

0.0.23

11 months ago

0.0.22

11 months ago

0.0.21

12 months ago

0.0.20

12 months ago

0.0.19

12 months ago

0.0.18

12 months ago

0.0.17

12 months ago

0.0.16

12 months ago

0.0.15

12 months ago

0.0.14

12 months ago

0.0.13

12 months ago

0.0.12

12 months ago

0.0.11

12 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago