npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hello-sanity-studio

v0.7.1

Published

Sanity plugin that helps you quickly set up a default Sanity Studio desk.

Downloads

69

Readme

Sanity Plugin: Hello Sanity

This is a non-official Sanity plugin that helps you quickly set up a default Sanity Studio desk with base features such as blog, projects, SEO, and landing pages. It's centered around the "expertise" notion, allowing you to showcase your skills in a structured and organized way.

Installation

To install this plugin, first, you need to add it to your Sanity Studio's package.json file:

yarn add hello-sanity-studio
npm install hello-sanity-studio

Then, add the plugin to your Sanity Studio's sanity.json file:

{
  "plugins": [
    "hello-sanity-studio"
  ]
}

Make sure to also install the "@sanity/code-input" dependency for this plugin to work properly:

yarn add @sanity/code-input
npm install @sanity/code-input // if you need `initCodeBlocks`

Setup

On sanity.config.ts please setup up this module like that :

import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {unsplashImageAsset} from 'sanity-plugin-asset-source-unsplash'

import {codeInput} from '@sanity/code-input'  // <- this is needed if you uses `initCodeBlocks`

import { HelloSanityStudio } from 'hello-sanity-studio'

const helloSanityStudio = new HelloSanityStudio({
  expertiseCategories,
  initCodeBlocks: false,
})

export default defineConfig({
  name: 'default',
  title: 'PROJECT_NAME',

  projectId: 'PROJECT_ID',
  dataset: 'PROJECT_DATASET',

  schema: {
    types: helloSanityStudio.getSchemaTypes(), // <- here
  },

  plugins: [
    codeInput(), // <- this is needed if you uses `initCodeBlocks`
    unsplashImageAsset(),
    deskTool({
      title: 'DESK_VIEW_TITLE',
       structure: (S, context) => {
        return S.list().title('Dashboard').items(helloSanityStudio.generateDesk(S, context))  // <- here
      },
    }),
    visionTool(),
  ],

  document: {
    actions: (input, context) => helloSanityStudio.filterOutSingletonActions(input, context), // <- here
  },
})

Usage

Just run

yarn dev
npm run dev

The Showcase Studio will help you create a structured and organized Sanity desk for showcasing your expertise. It includes the following features:

  • Blog: A simple blog schema with fields for title, author, content, and publication date.
  • Projects: A schema for showcasing your past projects with fields for title, description, technologies used, and an image.
  • Landing Pages: Based on expertise, for creating landing pages with fields for title, content, image, and call-to-action button.

And you will have access to :

  • SEO: A schema for defining meta tags, OG tags, and other SEO-related information for each page on your website.

Contributing

If you find any bugs or issues with this plugin, please report them on the Github Issues page. Pull requests are also welcome!

License

This plugin is licensed under the MIT License. See the LICENSE file for details.