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

@liliace/diss

v1.0.6

Published

Custom Discord theme generator

Downloads

9

Readme

diss npm version

Customize Discord with your favourite wallpaper and less useless tabs/buttons :D

Example

Kanna Discord theme

(relax, the font is set separately)

Compiling

Using the npm module

const makeCss = require("@liliace/diss");
const imageUrl = "https://example.com/image.jpg";
const shadow = 0.6;

const css = makeCss(imageUrl, shadow);
  • imageUrl: The url of your image. Due to Discord's content security policy, only links under certain domains can be used. If you want to use your own image, the easiest way is to send it in some chat on Discord and copy the image link.
  • shadow: How much to darken your image on a scale from 0 (no shadow) to 1 (completely black) so the texts are easier to read.

Using sed

If you don't want to install a whole npm package just for a simple CSS file, you can download discord.css and manually replace the $url and $shadows with your preferred value. Here's an example command to do it automatically:

curl -s https://git.sr.ht/~liliace/diss/blob/main/discord.css | \
  sed 's/\$url/https:\/\/example.com\/image.jpg/g; s/\$shadow/0.6/g'

Using the style sheet

If you use Discord on your browser, you can use an extension like Stylus to inject custom style sheets, targeting URLs starting with https://discord.com/channels/.

If you use the desktop app, check out diss-asar for modding the client.

Contributing

Discord is constantly updating their client. Feel free to report outdated styles (and other bugs) at ~liliace/[email protected].

Credits

Inspired by Ctrl W's Clean Discord.