# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://urchin.gitbook.io/overview/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
