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

@junyiacademy/perseus

v1.0.0

Published

[![codecov](https://codecov.io/gh/Khan/perseus/branch/main/graph/badge.svg)](https://codecov.io/gh/Khan/perseus)

Downloads

2

Readme

Perseus

codecov

Perseus is Khan Academy's exercise system. This repo contains the code needed to take a problem in the perseus format and present it, allow interaction, and grade the result of a learner's work.

This repo is a constellation of sub-repos for showing exercise content. Please see individual projects in in the packages/ folder for more information about each sub-project.

Getting started

Prerequisites

Installation

To install perseus, you need to run the following commands:

yarn install

Installs project dependencies

Using Storybook

The components and widgets of perseus are devleoped using Storybook. After you clone the project and get dependencies installed, the next step is to start storybook by running yarn storybook. This will start a server and give you a playground to use each component.

Using Changesets

We use changesets to help manage our versioning/releases. Before pushing a new PR, add a changeset by running yarn changeset. Commit and submit that with the PR.

Contributing

The Perseus project is not accepting external contributions. We’re releasing the code for others to refer to and learn from, but we are not open to pull requests or issues at this time.

KA Contribution Guide

For a slightly more detailed overview, see the "Shipping a Change to Perseus" document in Confluence.

Perseus is a monorepo - a single repository that ships multiple npm packages. Generally you can treat Perseus as a single code base; things should generally just work as you expect them to during the development process. We use scripts and a tool called changesets to keep package inter-dependencies organized, release the one repo to multiple npm packages, and version changes appropriately.

Working

  1. git checkout main; git pull
  2. git checkout -b [FEATURE_BRANCH_NAME]
  3. ☢️ We don’t use deploy branches in Perseus
  4. yarn start will start Storybook on localhost:6006
  5. Do stuff
  6. yarn test will run Jest/RTL tests; yarn cypress will run Cypress tests
  7. yarn changeset will walk you through creating a changeset (we generally stick to semver)
  8. ☢️ Empty changesets should be considered an exception to the rule and should generally be avoided
  9. git add and git commit
  10. git pull-request will walk you through creating a pull request

CI/CD aka Github

  1. When you create/update a PR, we run a series of checks against your code
    • Gerald requests reviewers (there’s a “perseus” user group that primary maintainers are in)
    • Linting/Types/Tests; checks to make sure code is properly covered
    • Check for a changeset
  2. 🍀 A snapshot release is made and can be used to check changes before merging/releasing
  3. Once checks pass and code is approved, land your changes into main
  4. 🚨 main should remain releasable! Don’t land code to main that you’re not ready to ship!
  5. 🍀 Use stacked feature branches if you’re working on a big change that depends on multiple PRs

Releasing Perseus to npm

  1. Landing changes to main creates/updates a “Version Packages” PR
  2. To cut a Perseus release, approve and land the “Version Packages” PR
  3. ☢️ If the CI/CD checks aren’t running, you might need to close and reopen the PR
  4. After the release script runs, you should see the new releases on the release page

License

MIT License