Learn Wix-corvid - 10 Code Examples & CST Typing Practice Test
Wix Velo (formerly Corvid) is a full-stack development platform built into Wix, allowing developers to create dynamic web applications with custom interactions, databases, and backend logic using JavaScript and Wix APIs.
Learn WIX-CORVID with Real Code Examples
Updated Nov 26, 2025
Code Sample Descriptions
Simple Backend API with Corvid
// backend/hello.jsw
export function sayHello(name) {
return `Hello, ${name}! Welcome to my Wix site.`;
}
// Example frontend usage:
import { sayHello } from 'backend/hello.jsw';
$w.onReady(function () {
sayHello('Alice').then((msg) => {
console.log(msg);
});
});
A backend function in Wix Corvid that returns a greeting message as an HTTP endpoint.
Simple Dataset Query Example
// backend/getItems.jsw
import wixData from 'wix-data';
export function fetchAllItems() {
return wixData.query('MyCollection').find();
}
$w.onReady(function () {
fetchAllItems().then((results) => {
console.log(results.items);
});
});
Fetches all items from a dataset and logs them.
Insert Item into Collection
// backend/addItem.jsw
import wixData from 'wix-data';
export function addNewItem(title) {
return wixData.insert('MyCollection', { title });
}
$w.onReady(function () {
addNewItem('Test Item').then((item) => console.log(item));
});
Adds a new item to a Wix collection.
Update Item in Collection
// backend/updateItem.jsw
import wixData from 'wix-data';
export function updateItem(id, newTitle) {
return wixData.update('MyCollection', { _id: id, title: newTitle });
}
$w.onReady(function () {
updateItem('abc123', 'Updated Title').then(console.log);
});
Updates an existing item in a collection by ID.
Delete Item from Collection
// backend/deleteItem.jsw
import wixData from 'wix-data';
export function deleteItem(id) {
return wixData.remove('MyCollection', id);
}
$w.onReady(function () {
deleteItem('abc123').then(() => console.log('Deleted'));
});
Deletes an item from a collection by ID.
Send Email Example
// backend/sendEmail.jsw
import wixCRM from 'wix-crm-backend';
export function sendWelcomeEmail(email) {
return wixCRM.emailContact('WelcomeTemplate', email);
}
$w.onReady(function () {
sendWelcomeEmail('test@example.com').then(() => console.log('Email sent'));
});
Sends an email using Wix Email API.
Simple HTTP Function
// backend/httpHello.jsw
import { ok, notFound } from 'wix-http-functions';
export function get_hello(request) {
return ok({
body: 'Hello from Wix HTTP Function'
});
}
Exposes a backend function as an HTTP endpoint in Wix.
Fetch Data with Promise
// backend/fetchData.jsw
import wixData from 'wix-data';
export function getItemsAsync() {
return new Promise((resolve, reject) => {
wixData.query('MyCollection').find()
.then(res => resolve(res.items))
.catch(err => reject(err));
});
}
$w.onReady(function () {
getItemsAsync().then(console.log);
});
Uses a Promise to fetch data from a collection asynchronously.
Create Custom Object
// backend/customObject.jsw
export function getCustomData() {
return { message: 'Hello from Wix backend', time: new Date() };
}
$w.onReady(function () {
import { getCustomData } from 'backend/customObject.jsw';
console.log(getCustomData());
});
Creates and returns a custom object to frontend.
Backend Validation Function
// backend/validate.jsw
import wixData from 'wix-data';
export function validateAndSave(item) {
if(!item.title) throw new Error('Title is required');
return wixData.insert('MyCollection', item);
}
$w.onReady(function () {
validateAndSave({ title: 'Test' }).then(console.log).catch(console.error);
});
Validates input data in the backend before saving to collection.
Frequently Asked Questions about Wix-corvid
What is Wix-corvid?
Wix Velo (formerly Corvid) is a full-stack development platform built into Wix, allowing developers to create dynamic web applications with custom interactions, databases, and backend logic using JavaScript and Wix APIs.
What are the primary use cases for Wix-corvid?
Creating dynamic pages from database collections. Custom forms and workflows. E-commerce functionality enhancements. Integrating third-party APIs. Building web apps with backend logic on Wix
What are the strengths of Wix-corvid?
Rapid prototyping within Wix. No external hosting required. Integrated database support. Supports full-stack JavaScript development. Easy integration with Wix ecosystem (apps, stores, bookings)
What are the limitations of Wix-corvid?
Limited to Wix platform. Server-side logic constrained by Wix serverless environment. Performance may be limited for very large-scale apps. Cannot fully customize hosting or server infrastructure. Some API limits per site or user
How can I practice Wix-corvid typing speed?
CodeSpeedTest offers 10+ real Wix-corvid code examples for typing practice. You can measure your WPM, track accuracy, and improve your coding speed with guided exercises.