• Stars
    star
    940
  • Rank 47,453 (Top 1.0 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated 24 days ago

Reviews

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

Repository Details

JavaScript libraries for identity, auth, storage and transactions on the Stacks blockchain.

Stacks.js Test Action Badge Monorepo Version Label

This repo is home to most of the Stacks.js packages, which provide the building blocks to work with the Stacks blockchain from JavaScript/TypeScript.

Connecting Wallets

  • @stacks/connect Connect web application to Stacks wallet browser extensions (separate repo).

Stacks Primitives

  • @stacks/transactions Construct, decode transactions and work with Clarity smart contracts on the Stacks blockchain.
  • @stacks/wallet-sdk Library for building wallets, managing accounts, and handling keys for the Stacks blockchain.
  • @stacks/storage Store and fetch files with Gaia, the decentralized storage system.
  • @stacks/encryption Encryption functions used by stacks.js packages.
  • @stacks/auth Construct and decode authentication requests for Stacks apps.
  • @stacks/profile Functions for manipulating user profiles.
  • @stacks/network Network and API library for working with Stacks blockchain nodes.
  • @stacks/common Common utilities used by stacks.js packages.

Native Smart Contract Interaction

Others

  • @stacks/cli Command line interface to interact with auth, storage and Stacks transactions.
  • @stacks/keychain DEPRECATED: replaced by @stacks/wallet-sdk

See the respective README in each package directory for installation instructions and usage.


Documentation

Documentation and library references for the stacks.js packages are located at stacks.js.org.

Migrating from previous versions

To migrate your app from blockstack.js to Stacks.js follow the steps in the respective migration guide.

Bugs and feature requests

If you encounter a bug or have a feature request, we encourage you to follow the steps below:

  1. Search for existing issues: Before submitting a new issue, please search existing and closed issues to check if a similar problem or feature request has already been reported.
  2. Open a new issue: If it hasn't been addressed, please open a new issue. Choose the appropriate issue template and provide as much detail as possible, including steps to reproduce the bug or a clear description of the requested feature.
  3. Evaluation SLA: Our team reads and evaluates all the issues and pull requests. We are avaliable Monday to Friday and we make a best effort to respond within 7 business days.

Please do not use the issue tracker for personal support requests or to ask for the status of a transaction. You'll find help at the #support Discord channel.

Contributing & Development

Github issues marked help-wanted are great places to start. Please ask in a github issue or discord before embarking on larger issues that aren't labeled as help wanted or adding additional functionality so that we can make sure your contribution can be included!

Environment setup

To setup the development environment for this repository, follow these steps:

Prerequisites: NodeJS & npm are required (v18.x.x is currently recommended)

  1. Clone this package.
  2. Run npm install to install dependencies
  3. Run npm run build to build packages
  4. Run npm run test to run tests

Some tests may contain logging of errors and warnings. This should not be confused with failing tests. Make sure the last lines of npm run test show lerna success - @stacks/... for every package.

Code of Conduct

Please read our Code of conduct since we expect project participants to adhere to it.

Community

Join our community and stay connected with the latest updates and discussions:

More Repositories

1

clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
Rust
292
star
2

wallet

The most popular and trusted wallet for apps built on Bitcoin
TypeScript
248
star
3

ordinals-api

Bitcoin Ordinals API
TypeScript
191
star
4

desktop-wallet

Stacks Walletโ€”Send and receive STX tokens on the Stacks Blockchain.
TypeScript
174
star
5

ordhook

Build indexers, standards and protocols on top of Ordinals and Inscriptions (BRC20, etc).
Rust
164
star
6

stacks-blockchain-api

API for the Stacks blockchain
TypeScript
156
star
7

chainhook

Extract transactions from Stacks and Bitcoin and build event driven re-org resistant indexers and databases.
Rust
137
star
8

explorer

Explore transactions and accounts on the Stacks blockchain. Clone any contract and experiment in your browser with the Explorer sandbox.
TypeScript
134
star
9

connect

A library for building excellent user experiences with Stacks.
SCSS
75
star
10

todos

A simple todos app built with Stacks
JavaScript
71
star
11

btc-us-website

Svelte
50
star
12

stacks-subnets

Stacks Subnets: a layer-2 scaling solution for Stacks, intended for high-throughput, low-latency workloads
Rust
49
star
13

ui

The Blockstack design system implemented with react, styled-components, and styled-system.
TypeScript
34
star
14

ordinals-explorer

Explore Ordinals inscriptions, using the Hiro Ordinals API powered by Chainhooks.
TypeScript
32
star
15

docs

Hiro developer documentation website
JavaScript
31
star
16

heystack

TypeScript
16
star
17

stacks.js-starters

Quick-start frontend projects using Stacks.js
JavaScript
14
star
18

lockstacks

TypeScript
13
star
19

clarity-notebook

A set of Jupyter notebooks for getting started with Clarity.
Jupyter Notebook
12
star
20

stacks-pyth-bridge

Retrieve trading pairs (BTC-USD, STX-USD, etc) from Clarity smart contracts.
Clarity
10
star
21

rx

Reactive Extensions client for the Stacks Blockchain
TypeScript
8
star
22

stacks-e2e-testing

TypeScript
7
star
23

token-metadata-api

Stacks Token Metadata API
TypeScript
7
star
24

stacks-encoding-native-js

Encoding & decoding functions for the Stacks blockchain exposed as a fast native Node.js addon
Rust
6
star
25

clarity-examples

JavaScript
6
star
26

MIT-Bitcoin-Expo-2022-Hiro-Hackathon-Resources

Some resources and educational materials to get hackers started at the MIT Bitcoin Expo 2022
5
star
27

stacks-scout

TypeScript
5
star
28

orchestra-archive

Development Studio designed for the Stacks blockchain. Bleeding edge prototype.
Rust
5
star
29

clarity-lsp

Rust
5
star
30

nft-nyc-exclusive-app

Exclusive Bitcoin NFT minting app for NFT.NYC
TypeScript
5
star
31

community-meeting

Monthly developer calls between the Hiro product teams and the developers building on Stacks
4
star
32

clarity-starter

Clarity
4
star
33

bitcoin-docker

Dockerize bitcoind
Shell
4
star
34

multisig-stx-btc

A webscript for generating, signing, decoding multisig STX operations in the STX-over-BTC wire format
JavaScript
4
star
35

gaia-docker

Shell
3
star
36

charts

Hiro Systems Helm Charts
Smarty
3
star
37

api-toolkit

API toolkit
TypeScript
3
star
38

clarity-factory

TypeScript
3
star
39

debug_types

Rust
3
star
40

stacks-regtest-env

Easily run a Stacks node in Kypton mode with a Bitcoind regtest instance
Shell
3
star
41

stacks-devnet-api

The Stacks Devnet API runs a server that can be used to deploy, delete, manage, and make requests to Stacks Devnets run on Kubernetes.
Rust
3
star
42

lunar-hirover

Rust
3
star
43

rfc-clarity-lang-converter

2
star
44

stacks-repl

JavaScript
2
star
45

clarity.tmbundle

A repository with Clarity syntax-highlighting grammar files
2
star
46

eslint-config

A set of re-usable ESLint configuration for Blockstack PBC projects
JavaScript
2
star
47

stacks-adoption-report

This project is used to generate a list of Stacks-related projects
JavaScript
2
star
48

stacks-billboard

TypeScript
2
star
49

vitest-environment-clarinet

JavaScript
2
star
50

gh-actions-example

Dockerfile
1
star
51

prettier-config

@stacks Prettier config
JavaScript
1
star
52

app.co-api

API Server for app.co
JavaScript
1
star
53

hiro-kit.clar

Hiro Kit: collection of utility functions for Clarity contracts
Clarity
1
star
54

clear-waters

A Clarity Learning Game
Clarity
1
star
55

clar2wasm

Compile Clarity to WebAssembly
1
star
56

rfc-web3-oauth

1
star
57

stacks-event-replay

Python
1
star
58

examples

A collection of example apps showcasing /-/iro products
TypeScript
1
star
59

hiro-hacks-template

Starter template for Hiro Hacks
TypeScript
1
star
60

stacks-rpc-proxy

TypeScript
1
star
61

subnet-demo-app

The project demonstrates some of the capabilities of subnets through a simple NFT marketplace where minting, listing and offers happen on L2.
TypeScript
1
star