• Stars
    star
    410
  • Rank 105,468 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mono-repository for packages related to Ledger Live and its JavaScript ecosystem.

ledger-logo   js-logo

The Ledger Live JavaScript ecosystem

We are hiring, join us! 👨‍💻👩‍💻

gitpoap badge

About

ledger-live is a monorepository whose purpose is to centralize all the JavaScript code related to the Ledger Live applications in one place.

Ledger Live is our platform of apps and services integrated specifically to work with your Nano device. It functions as a secure gateway to the crypto ecosystem. This means accessing a variety of crypto, NFT and DeFi based services directly and seamlessly from your hardware wallet – a better, simpler user experience that bypasses a major security concern known as blind signing.

Developers looking to integrate their blockchain in Ledger Live are invited to head to the Developer Portal where they will find the section Blockchain Support.

Installation

💡 This is only a minimal setup. You will need to perform additional installation steps depending on the package you want to work on, please refer to its nested readme file.

Cloning

git clone [email protected]:LedgerHQ/ledger-live.git
cd ledger-live

Proto

⚠️ Important: In order to use install the right version of the tools you will need to install the proto toolchain manager. Please follow the instructions on the proto website to install it.

Once you have installed proto, please run the following command:

# Will download and install the supported versions of nodejs, npm and pnpm.
# Run it from the root or a subfolder of the repository.
proto use

Dependencies

Use the pnpm package manager to install the dependencies in the whole workspace:

pnpm i
# Alternatively, if you want to bypass the postinstall scripts which can be long to run
# pnpm i --ignore-scripts

Note: multiple postinstall steps will be triggered and fail if the applications prerequisites are not met. You can safely ignore the errors if you do not plan to work on those apps.

Usage

Important: All the commands should be run at the root of the monorepo.

Tools

We use pnpm workspaces and turborepo under the hood to handle local and external dependencies, orchestrate tasks and perform various optimizations like package hoisting or remote caching.

For changelog generation releases and package publishing we rely on the changesets library.

Root scripts

The scripts that are defined inside the root /package.json file will use turborepo under the hood and automatically perform needed tasks before running the action.

# This command will first build all the local dependencies needed in the right order.
# Only then it will attempt to build the `Ledger Live Desktop` app.
pnpm build:lld

Aliases

To run nested scripts which are not covered at the root, you should not change your working directory. Every package has an alias defined (see application or library tables or check out the package.json file) that you can use as a prefix when running the script from the root.

# `pnpm desktop` is one of the shorthands written to avoid changing the working directory.

# The following command will run the nested `test` script.
# `test` is defined inside the `./apps/ledger-live-desktop/package.json` file.
pnpm desktop test

Note that when using these kinds of scripts you will have to make sure that the dependencies are built beforehand.

Scoping

You can scope any pnpm or turborepo based script by using the --filter flag.

This is a very powerful feature that you should look into if you are a frequent contributor.

Please check out the pnpm or turborepo documentation for more details (the syntax is almost similar albeit pnpm being a bit more powerful).

Here are some examples:

# Install all the dependencies needed for the packages under ./libs
pnpm i -F "{libs/**}..."
# Run lint only on packages that have been changed compared to origin/develop
pnpm lint --filter=[origin/develop]
# Test every package that has been changed since the last commit excluding the applications
pnpm run test --continue --filter="!./apps/*" --filter="...[HEAD~1]"
# Run typechecks for the Ledger Live Mobile project
pnpm typecheck --filter="live-mobile"

Documentation

Each project folder has a README.md file which contains basic documentation. It includes background info about the project and how to setup, run and build it.

Please check the wiki for additional documentation.

Structure

The sub-packages are (roughly) split into three categories.

/app - Applications

The applications are user-facing programs which depend on one or more libraries.

Ledger Live Applications

Name Alias Download
Ledger Live Desktop pnpm desktop Website
Ledger Live Mobile pnpm mobile Android / iOS

/libs - Libraries

Libraries are public packages which purpose is to be consumed by other libraries or applications. They are deployed to the official npm repository under the @ledgerhq organization.

Ledger Live Libraries

