# trailheadapps/lwc-recipes

A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform

Repository: https://github.com/trailheadapps/lwc-recipes
Canonical: https://ross.abutalabs.com/products/lwc-recipes
Homepage: https://developer.salesforce.com
Language: JavaScript
License: CC0-1.0
License Family: permissive
Topics: salesforce, lightning-web-components, apex, jest
Last push: 2026-08-01T22:20:40+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 2820, "days_push": 32, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2878, forks 3249 (observed 2026-08-28T04:07:27.495867+00:00)

## What it is
A sample application of easy-to-digest code examples for Lightning Web Components on the Salesforce Platform. Each recipe demonstrates a specific task with minimal, best-practice code, from 'Hello World' to data access and third-party libraries.

## Use cases
- learn lightning web components basics
- find example code for LWC data access
- see best practices for Salesforce component development
- get started with LWC and Apex integration
- explore Jest testing examples for LWC
- deploy a sample Salesforce app to a scratch org

## When to choose
- you are learning Lightning Web Components on Salesforce
- you want concise, best-practice code samples for specific LWC tasks
- you need a reference app for Trailhead projects

## When to avoid
- you need Lightning Web Components outside the Salesforce Platform (use lwc-recipes-oss)
- you need a production-ready application framework
- you are not working with Salesforce development

## Facets
- artifact type: learning-resource
- maturity: active
- function: ui-components, developer-tools, testing
- domain: web-development, frontend, tutorials, developer-tools
- platform: -
- tags: salesforce, lightning-web-components, apex, sample-app, code-examples, jest, web-server, nodejs

## Member repositories
- trailheadapps/lwc-recipes (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.495867+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:48:26.522439+00:00, confidence not recorded.
  - readme: https://github.com/trailheadapps/lwc-recipes (fetched 2026-08-28T04:07:27.495867+00:00, sha 11b564ecc45a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
