https://github.com/cryptoking-max/cat
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: cryptoking-max
- License: apache-2.0
- Language: TypeScript
- Default Branch: main
- Size: 903 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
schema-dts
JSON-LD TypeScript types for Schema.org vocabulary.
schema-dts provides TypeScript definitions for Schema.org vocabulary in JSON-LD format. The typings are exposed as complete sets of discriminated type unions, allowing for easy completions and stricter validation.

This repository contains two NPM packages:
- schema-dts-gen Providing a command-line tool to generate TypeScript files based on a specific Schema version and layer.
- schema-dts Pre-packaged TypeScript typings of latest Schema.org schema, without pending and other non-core layers.
Note: This is not an officially supported Google product.
Usage
To use the typings for your project, simply add the
schema-dts NPM package to your
project:
command
npm install schema-dts
Then you can use it by importing "schema-dts".
Root context
You will usually want your top-level item to include a @context, like
https://schema.org. In order for your object type to accept this property, you
can augment it with WithContext, e.g.:
```ts import type {Person, WithContext} from 'schema-dts';
const p: WithContext
Graphs and IDs
JSON-LD supports '@graph' objects that have richer interconnected links
between the nodes. You can do that easily in schema-dts by using the Graph
type.
Notice that any node can have an @id when defining it. And you can reference
the same node from different places by simply using an ID stub, for example
{ '@id': 'https://my.site/about/#page } below is an ID stub.
The example below shows potential JSON-LD for an About page. It includes
definitions of Alyssa P. Hacker (the author & subject of the page), the specific
page in this URL, and the website it belongs to. Some objects are still defined
as inline nested objects (e.g. Occupation), since they are only referenced by
their parent. Other objects are defined at the top-level with an @id, because
multiple nodes refer to them.
```ts import type {Graph} from 'schema-dts';
const graph: Graph = { '@context': 'https://schema.org', '@graph': [ { '@type': 'Person', '@id': 'https://my.site/#alyssa', name: 'Alyssa P. Hacker', hasOccupation: { '@type': 'Occupation', name: 'LISP Hacker', qualifications: 'Knows LISP', }, mainEntityOfPage: {'@id': 'https://my.site/about/#page'}, subjectOf: {'@id': 'https://my.site/about/#page'}, }, { '@type': 'AboutPage', '@id': 'https://my.site/#site', url: 'https://my.site', name: "Alyssa P. Hacker's Website", inLanguage: 'en-US', description: 'The personal website of LISP legend Alyssa P. Hacker', mainEntity: {'@id': 'https://my.site/#alyssa'}, }, { '@type': 'WebPage', '@id': 'https://my.site/about/#page', url: 'https://my.site/about/', name: "About | Alyssa P. Hacker's Website", inLanguage: 'en-US', isPartOf: { '@id': 'https://my.site/#site', }, about: {'@id': 'https://my.site/#alyssa'}, mainEntity: {'@id': 'https://my.site/#alyssa'}, }, ], }; ```
Schema Typings Generator
The Schema Typings Generator is available in the
schema-dts-gen package.
npm install schema-dts-gen
npx schema-dts-gen --ontology=https://schema.org/version/latest/schemaorg-all-https.nt
Command line usage:
Specify your ontology
- Specify
--ontology: An HTTPs URL to an .nt NTriple file declaring your ontology.
Must be compatible with Schema.org, including the Schema.org
DataTypes and specifying a top-levelThingtype.- Specify
--context: Defaults tohttps://schema.org, the value or values to be used with the"@context"property.
Can be either a single URL, or a comma separated list of two or more name:URL pairs.
The context affects names of string properties in types, as well as the values
of an object's "@type".
--deprecated/--nodeprecated: Whether or not to include deprecated Schema.org types and properties. When included, these types will still be marked with@deprecatedJSDOC tags.--verbose: Outputs additional logs and debugging notes to stderr.
Developers
Use NPM to install dependencies:
command
npm install
We have wrappers around tsc and tsc --build to build our generator other
.d.ts files.
To generate TypeScript from the latest Schema.org Schema:
command
npm run build-gen && npm run build-schema
or simply build the schema-dts generator:
command
npm run build-gen
To contribute changes, see the CONTRIBUTING.md file.
Owner
- Name: Solana sniper copy trading bot
- Login: cryptoking-max
- Kind: user
- Location: solana trading bot
- Company: solana trading bot
- Website: solana trading bot
- Repositories: 1
- Profile: https://github.com/cryptoking-max
#Solana #sniper #copy #trading #bot
GitHub Events
Total
Last Year
Dependencies
- actions/checkout v2 composite
- actions/setup-node v2 composite
- coverallsapp/github-action master composite
- actions/checkout v2 composite
- github/codeql-action/analyze v2 composite
- github/codeql-action/autobuild v2 composite
- github/codeql-action/init v2 composite
- 606 dependencies
- @jest/globals ^29.7.0 development
- @stylistic/eslint-plugin ^4.1.0 development
- eslint ^9.21.0 development
- eslint-config-prettier ^10.0.2 development
- eslint-plugin-import ^2.31.0 development
- eslint-plugin-jsdoc ^50.6.3 development
- jest ^29.7.0 development
- prettier ^3.5.2 development
- rimraf ^6.0.1 development
- ts-jest ^29.2.6 development
- typescript ^5.8.2 development
- typescript-eslint ^8.25.0 development
- mkdirp ^3.0.1 development
- schema-dts-gen * development
- @jest/globals ^29.4.3 development
- @types/argparse ^2.0.17 development
- @types/array.prototype.flatmap ^1.2.6 development
- @types/jest ^29.5.14 development
- @types/n3 ^1.21.1 development
- @types/node ^22.13.8 development
- @types/unist ^3.0.3 development
- cross-env ^7.0.3 development
- argparse ^2.0.1
- n3 ^1.23.1
- rehype-minify-whitespace ^6.0.2
- rehype-parse ^9.0.1
- rehype-raw ^7.0.0
- remark-parse ^11.0.0
- remark-rehype ^11.1.1
- remark-wiki-link ^2.0.1
- unified ^11.0.5