Name Alias Umbrella Package
@ledgerhq/ledger-live-common pnpm common -----
---- ----- ----- -------
@ledgerhq/cryptoassets pnpm ljs:cryoptoassets ledgerjs npm
@ledgerhq/devices pnpm ljs:devices ledgerjs npm
@ledgerhq/errors pnpm ljs:errors ledgerjs npm
@ledgerhq/hw-app-algorand pnpm ljs:hw-app-algorand ledgerjs npm
@ledgerhq/hw-app-btc pnpm ljs:hw-app-btc ledgerjs npm
@ledgerhq/hw-app-cosmos pnpm ljs:hw-app-cosmos ledgerjs npm
@ledgerhq/hw-app-eth pnpm ljs:hw-app-eth ledgerjs npm
@ledgerhq/hw-app-helium pnpm ljs:hw-app-helium ledgerjs npm
@ledgerhq/hw-app-polkadot pnpm ljs:hw-app-polkadot ledgerjs npm
@ledgerhq/hw-app-solana pnpm ljs:hw-app-solana ledgerjs npm
@ledgerhq/hw-app-str pnpm ljs:hw-app-str ledgerjs npm
@ledgerhq/hw-app-tezos pnpm ljs:hw-app-tezos ledgerjs npm
@ledgerhq/hw-app-trx pnpm ljs:hw-app-trx ledgerjs npm
@ledgerhq/hw-app-xrp pnpm ljs:hw-app-xrp ledgerjs npm
@ledgerhq/hw-transport pnpm ljs:hw-transport ledgerjs npm
@ledgerhq/hw-transport-http pnpm ljs:hw-transport-http ledgerjs npm
@ledgerhq/hw-transport-mocker pnpm ljs:hw-transport-mocker ledgerjs npm
@ledgerhq/hw-transport-node-ble pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-node-hid pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-node-hid-noevents pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-node-hid-singleton pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-node-speculos pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-node-speculos-http pnpm ljs:hw-transport-node ledgerjs npm
@ledgerhq/hw-transport-web-ble pnpm ljs:hw-transport-web ledgerjs npm
@ledgerhq/hw-transport-webhid pnpm ljs:hw-transport-webhid ledgerjs npm
@ledgerhq/hw-transport-webusb pnpm ljs:hw-transport-webusb ledgerjs npm
@ledgerhq/logs pnpm ljs:logs ledgerjs npm
@ledgerhq/react-native-hid pnpm ljs:react-native-hid ledgerjs npm
@ledgerhq/react-native-hw-transport-ble pnpm ljs:react-native-hw ledgerjs npm
@ledgerhq/types-cryptoassets pnpm ljs:types-cryptoassets ledgerjs npm
@ledgerhq/types-devices pnpm ljs:types-devices ledgerjs npm
@ledgerhq/types-live pnpm ljs:types-live ledgerjs npm
---- ----- ----- -------
@ledgerhq/icons-ui pnpm ui:icons ui npm
@ledgerhq/native-ui pnpm ui:native ui npm
@ledgerhq/react-ui pnpm ui:react ui npm
@ledgerhq/ui-shared pnpm ui:shared ui npm

/tools - Tools

⚠️ Tools are meant to be used internally and are undocumented for the most part.

A tool can be a github action, a shell script or a piece of JavaScript code that is used throughout this repository.

Contributing

Please check the general guidelines for contributing to Ledger Live projects: CONTRIBUTING.md.

Each separate project may also contain specific guidelines inside its own folder.

In the meantime here are some important highlights:

  • Follow the git workflow, prefix your branches and do not create unneeded merge commits.
  • Be mindful when creating Pull Requests, specify the reason of the change clearly and write tests if needed.
  • Ledger Applications are mostly accepting bugfix contributions. For features we may reject them based on the fact that they do not fit our roadmap or our long-term goals.

Nightly Releases

Every night a github action merges the develop branch into the nightly branch.

For more information on the nightly releases, have a look at our wiki.

Ledger Live Desktop

  • Every commit triggers a workflow that will build and attach the application binaries to the run.
  • For Ledger Employees: Nightly releases are built every night under the protected ledger-live-build repository.

Ledger Live Mobile

Libraries

Nightly versions of library packages are pushed every night to npm.

To install a nightly library use the @nightly dist-tag.

npm i @ledgerhq/live-common@nightly

License

Please check each project LICENSE file, most of them are under the MIT license.

More Repositories

1

ledger-live-desktop

⛔️ DEPRECATED - Ledger Live (Desktop)
JavaScript
954
star
2

ledgerjs

⛔️ MOVED to monorepo "ledger-live"
TypeScript
574
star
3

ledger-live-mobile

⛔️ DEPRECATED - Ledger Live (Mobile)
JavaScript
381
star
4

