> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: About the Wix JavaScript SDK

## Article: Home Page

## Article Link: https://dev.wix.com/docs/sdk/articles/get-started/about-the-wix-java-script-sdk.md

## Article Content:

# JavaScript SDK

The Wix JavaScript SDK gives you access to Wix data and functionality from JavaScript code, and lets you interact with Wix-native environments such as the site dashboard and Wix Studio. For example, you can use the `essentials` core module to work with Wix authentication, or the `dashboard` host module to open a modal in the site dashboard.

> **Share your feedback**<br/>
> Your feedback helps us improve the development experience! Join the [Devs on Wix](https://discord.gg/GhdmDN926z) Discord community to discuss features, give feedback, and connect with our growing community of developers.


## What's in this SDK reference

The SDK reference contains items that are specific to the JavaScript SDK and includes the following: 

- **[Core modules](https://dev.wix.com/docs/sdk/core-modules/about-core-modules.md)**: Essential functionality for interacting with the Wix platform, such as authentication and client setup.
- **[Host modules](https://dev.wix.com/docs/sdk/host-modules/about-host-modules.md)**: APIs that allow you to interact with a Wix site when writing code for frontend environments such as the dashboard, editor, or site. 
- **[Frontend modules](https://dev.wix.com/docs/sdk/frontend-modules/about-frontend-modules.md)**: Client-side APIs for interacting with Wix sites and their features from the browser, in site code on Wix Studio and Wix Editor sites.
- **[Data Items SDK](https://dev.wix.com/docs/sdk/data-items-sdk/data/items/introduction.md)**: Backend APIs for working with data items.
- **[Site SDK](https://dev.wix.com/docs/sdk/site-sdk/introduction.md)**: Frontend APIs for code that runs on Studio Two sites.

Throughout this reference, you'll find examples for calling each method depending on [development path and project type](#where-the-javascript-sdk-can-be-used). 

## Where the JavaScript SDK can be used

<div style="display: flex; flex-wrap: wrap; width: 100%;">
    <div style="flex: 1; box-sizing: border-box; min-width: 200px; border-style: solid; border-width: 1px; border-radius: 5px; padding: 12px; margin: 8px; border-color: #DFE5EB; background-color: #E9F0FE;">
        <div style=" display: flex; margin-bottom: 4px; font-weight: 700; font-size: 16px; line-height: 24px;">Extend Websites</div>
        <div style=" display: flex; margin-bottom: 4px; text-wrap: wrap; width:100%; font-weight: 400; font-size: 14px; line-height: 21px;">Customize a Wix site's functionality by creating an interactive UI, working with data-driven content, and integrating with 3rd-party services.</div>
        <div style=" display: flex; font-weight: 400; font-size: 14px; line-height: 24px;"><a href="fallback::https://dev.wix.com/docs/build-apps">Learn.md More</a></div>
    </div>
<div style="flex: 1; box-sizing: border-box; min-width: 200px;  border-style: solid; border-width: 1px; border-radius: 5px; padding: 12px;  margin: 8px; border-color: #DFE5EB; background-color: #E9F0FE">
        <div style=" display: flex; margin-bottom: 4px; font-weight: 700; font-size: 16px; line-height: 24px;">Build Wix Apps</div>
        <div style=" display: flex; margin-bottom: 4px; text-wrap: wrap; width:100%; font-weight: 400; font-size: 14px; line-height: 21px;">Develop an app for Wix's App Market, enabling users to extend their site's functionality.</div>
        <div style=" display: flex; font-weight: 400; font-size: 14px; line-height: 24px;"><a href="fallback::https://dev.wix.com/docs/build-apps">Learn.md More</a></div>
    </div>
<div style="flex: 1; box-sizing: border-box; min-width: 200px;  border-style: solid; border-width: 1px; border-radius: 5px; padding: 12px;  margin: 8px; border-color: #DFE5EB; background-color: #E9F0FE">
        <div style=" display: flex; margin-bottom: 4px; font-weight: 700; font-size: 16px; line-height: 24px;">Create Headless Experiences</div>
        <div style=" display: flex; margin-bottom: 4px; text-wrap: wrap; width:100%; font-weight: 400; font-size: 14px; line-height: 21px;">Build your own frontend on Wix functionality using any tech stack.</div>
        <div style=" display: flex; font-weight: 400; font-size: 14px; line-height: 24px;"><a href="fallback::https://dev.wix.com/docs/go-headless">Learn.md More</a></div>
    </div>
</div>

<p/>


## SDK packages

The SDK includes a universal npm package `@wix/sdk` which manages authentication and communication with the Wix platform.

Each module also has its own npm package, such as `@wix/essentials`, `@wix/dashboard`, `@wix/editor`, `@wix/site`, `@wix/web-methods`, and `@wix/data`.

[Self-managed apps](https://dev.wix.com/docs/api-reference/articles/platform-overview/about-self-managed-apps.md) and headless sites must initialize and use a [Wix client](https://dev.wix.com/docs/sdk/core-modules/sdk/wix-client.md) to call SDK methods.

To work with a module in a self-managed app or headless site, you need both the universal SDK package and the package for the module you wish to work with.
For example, to work with Data Items, you need both `@wix/sdk` and `@wix/data`.

These packages are fully typed, making the structure of parameters and fields predictable and easy to work with. Package versioning follows [SemVer](https://semver.org/) convention, for convenient dependency management.

## Authentication and permissions

Depending on the context of your code, you may need to [elevate](https://dev.wix.com/docs/sdk/core-modules/essentials/auth.md) the method you want to call.

If you're developing a Wix app, you need to add permissions for the APIs you're calling in the app dashboard. Read more about [permissions](https://dev.wix.com/docs/build-apps/develop-your-app/auth/permissions/about-permissions.md).

## Use these docs with AI tools

Wix developer documentation is available in machine-readable formats for use with AI coding assistants and LLMs:

- **llms.txt index:** Browse a structured index of all documentation at [dev.wix.com/docs/llms.txt](https://dev.wix.com/docs/llms.txt.md).
- **Markdown format:** Append `.md` to any documentation page URL to retrieve a Markdown version of that page.
- **Page menu:** Use the "Ask Assistant" dropdown on any documentation page to copy the page as Markdown or get a direct link to the Markdown version.

---

Your feedback is important to us.

[Contact support](https://www.wix.com/support-chatbot) to tell us about your experience or request missing APIs. Open a ticket and we'll get back to you within 72 hours.