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

strapi-supercharged

v0.4.2

Published

Supercharge your Strapi applications and plugins with typescript compiler

Downloads

74

Readme

Contributors Forks Stargazers Issues MIT License LinkedIn

Getting Started

To get a local copy up and running follow these simple steps.

Installation to an existing project

  1. Install strapi-supercharged and typescript dev dependencies
    npm install --save-dev strapi-supercharged typescript # yarn add -D strapi-supercharged typescript
  2. Create a tsconfig.json
    {
      "compilerOptions": {
        "lib": ["esnext"],
        "target": "ES1019",
        "moduleResolution": "node",
        "esModuleInterop": true,
        "resolveJsonModule": true,
        "allowJs": true,
        "checkJs": true,
        "strict": true,
        "strictNullChecks": true,
        "noImplicitAny": true,
        "baseUrl": ".",
        "noEmit": true,
        "declaration": false,
        "types": ["strapi-supercharged"]
      },
      "include": ["**/*.js", ".eslintrc.js"]
    }

Installation from template

  1. Clone the repo
    git clone https://github.com/digisquad-io/strapi-supercharged-template.git

    🚀 Or use strapi-supercharged-template

  2. Install NPM packages
    npm install # yarn
  3. Run the tests
    npm test # yarn test

About The Project

“Javascript as Typescript” code

Use all power of Typescript directly into your Javascript

Predict all types from internal and custom methods

Predict all types from internal and custom methods

Autocomplete built in and custom methods

Autocomplete built in and custom methods

Autocomplete for your models in query

Autocomplete for your models in query

Embed documentation & improved configuration

Embed documentation & improved configuration

Advanced linter configuration

Advanced linter configuration

Advanced error detection

Advanced error detection

🎯 Goals

  • Cover API, Plugins and all Internal Strapi typing
  • Ahead-Of-Time compilation errors with Typescript
  • Highly extensible definitions with interface merging

Usage

💡 Declare your Models

@todo

For complete examples, please refer to the Article API model typing or the Product model typing from sample plugin

💡 Register API typing

@todo

For a complete example, please refer to the ArticleAPI typing

💡 Register Plugins typing

@todo

For a complete example, please refer to the SamplePlugin typing

🌠 Use your Supercharged Strapi

In controllers

@todo

For a complete example, please refer to the Article controller

In services

@todo

For a complete example, please refer to the Article service

In middlewares

@todo

For a complete example, please refer to the Sample middleware (from sample plugin)

In scripts

@todo

For a complete example, please refer to the scripts/initData.js demo script

🙋‍♂️ Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -m 'feat(amazing-feature): add something amazing')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

:octocat: tip: try to use . keyboard shortcut on this repository (or shift+;)

License

Distributed under the MIT License. See LICENSE.md for more information.

Contact

digisquad.io - [email protected]

Acknowledgements