
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@communities-webruntime/metadata-schema
Advanced tools
UI metadata schema specs for Lightning Web Runtime
Model the shape of your UI in JSON using a unified schema.
This project is currently only used by @communities-webruntime
and its corresponding validators.
Metadata-schema validates the shape of different types of JSON metadata for a LWR project.
The current supported schemas include:
base
(canonical metadata)communities
(declarative metadata)The metadata types include:
branding
routes
theme
view
To validate against the schema, import the MetadataValidator
:
import MetadataValidator from '@communities-webruntime/metadata-schema';
const schema = 'communities'; // name of the schema to validate against
const metadataType = 'routes'; // name of the metadata type
const data = ...;
new MetadataValidator(schema).validate(data, metadataType);
For an example, see metadata-validation.ts.
Name | Description |
---|---|
View | A view on a screen. Also known as a Page. |
Component | A reusable, composable fragment of UI. This is agnostic to technology, i.e. this could be a LWC component or a reusable HTML element. |
Region | A part of the view which may contain one or more Components |
BrandingProperty | A piece of data which stores visual information such as color or font. This is typically a key:value pair |
Route | A route contains metadata about a URL scheme, or any location specifier |
Theme | A theme is a complex type which contains metadata about your application's higher-level visuals |
ThemeLayout | A theme layout is just another name for a view |
For a more detailed rundown of the metadata pieces, see Anatomy of a Communities LWR Template.
/config
folder and verifying the impact of your schema change.FAQs
UI metadata schema specs for Lightning Web Runtime
The npm package @communities-webruntime/metadata-schema receives a total of 505 weekly downloads. As such, @communities-webruntime/metadata-schema popularity was classified as not popular.
We found that @communities-webruntime/metadata-schema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.