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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@elephant-xyz/fact-sheet

v1.2.4

Published

CLI tool to generate self-contained property fact sheet websites from JSON data, optimized for IPFS deployment

Downloads

1,018

Readme

Elephant Fact Sheet Template

Generate beautiful, self-contained property fact sheets from your real estate data. This template system creates static websites optimized for IPFS deployment, perfect for decentralized property listings.

🚀 Quick Start

npx @elephant-xyz/fact-sheet generate --input ./data --output ./websites

📋 What You'll Need

Your property data should be organized in folders, with each property having its own directory containing JSON files:

data/
├── property-id-1/
│   ├── address.json      # Property address details
│   ├── building.json     # Building specifications
│   ├── sales_1.json      # Sales history
│   └── tax_1.json        # Tax information
└── property-id-2/
    └── ... (same structure)

The JSON files should follow the Elephant Lexicon schema.

Usage

Generate Command

The main command to generate the fact sheets is generate:

fact-sheet generate --input <your-data-directory> --output <your-output-directory>

Build Options

| Option | Description | Default | | --------------- | ---------------------------------- | -------------------- | | --input, -i | Directory containing property data | Required | | --output, -o | Directory for generated websites | Required | | --domain, -d | Domain for asset URLs | https://elephant.xyz | | --inline-css | Embed CSS directly in HTML | false | | --inline-js | Embed JavaScript directly in HTML | false | | --inline-svg | Embed SVG icons directly in HTML | false | | --minify | Minify HTML, CSS, and JavaScript | false | | --verbose, -v | Show detailed build information | false |

Advanced Usage

Custom Asset Domain

# Use your own CDN
npx @elephant-xyz/fact-sheet generate \
  --input ./data \
  --output ./websites \
  --domain https://cdn.mysite.com

IPFS-Optimized Build

For IPFS, it's best to inline all assets to create a single, self-contained HTML file.

# Inline all assets for IPFS deployment
npx @elephant-xyz/fact-sheet generate \
  --input ./data \
  --output ./ipfs-ready \
  --inline-css \
  --inline-js \
  --inline-svg

For a production-ready build, you can also add the --minify flag.

Deployment

Generated websites are self-contained and can be deployed anywhere:

  • IPFS: Use --inline-css --inline-js --inline-svg for best results.
  • Static hosting: Upload the output directory to any web server (e.g., Netlify, Vercel, AWS S3).
  • CDN: Each property folder is independent and cacheable.

Troubleshooting

  • Assets not loading: Verify the --domain option matches your deployment URL. For local viewing, use --inline-css and --inline-js.
  • Data not appearing correctly: Ensure your JSON data conforms to the Elephant Lexicon schema.

License

AGPL-3.0-or-later

Support