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

pp

v1.0.0

Published

Just a builder for now

Downloads

113

Readme

Project Name: pp

Overview

This project is a basic setup using Vite for development and build processes, along with TypeScript for type checking and Biome for linting and formatting.

Scripts

  • dev: Starts the development server using Vite.
  • build: Compiles TypeScript and builds the project using Vite.
  • preview: Previews the built project using Vite.
  • lint: Lints the project using Biome.
  • lint:md: Lints and fixes markdown files using markdownlint.
  • format: Formats the code using Biome.
  • release:local: Updates version and publishes changes locally using Changesets.
  • prepublishOnly: Runs the CI script before publishing.
  • test: Runs tests using Vitest.
  • ci: Runs linting, markdown linting, export linting, builds the project, and runs tests.

Development Dependencies

  • @biomejs/biome: A tool for linting and formatting.
  • typescript: A language for application-scale JavaScript.
  • vite: A build tool that aims to provide a faster and leaner development experience for modern web projects.
  • lefthook: A tool for managing Git hooks.
  • @commitlint/cli: A tool for linting commit messages.
  • @commitlint/config-conventional: A shareable commitlint configuration for conventional commits.
  • cspell: A spell checker for code.
  • markdownlint-cli: A command-line interface for linting markdown files.
  • @changesets/cli: A tool for managing versioning and publishing.
  • vitest: A test runner for Vite projects.

Getting Started

  1. Install dependencies:

    npm install
  2. Install Lefthook:

    npx lefthook install
  3. Start the development server:

    npm run dev
  4. Build the project:

    npm run build
  5. Preview the built project:

    npm run preview
  6. Lint the project:

    npm run lint
  7. Lint and fix markdown files:

    npm run lint:md
  8. Format the code:

    npm run format
  9. Check spelling:

    npm run cspell
  10. Release locally:

    npm run release:local
  11. Run tests:

    npm run test
  12. Run CI script:

    npm run ci

Git Hooks

This project uses Lefthook to manage Git hooks.

Pre-commit Hook

Runs Biome to check and fix issues in staged files before committing.

Commit Message Hook

Uses Commitlint to ensure commit messages follow the conventional commit format.

Pre-push Hook

Runs CSpell to check for spelling errors in the code before pushing.

Runs markdownlint to check and fix issues in markdown files before pushing.

Continuous Integration

This project uses GitHub Actions for continuous integration. The CI workflow is defined in .github/workflows/ci.yml.

CI Workflow

The CI workflow runs on every push to the main branch and on pull requests. It performs the following steps:

  1. Checkout code: Uses actions/checkout@v4 to checkout the repository.
  2. Setup Node.js: Uses actions/setup-node@v4 to set up Node.js version 20.
  3. Install dependencies: Runs npm install to install project dependencies.
  4. Run CI script: Runs npm run ci to lint, build, and test the project.

License

This project is licensed under the MIT License.