ledger-nano-s

Ledger Nano S, a personal security device from Ledger (blockchain / bitcoin / ethereum / FIDO)
277
star
5

app-monero

Monero wallet application for Ledger Nano S & X
Python
267
star
6

app-ethereum

Ethereum wallet application for Ledger devices
C
178
star
7

ledger-wallet-chrome

Ledger Wallet Chrome application
JavaScript
162
star
8

satstack

Bitcoin full node with Ledger Live
Go
148
star
9

ledger-javacard

Ledger Unplugged - Java Card implementation of Ledger Bitcoin Hardware Wallet
Java
140
star
10

ledger-live-common

⛔️ DEPRECATED - Common ground for the Ledger Wallet apps
TypeScript
135
star
11

speculos

Ledger Nano/Blue apps emulator
C
129
star
12

app-bitcoin

Bitcoin wallet application for Ledger Blue and Nano S
C
118
star
13

blue-loader-python

Python Loader for Ledger Blue (all), Nano S (all) and Nano X (developer units)
Python
114
star
14

openpgp-card-app

OpenPGP Card Application
C
110
star
15

nanos-secure-sdk

Secure (ST31) SDK for Ledger Nano S
C
94
star
16

app-bitcoin-new

Modern Bitcoin Application based on PSBT and Descriptors
C
93
star
17

ledger-wallet-api

High level API to the Ledger Wallet Chrome app
HTML
82
star
18

lib-ledger-core

C++
79
star
19

app-ssh-agent

Simple SSH and GPG agent for Ledger Blue and Nano S
C
78
star
20

udev-rules

udev rules to support Ledger devices on Linux
Shell
76
star
21

app-passwords

Password Manager application for Ledger Blue and Nano S
C
74
star
22

ledger-wallet-ripple

JavaScript
65
star
23

ledger-u2f-javacard

Java Card FIDO U2F authenticator for Ledger Unplugged
Java
63
star
24

btchip-python

Ledger HW.1 Python API
Python
60
star
25

ledger-wallet-ethereum-chrome

Ledger Wallet Ethereum Chrome application
JavaScript
55
star
26

ledger-sample-apps

Sample Applications for Ledger Nano S and Ledger Blue
C
54
star
27

ledgerjs-examples

LedgerJS examples
JavaScript
53
star
28

ledger-manager-chrome

Ledger Manager Chrome application
Scala
50
star
29

android-u2f-bridge

Generic support for USB U2F tokens on Android
Java
49
star
30

ledger-dotnet-api

.NET API for Ledger
C#
48
star
31

xpub-scan

Tool to perform master public key analysis
TypeScript
45
star
32

ledger-blue

Ledger Blue, a personal security device from Ledger (blockchain / bitcoin / ethereum / FIDO)
41
star
33

ledger-device-rust-sdk

Rust SDK for Ledger device applications
Rust
38
star
34

wallet-api

Wallet API Monorepo
TypeScript
38
star
35

ledgerctl

A library to control Ledger devices
Python
37
star
36

bolos-enclave

BOLOS community enclave for SGX & simulator
C
34
star
37

ledger-wallet-ios

Ledger Wallet iOS application
Swift
34
star
38

app-u2f

FIDO U2F Application for Ledger Blue and Nano S
C
33
star
39

app-boilerplate

Boilerplate application for Ledger Nano S/X
C
33
star
40

recover-whitepaper

33
star
41

developer-portal

MDX
32
star
42

app-boilerplate-rust

Rust boilerplate application for Ledger Nano S/S+/X
Python
31
star
43

bolos-tee

Implementation of Ledger BOLOS for TEE applications
C
29
star
44

ledger-dev-doc

DEPRECATED - please use https://github.com/LedgerHQ/developer-portal
Python
28
star
45

nanos-ui

UI application for Ledger Nano S
C
26
star
46

blue-devenv

DEPRECATED - Development Environment for Ledger Blue and Nano S
26
star
47

OUTDATED_ledger-wallet-android

OUTDATED – for Ledger Live mobile, the correct repository is here =>
Scala
26
star
48

solidity-exercise

A RPG multiplayer game that will be used for interviews and internal workshops.
Solidity
22
star
49

app-streaming

Develop apps without any constraints
C
22
star
50

ledger-app-builder

Docker image to compile app for the Ledger Nano S.
Dockerfile
22
star
51

ledger-secure-os

C
20
star
52

rust-app-demo

