# Frontend Development

## SecretJS

[Secret.js](https://secretjs.scrt.network/) a JavaScript SDK for writing applications that interact with the Secret Network blockchain. Key features include:&#x20;

* Written in TypeScript and provided with type definitions.
* Provides simple abstractions over core data structures.
* Supports every possible message and transaction type.
* Exposes every possible query type.
* Handles input/output encryption/decryption for Secret Contracts.
* Works in Node.js, modern web browsers and React Native.

You can find the full version of the docs [here](https://github.com/scrtlabs/secret.js/blob/master/test/permit.test.ts).&#x20;

### SecretJS Templates

Refer to the reference [SecretJS Templates](https://github.com/scrtlabs/SecretJS-Templates) to review code implementations of SecretJS such as:&#x20;

* Connecting to Secret Network
* Creating account using SecretJS
* Query Secret Network
* Submitting transactions
* Using contracts
* Wallets
* SNIP-20 tokens
* Consuming websocket contract events

### Fullstack dApp tutorial&#x20;

See [here](https://docs.scrt.network/secret-network-documentation/development/getting-started/fullstack-dapp-integration) for a fullstack dApp tutorial that uses SecretJS.&#x20;


---

# 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://docs.scrt.network/secret-network-documentation/development/frontend.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.
