Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmdigital/content-model-graph
Graph your Sanity.io content model straight in your Studio using this tool
https://github.com/ahmdigital/content-model-graph
content-model content-modelling domain-model plugin sanity sanity-io schema structured-content tool
Last synced: 7 days ago
JSON representation
Graph your Sanity.io content model straight in your Studio using this tool
- Host: GitHub
- URL: https://github.com/ahmdigital/content-model-graph
- Owner: ahmdigital
- License: mit
- Created: 2019-11-15T04:54:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T03:10:26.000Z (12 months ago)
- Last Synced: 2024-04-27T05:42:17.247Z (9 months ago)
- Topics: content-model, content-modelling, domain-model, plugin, sanity, sanity-io, schema, structured-content, tool
- Language: TypeScript
- Homepage:
- Size: 882 KB
- Stars: 37
- Watchers: 12
- Forks: 4
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# sanity-plugin-content-model-graph
> This is a **Sanity Studio v3** plugin.
## Installation
```sh
npm install sanity-plugin-content-model-graph
```## Usage
Add it as a plugin in `sanity.config.ts` (or .js):
```ts
import { defineConfig } from "sanity";
import { myPlugin } from "sanity-plugin-content-model-graph";export default defineConfig({
//...
plugins: [myPlugin({})],
});
```## Examples (need updating, it looks nicer now)
### Sanity's Movie schema
![Screen Shot 1](https://user-images.githubusercontent.com/4197647/68980721-66e8da00-0855-11ea-9d2f-233f69679221.png)
![Screen Shot 2](https://user-images.githubusercontent.com/4197647/68980734-6e0fe800-0855-11ea-8ec0-d7948ef46014.png)### Sanity's Product schema
![Screen Shot 2019-11-16 at 11 52 00 pm](https://user-images.githubusercontent.com/4197647/68993455-77886700-08cc-11ea-8a5c-1653d44fee07.png)
![Screen Shot 2019-11-16 at 11 52 12 pm](https://user-images.githubusercontent.com/4197647/68993452-77886700-08cc-11ea-8426-02447b894b9f.png)## License
[MIT](LICENSE) © ahm Digital
## Develop & test
This plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)
with default configuration for build & watch scripts.See [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)
on how to run this plugin with hotreload in the studio.