(DEPRECATED) Proof of concept setup for a Rust App on Nano
Rust
19
star
53

nanox-secure-sdk

This repository has been replaced by https://github.com/LedgerHQ/ledger-secure-sdk/. Please read the new repository README for more information.
C
19
star
54

app-xrp

Ripple wallet application for Ledger Blue and Nano S
C
18
star
55

connect-kit

TypeScript
16
star
56

rust-app-password-manager

Rust
15
star
57

ui

⛔️ MOVED to monorepo "ledger-live"
TypeScript
15
star
58

app-starknet

Official Ledger Starknet application (Rust implementation)
Python
15
star
59

ledger-wallet-webtool

A utility application used to deploy utility functions to Ledger users
JavaScript
14
star
60

ledger-fresh-management

This is where product topics are discussed for Ledger Fresh
14
star
61

nanos-nonsecure-firmware

Non Secure (STM32) Firmware for Ledger Nano S
C
14
star
62

cargo-ledger

(Moved in the ledger device rust SDK --> https://github.com/LedgerHQ/ledger-device-rust-sdk). Load code on a Ledger device with a `cargo` subcommand
Rust
14
star
63

live-app-sdk

TypeScript
13
star
64

ledger-live-wagmi-connector

Wagmi JS lib Connector for Ledger Live Dapp Browser
TypeScript
13
star
65

lascar

Mirror of lascar (https://github.com/Ledger-Donjon/lascar)
Python
13
star
66

app-starknet-zondax

Starknet application for Ledger Nano S, SP, X
Rust
13
star
67

moosig

Fun with MuSig2 and Ledger devices 🎵
Python
13
star
68

nanos-nonsecure-firmware-releases

Non Secure (STM32) Firmware releases for Ledger Nano S
12
star
69

blue-secure-sdk

Secure (ST31) SDK for Ledger Blue
C
12
star
70

web3allowlist

Allowlist data for Web3Checks
Python
12
star
71

lib-ledger-core-node-bindings

C++
12
star
72

btchip-c-api

Ledger HW.1 C APIs
C
12
star
73

resigner

The hottest miniscript signing server
Python
12
star
74

innovation-contracts-solidity

Collection of smart contracts written in Solidity
Solidity
11
star
75

app-plugin-boilerplate

C
10
star
76

ledger-nano-piv

Hackathon project, not production ready (yet)
Rust
9
star
77

ledger-repl

DEPRECATED, this project moved to https://github.com/LedgerHQ/ledger-live – this repository will be archived once we migrated the website too
JavaScript
9
star
78

btchip-doc

Ledger HW.1 firmware documentation
HTML
9
star
79

ledger-javacard-eligibility

Java Card applet to test features and performance of a Hierarchical Deterministic Bitcoin Hardware Wallet implementation
Java
9
star
80

ledger-asset-dapps

Python
9
star
81

device-sdk-ts

✨ A library enabling applications to communicate with Ledger devices.
TypeScript
8
star
82

app-age

Rust
8
star
83

passwords-backup

JavaScript
8
star
84

ledger-starter-iso

Ledger Starter ISO recipe
Python
8
star
85

vanadium-legacy

Unlimited power for apps
C
8
star
86

lib-ledger-core-react-native-bindings

Java
8
star
87

ledger-app-otherdime

Offchain private key exchange as an attestation demonstration for Ledger Blue and Nano S
C
8
star
88

app-recovery-check

C
7
star
89

app-exchange

Exchange application to SWAP and SELL with Ledger Live
C
7
star
90

CTF

C
7
star
91

ragger

Small wrapper around Speculos, LedgerWallet & LedgerComm to ease instrumentation
Python
7
star
92

app-security-key

C
7
star
93

wallet-connect-live-app

TypeScript
7
star
94

btchip-js-api

Ledger HW.1 JavaScript APIs
JavaScript
7
star
95

starknet-wallet-contracts

Python
7
star
96

ethereum-plugin-sdk

C
7
star
97

bitcoin-lib-grpc

A modular gRPC service to interact with the Bitcoin protocol. ₿
Go
7
star
98

blue-nonsecure-firmware

Non Secure (STM32) Firmware for Ledger Blue
C
7
star
99

ledger-fresh-web

Frontend of Ledger fresh, our open source web wallet based on the account abstraction
TypeScript
7
star
100

ledgercomm

Library to communicate with Ledger Nano S/X and Speculos
Python
7
star