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

# Developer Platform

<h2 align="center">Learn NEAR Smart Contracts</h2>

<p align="center">Run code in your browser. Deploy to TestNet in one click.</p>

<p align="center"><a href="https://near.peersurf.xyz/" class="button primary">Contact Team</a> <a href="https://near.peersurf.xyz/examples" class="button secondary" data-icon="rocket-launch">Play Ground </a></p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-vscode" style="color:$primary;">:vscode:</i></h4></td><td><h4>60+ Examples</h4></td><td>Write, edit, and run NEAR smart contracts directly in your browser.</td><td><a href="/spaces/oeDCZNUmXE3473QGL02K">/spaces/oeDCZNUmXE3473QGL02K</a></td><td><a href="/files/oqzgLlBUGmrsDEYMKfcG">/files/oqzgLlBUGmrsDEYMKfcG</a></td></tr><tr><td><h4><i class="fa-head-side-gear" style="color:$primary;">:head-side-gear:</i></h4></td><td><h4>AI Assistant</h4></td><td>Get instant explanations, bug fixes, and code suggestions.</td><td><a href="/spaces/oeDCZNUmXE3473QGL02K">/spaces/oeDCZNUmXE3473QGL02K</a></td><td><a href="/files/IaUMODRBBSBL8eUaPX09">/files/IaUMODRBBSBL8eUaPX09</a></td></tr><tr><td><h4><i class="fa-gauge-low" style="color:$primary;">:gauge-low:</i></h4></td><td><h4>One-Click Deploy</h4></td><td>Deploy your contracts to NEAR TestNet with a single click.</td><td><a href="/spaces/GXJk7oqAq4c46Tul3hrQ">/spaces/GXJk7oqAq4c46Tul3hrQ</a></td><td><a href="/files/ExpVnH2LsN2zVxfIF5MN">/files/ExpVnH2LsN2zVxfIF5MN</a></td></tr></tbody></table>

{% columns %}
{% column %}

### Get started in 5 minutes

Setting up your first contract should be the easiest part of getting started. With clear instructions, copy-paste-ready examples, and quick deployment, you’ll be up and running in minutes—not hours.

No guesswork, no complexity—just your first successful call, fast.

<a href="/pages/JsKd452Nu8XTrHz68zaF" class="button primary" data-icon="rocket-launch">Get started</a>&#x20;
{% endcolumn %}

{% column %}
{% code title="index.js" overflow="wrap" %}

```javascript
import { NearBindgen, view } from "near-sdk-js";

@NearBindgen({})
class Contract {
  constructor({ greeting } = { greeting: "hello" }) {
    this.greeting = greeting;
  }

  @view({})
  get_greeting() {
    return this.greeting;
  }
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="/files/zlbGDqdRBY9e4VySvZqd" alt=""><figcaption><p>Examples Playground</p></figcaption></figure>
{% endcolumn %}

{% column %}

### Learn more about the platform

Read guides, watch tutorials, and learn more about working with the developer platform and deploying your custom smart contract with it.

<a href="https://www.youtube.com/watch?v=3f7OToCTpQ0" class="button primary" data-icon="book-open">Guides</a>&#x20;
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join a community of developers</h2>

<p align="center">Join our Discord community and follow us in X, in just a few steps.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our Discord community to post questions, get help, and share resources with like-minded developers.</td><td><a href="https://discord.gg/vY7tRngv" class="button secondary">Join Discord</a></td><td><a href="/files/HsZavOu4hIfI9ktflf1r">/files/HsZavOu4hIfI9ktflf1r</a></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Our product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.</td><td><a href="https://github.com/Learn-Near-AI" class="button secondary">Submit a PR</a></td><td><a href="/files/sxMkvyRU8qxyE993THhP">/files/sxMkvyRU8qxyE993THhP</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://nearbyexample.gitbook.io/home/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
