
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
First, install Typescript in your project (for more information see Why Typescript?):
npm i typescript --save-dev
Then, install the SDK's npm package:
npm i dcl-sdk --save-dev
Specify a build.json file, this is used to easily configure build steps:
[
{
"name": "Compile systems",
"kind": "Webpack",
"file": "./scene.tsx",
"target": "webworker"
}
]
Finally, add a new command to your npm scripts:
"scripts": {
"build": "dcl-scripting build.json"
}
Run that command to transpile your Typescript files on-demand.
From here on you can use the CLI to deploy your scene.
Typescript is a superset of Javascript and allows Object Oriented Programming as well as type declaration, Both this featues are key when aiming to provide a good developer experience. Features like autocomplete and type-checking speed up development times and allow for the creation of a solid codebase.
If you wish to use another tool or language, you are free to do so as long as the end result is a single Javascript file (scene.js). Keep in mind that all provided type declarations are Typescript only, so other languages and transpilers will lack official support.
To use JSX syntax inside your script you need to import the following module:
import { createElement } from 'dcl-sdk'
And use it like:
// @inject("EntityController") entityController: EntityController | null = null;
async render() {
await this.entityController!.render(<a-box position="0 0 0" />)
}
All these APIs are experimental and are bound to change before the stable release of the World
Exposes information about the player's position inside an Estate.
Exposes methods that allow scripts to interact with entities in various ways.
Contains logic to require and perform ethereum transactions from within a script.
Contains the definition of a parcel as obtained from the blockchain.
Exposes methods for playing sounds in various maners.
Exposes methods to access information provided by Metamask.
This code is distributed under the Apache 2.0 license
FAQs
Decentraland SDK
The npm package dcl-sdk receives a total of 3 weekly downloads. As such, dcl-sdk popularity was classified as not popular.
We found that dcl-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.