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

directionmd

v0.3.0

Published

Infer creative direction, brand philosophy, and design principles from any live URL

Downloads

118

Readme

directionmd

Infer creative direction from any live URL into a DIRECTION.md file.

npx directionmd https://example.com

Other tools extract what a product looks like. directionmd infers WHY it looks that way. It reads a live page and generates prescriptive creative rules: design philosophy, brand voice, color intent, spacing principles, motion direction, content rules, accessibility stance, and responsive strategy.

Drop the output into a project and tell an AI agent "build something new that follows this direction." It will make good decisions in ambiguous situations because it understands the intent, not just the pixels.

For educational and experimental purposes only. See Disclaimer.

How it works

  1. Extract — Puppeteer loads the page and scans every element for contextual patterns (not flat values)
  2. Infer — A pattern-to-principle engine converts observed patterns into prescriptive creative rules
  3. Generate — A prose-based DIRECTION.md is produced with 12 sections of creative direction

The key difference: other tools tell you the button radius is 8px. DIRECTION.md tells you "we use soft radius on interactive elements because we want actions to feel approachable. Containers stay sharp because structure should feel architectural."

What it captures

| Section | What it infers | |---------|---------------| | Brand Essence | Core values, personality, positioning, audience, differentiators | | Color Direction | Color philosophy (minimal/disciplined/expressive), accent strategy, mood, gradient rules | | Typography Direction | Type system (single/paired), hierarchy approach, case rules, tracking, line-height philosophy | | Spacing Direction | Grid system, whitespace philosophy, density, section rhythm, component spacing rules | | Motion Direction | Motion philosophy (static/functional/expressive), intent, duration rules, easing rules | | Voice & Content | Personality, formality, pronoun strategy, CTA patterns, framing, active vs passive voice | | Component Direction | Shape language, elevation philosophy, border approach, button tiers, card consistency | | Layout Direction | Hero style, page flow narrative, container rules, alignment, scroll depth | | Accessibility | Stance (first-class or needs attention), specific gaps, remediation rules | | Responsive | Strategy (mobile-first/desktop-first), breakpoint rules, fluid type, container queries | | Creative Guardrails | Do's and don'ts generated from all inferences | | Agent Prompt | Copy-paste prompt with full creative direction for AI agents |

Install

npm install -g directionmd

Usage

directionmd https://example.com
directionmd https://example.com -o ./docs/brand-direction.md
directionmd https://example.com --json --wait 5000

Options

| Flag | Description | Default | |------|-------------|---------| | -o, --output <path> | Output file path | ./DIRECTION.md | | --json | Output raw inference data as JSON | false | | --wait <ms> | Wait time for dynamic content | 3000 |

Programmatic API

import { direction } from "directionmd";

const result = await direction("https://example.com");

result.markdown                     // DIRECTION.md content
result.inferences.brand             // brand essence, values, personality
result.inferences.color.rules       // prescriptive color rules
result.inferences.voice.philosophy  // personality, formality, perspective
result.inferences.motion.rules      // motion direction rules

Disclaimer

This tool is provided strictly for educational and experimental purposes. It reads publicly visible content and computed styles from rendered web pages.

  • No proprietary code, assets, or non-public information is accessed
  • Extracted data represents publicly visible content and styling
  • No ownership of any product identity, brand, or design system is claimed
  • Users are responsible for compliance with applicable terms of service
  • This tool does not bypass any access controls, authentication, or rate limiting
  • Output should not be used to create confusingly similar products or infringe on trademarks

The author provides this tool as-is with no warranty. Use responsibly.

License

MIT