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

# Getting started

### Install

yarn `yarn add urchin-web3-cms`&#x20;

or npm `npm -i urchin-web3-cms`

Note: This example below also requires *solana/web3js* and *bs58 as dependencies*

### Create a simple blog template&#x20;

<pre class="language-javascript"><code class="lang-javascript">import urchin from 'urchin-web3-cms';
import {Keypair, Signer} from "@solana/web3.js";
import bs58 from ‘bs58’;

const handler = async () => {
  // associate your wallet
  const payer = Keypair.fromSecretKey(
<strong>    bs58.decode("&#x3C;funded solana wallet secret key as string>")
</strong>   );

  // init the urchin object
  const cms = urchin(
      {
        payer,
        cluster: 'devnet'
      });

  // create a template
<strong>  const cms.template.create([
</strong>    {
      title: "blog post"
      taxonomies: [],
      inputs: [{label: "blog title", type: "string", validation: {type: "text", min: 1, max: 100}}]
    }
  ]);

  // publish to blockchain
  await cms.process()
  
  // retrieve all templates
  const r = await cms.template.getAll();
  console.log("Found templates: ", r);
}
</code></pre>
