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

@devvit/kit

v1.1.1

Published

Devvit Kit is a helper library that makes it easier to build [Devvit apps](https://developers.reddit.com), or apps on Reddit’s developer platform. Kit includes both UI components and general backend patterns that simplifies common tasks and enables develo

Downloads

2,240

Readme

Devvit-kit

Devvit Kit is a helper library that makes it easier to build Devvit apps, or apps on Reddit’s developer platform. Kit includes both UI components and general backend patterns that simplifies common tasks and enables developers to build apps faster.

Installation

To use Kit, navigate to your devvit project in your terminal and install the package:

npm install @devvit/kit

Usage

Once you have Kit installed, you can import the helper you’re trying to use and then use it in applicable pieces of code. This is an example using the Columns helper.

import {Columns} from '@devvit/kit'
import {Devvit} from '@devvit/public-api'

Devvit.addCustomPostType({
    name: 'Columns static content',
    render: () => {
        return (
            <vstack padding="medium">
                <Columns columnCount={2} gapX="5px" gapY="10px" order="column">
                    {/* columns children here */}
                </Columns>
            </vstack>
        );
    }
});

| Component Name | Description | Links | | ----------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | | Columns | A component that provides a simple column layout and optionally allows you to specify gap sizing between elements | Usage Instructions | | Item pagination | A helper that enables pagination of data including UI elements for navigating through the elements | Usage Instructions | | PixelPadding | A component that lets you set padding from any side using pixel values. | Usage Instructions | | Developer toolbar | Adds a toolbar of actions only visible to developers | Usage Instructions |

Contributing to the devvit-kit public repo

Reddit has a number of open source projects that developers are invited to contribute to in our GitHub repo. There's a public issue board that tracks feature requests and bugs. All feedback is welcome!

If you'd like to contribute to this repo as developer, you can find detailed instructions in contributing.md

Contributor License Agreement

The first time you submit a pull request (PR) to a Reddit project, you should complete our CLA. We cannot accept PRs from GitHub users that have not agreed to the CLA. Note that this agreement applies to all open source Reddit projects, and you only need to submit it once.

Submit your CLA here.

Bugs and requests

Most of our outstanding bugs and user requests are visible here. These are a combination of synced issues from our internal system and user contributions made directly in GitHub. We do our best to keep this up to date with internal progress of bugs and issues. Before adding an issue to the board, please search for a similar or duplicate issue. You can always comment or react to issues you’d like to see prioritized.

Filing a new issue

Please use one of these labels when submitting a new issue:

  • bug
  • documentation
  • enhancement

Once issues are added to our internal tracking system, they will be labeled as “synced”.

Security issues

Security issues take special priority and are handled separately from our public tracker via Hackerone. Please do not submit security issues here on GitHub, as all issues are public and publishing them increases the risk of abuse.

How to make a pull request

Please follow instructions in contributing.md