New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@storecraft/dashboard

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storecraft/dashboard

Storecraft Official Dashboard

  • 1.0.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-88.12%
Maintainers
0
Weekly downloads
 
Created
Source

Storecraft Official Dashboard





The Official storecraft Dashboard 🏆,

  • Leveraging static rendering / client side rendering / swr
  • Can be deployed into cost effective CDN
  • Also available at jsDelivr CDN

Effectively, TWO Build Targets

  1. A library with
  • Dashboard as react functional component
  • a mount function, that you can wrap for any framework of pure DOM.
  1. A website, with configurable backend endpoint.

Build is handled by Vite

npm i @storecraft/dashboard

Development

First, run the development server:

npm run dashboard:dev
# or
yarn dashboard:dev
# or
npm start

Open http://localhost:3000 with your browser to see the result.

Build / Export

Simply, run any of the following command

npm run dashboard:build
# or
yarn dashboard:build

Artifacts are in the dist folder

dist
├── lib
│   ├── index.js      // ES module
│   ├── index.cjs     // common js
│   └── index.umd.cjs // UMD
├── website
│   ├── index.html
│   └── assets

Consuming via React

First,

npm i @storecraft/dashboard

Then,

import { Dashboard } from '@storecraft/dashboard'

export const Root = () => {

  return (
    <div className='w-screen h-screen'>
      <Dashboard />
    </div>
  )
} 

Consuming via jsDelivr

<script id='_storecraft_script_' type="module">
  
  import { mountStorecraftDashboard } from 'https://cdn.jsdelivr.net/npm/@storecraft/dashboard@latest/dist/lib/index.min.js';
  
  mountStorecraftDashboard(
    document.getElementById('root'), false
  );

</script>

Author: Tomer Shalev

Keywords

FAQs

Package last updated on 08 Feb 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc