
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@openstapps/core
Advanced tools
StAppsCore - Generalized model of data
The StAppsCore (SC) is a generalized model of data.
SC is based on the idea of schema.org. The SC structures data by describing objects as so called SC-types like: Event, Place, Date, Person, ...
Data sources of the same type of data are assigned to the same SC-type.
To generate a documentation for the routes use the following command.
node --require ts-node/register src/cli.ts routes PATH/TO/ROUTES.md
Annotations are used to add additional informations to fields, which are used to autogenerate mappings from the core objects. External dependencies can not be covered by the annotations. Documentation about some of the annotations can be found in: typedoc
annotation | description | parameters |
---|---|---|
@aggregatable | used for generating of aggregations of the field if the core schema is used to put data into a database/key-value store | whether the property is being used on the top type or across all types: global |
@float | number field is interpreted as float | |
@indexable | marks the type as indexable if the core schema is used to put data into a database/key-value store | |
@integer | number field is interpreted as integer | |
@keyword | string field is interpreted as keyword | |
@sortable | field is sortable if the core schema is used to put data into a database/key-value store. Fields are always sortable through generic sort, even without annotation. | sort method to be used: ducet , price , distance |
@text | string field is interpreted as text | |
@date | string field is interpreted as a date field | |
@validatable | Marks the type for json schema generation, which can be checked at runtime. Any top-level type that is put into a database should always be marked as validatable. | |
@filterable | non-object/nested field is filterable if the core schema is used to put data into a database/key-value store | |
@inheritTags | inherit all tags from another field | [SCThingType]::[field] |
Note: tags ignore casing, but for consistency they should use the variants proposed here.
FAQs
StAppsCore - Generalized model of data
The npm package @openstapps/core receives a total of 8 weekly downloads. As such, @openstapps/core popularity was classified as not popular.
We found that @openstapps/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.