Sample Apps

Get inspired with open-source sample apps, explore reference code, and learn best practices.

Explore Salesforce code examples.

LWC Recipes

A collection of easy-to-digest code examples for Lightning Web Components (LWCs). Each demonstrates how to code a specific task in the fewest lines of code possible while following best practices. A View Source link takes you to the code in GitHub. From "Hello World" to data access and third-party libraries, there’s a recipe for that!

Coral Cloud Resorts

Sample hospitality application. Coral Cloud Resorts is a fictional resort that uses Agentforce, Data Cloud, and the Salesforce Platform to deliver highly personalized guest experiences. Explore ways to bring agents into business workflows, including new smart automation capabilities, content generation, and summarization.

Apex Recipes

A collection of easy-to-digest code examples demonstrating Apex best practices. Each recipe shows you how to code a specific common task while adhering to best practices. The UI allows you to browse the code, associated tests, and documentation about the recipes — all from within a convenient, in-org browser.

Dreamhouse

Sample real estate application. At Dreamhouse, a fictitious real estate company, brokers use the app to manage their properties and customers. They can also use it on the Salesforce mobile app to help manage their property portfolio. Regardless of your industry, this app shows you how to build rich, immersive user experiences with Lightning components.

LWC Recipes OSS

A collection of recipes (easy-to-digest code examples) for Lightning Web Components Open Source running on the Lightning Web Runtime (LWR). In these recipes, you’ll discover short implementation examples (30 lines of code or less) ranging from "Hello World" to integrating third-party JavaScript libraries.

E-Bikes

Sample retail application. E-Bikes, a fictitious electric bicycle manufacturer, uses the app to manage their products and reseller orders using a rich user experience. Explore the app’s integration with Experience Cloud and learn how to build rich user experiences with LWCs using different data access strategies.

Visualforce to LWC

A collection of best practice code examples to help you move from Visualforce to Lightning Web Components. Each example shows a typical Visualforce pattern and its equivalent LWC implementation. To make exploration easier, each example includes a View Source link that takes you right to the Visualforce or LWC code in GitHub.