A namespace is a unique indicator of your app, in the format of:
The prefix is either your account name or your company name. The suffix usually indicates your app name.
You need a namespace to:
You don't need a namespace to:
Important Once you create a namespace you cannot change it.
There are two options for the prefix of your namespace. It can either start with your account name or with your company name.
Your account name is your Wix user name. If you are a Wix Partner, it's your Wix Partner account name. For this option, your namespace format is:
Your company name is defined in your Company Info in your app dashboard. Use this option if you plan to publish your app in the Wix App Market. For this option, your namespace format is:
Company name requirements for namespace
You can change the suffix of your namespace as you wish. Just follow these requirements:
To use your namespace for a collection, add the collection ID after the namespace, as shown here in the insert
function:
To import a public function from your app's code files, use this syntax:
import {yourFunctionName} from '@yourAccountName/yourAppName'
For example:
To import from backend files, use this syntax:
import {yourFunctionName} from '@yourAccountName/yourAppName-backend'
For example: