Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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 308 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.