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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@swrpg-online/art

v1.0.0

Published

SVG assets for the Star Wars Roleplaying Game (SWRPG) narrative and numeric dice by Fantasy Flight Games and Edge Studio.

Downloads

72

Readme

SWRPG Online Art Assets

SWRPG Narrative Dice Assets

This repository contains a collection of SVG and other art assets for use in Star Wars Roleplaying Game (SWRPG) online tools and applications.

Features

Narrative Dice

Narrative Dice

Animated GIF files

Useful for simulating rolling the dice

Animated gif files

Numeric dice with every color from the movie logos

Movie Colors

All Numerical Dice

Numeric Dice come in Arabic or Aurabesh Numerals

ROTJ Aurabesh TLJ Arabic

Installation

npm install @swrpg-online/art

Usage

React Components (Recommended)

import { ProficiencyDice } from '@swrpg-online/art/dice/narrative/D12-Proficiency-Success.svg';

function DiceComponent() {
  return (
    <div>
      <ProficiencyDice className="w-12 h-12" />
    </div>
  );
}

To make this work, add the following to your vite.config.ts:

import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';

export default defineConfig({
  plugins: [svgr()],
});

Angular Components

import { Component } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import type { SafeUrl } from '@angular/platform-browser';

@Component({
  selector: 'app-dice',
  template: `
    <img [src]="proficiencyDice" alt="Proficiency Success" class="w-12 h-12">
  `
})
export class DiceComponent {
  proficiencyDice: SafeUrl;

  constructor(private sanitizer: DomSanitizer) {
    // Import the SVG content directly
    const svgContent = require('@swrpg-online/art/dice/narrative/D12-Proficiency-Success.svg');
    this.proficiencyDice = this.sanitizer.bypassSecurityTrustUrl(svgContent);
  }
}

To make this work, add the following to your angular.json:

{
  "projects": {
    "your-project": {
      "architect": {
        "build": {
          "options": {
            "assets": [
              {
                "glob": "**/*",
                "input": "node_modules/@swrpg-online/art/dice",
                "output": "/assets/dice"
              }
            ]
          }
        }
      }
    }
  }
}

TypeScript Support

The package includes framework-agnostic TypeScript support:

// React usage
import type { SVGProps } from 'react';
import { ProficiencyDice } from '@swrpg-online/art/dice/narrative/D12-Proficiency-Success.svg';
const Dice: React.FC<SVGProps<SVGSVGElement>> = ProficiencyDice;

// Angular usage
import type { SafeUrl } from '@angular/platform-browser';
const svgContent: string = require('@swrpg-online/art/dice/narrative/D12-Proficiency-Success.svg');
const safeUrl: SafeUrl = sanitizer.bypassSecurityTrustUrl(svgContent);

Directory Structure

  • dice/ - Contains dice-related SVG and PNG assets
    • narrative/ - Narrative dice SVGs (Proficiency, Challenge, etc.)
    • numeric/ - Numeric dice SVGs (Aurebesh and Arabic styles)
      • aotc/ - Attack of the Clones style
      • anh/ - A New Hope style

Licensing

These art assets are available under a dual-license model:

  1. Open Source License (CC BY-NC-SA 4.0)

    • Free for use in open source projects
    • Requires attribution
    • Non-commercial use only
    • Share-alike (derivatives must use the same license)
    • See the LICENSE file for full details
  2. Commercial License

    • Available for commercial use
    • Requires a separate license agreement
    • Contact information available in CONTACT.md

I'm open to other licensing models, feel free to open an issue to discuss. The goal is to recoup design costs while still providing to the open source and swrpg communities.

Usage Guidelines

For Open Source Projects

  1. You must provide attribution to the original creator
  2. You must include a link to this repository
  3. You must indicate any modifications made to the assets
  4. Your project must be open source and use the same CC BY-NC-SA 4.0 license for derivative works

For Commercial Projects

  1. Contact the creator through the information provided in CONTACT.md
  2. Discuss your specific use case and requirements
  3. Obtain a commercial license before using the assets

Contributing

While this is primarily an asset repository, suggestions and improvements are welcome. Please open an issue to discuss any proposed changes.

Support

For questions about licensing or usage, please refer to the CONTACT.md file.

Shoutout

Lauren Herda for designing beautiful dice with us!