> For the complete documentation index, see [llms.txt](https://8bit-1.gitbook.io/solibrary/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://8bit-1.gitbook.io/solibrary/getting-started-using-javascript-1.md).

# Getting Started using JavaScript

Thanks to the [Umi framework](https://github.com/metaplex-foundation/umi), it ships without many opinionated dependencies and, thus, provides a lightweight library that can be used in any JavaScript project.

To get started, you'll need to [install the Umi framework](https://github.com/metaplex-foundation/umi/blob/main/docs/installation.md) and the Core Candy Machine JavaScript library.

```
npm install \
  @metaplex-foundation/umi \
  @metaplex-foundation/umi-bundle-defaults \
  @metaplex-foundation/mpl-core-candy-machine
```

Next, you may create your `Umi` instance and install the `mplCore` plugin like so.

```
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults'
import { 
  mplCandyMachine as mplCoreCandyMachine 
} from "@metaplex-foundation/mpl-core-candy-machine";

// Use the RPC endpoint of your choice.
const umi = createUmi('http://127.0.0.1:8899').use(mplCoreCandyMachine())
```

Then you want to tell Umi which wallet to use. This can either be a [keypair](https://developers.metaplex.com/umi/connecting-to-umi#connecting-w-a-secret-key) or the [solana wallet adapter](https://developers.metaplex.com/umi/connecting-to-umi#connecting-w-wallet-adapter).

That's it, you can now start interacting with the `Core Candy Machine` program.
