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

@portfoliablejs/create-portfoliable

v0.5.3

Published

Unified Portfoliable package with initializer and runtime CLI

Downloads

451

Readme

create-portfoliable User Manual

This guide is the end-user instruction manual for projects created with:

npm create portfoliable@latest

Use this document after scaffolding to run, customize, validate, and ship your portfolio application.

1. What This Tool Creates

The initializer generates a Vite-based portfolio app with:

  • app shell and UI wiring
  • case markdown loading and parsing pipeline
  • content validation commands
  • build and preview scripts
  • case scaffolding utilities

2. Prerequisites

Before creating a project:

  1. install Node.js 18 or newer
  2. verify npm is available
  3. use a writable local directory
  4. ensure internet access for package download

Check your environment:

node -v
npm -v

3. Create a New Portfolio Project

Scaffold a new app:

npm create portfoliable@latest my-portfolio

Move into the project:

cd my-portfolio

Start development mode:

npm run portfoliable

4. Initializer Flags

Pass flags after --:

npm create portfoliable@latest my-portfolio -- --no-install
npm create portfoliable@latest my-portfolio -- --force

Flag reference:

  • --no-install: scaffold files without installing dependencies
  • --force: allow overwrite when target exists

5. Generated Commands

Your generated project includes these scripts:

  • npm run portfoliable - run local development server
  • npm run portfoliable-build - create production build
  • npm run portfoliable-preview - preview production output
  • npm run portfoliable-thumbnail-options - inspect available thumbnail device options
  • npm run portfoliable-create-case - create new starter case file
  • npm run portfoliable-scaffold-case - legacy alias for case creation

6. Daily Development Workflow

Recommended sequence:

  1. run dev server
  2. edit case markdown content and assets
  3. validate content contract
  4. build and preview before publishing

Typical command flow:

npm run portfoliable
npm run portfoliable-build
npm run portfoliable-preview

7. Content Structure and Contract

Case files are stored as markdown under the generated content directory.

Each case requires frontmatter with localized fields:

  • id
  • slug
  • title.en and title.pt
  • shortDesc.en and shortDesc.pt
  • readTime.en and readTime.pt
  • year.en and year.pt
  • thumbSrc.en and thumbSrc.pt

Optional but commonly used fields include:

  • desc.en and desc.pt
  • descRecruiter
  • repositoryUrl
  • liveUrl
  • videoSrc
  • vttSrc
  • audioSrc
  • audioSrcRecruiter

For framed thumbnails, configure:

  • thumbCategory
  • thumbBrand
  • thumbModel
  • thumbColor

Body content must include language sections expected by the parser.

8. Create a New Case

Generate a starter case:

npm run portfoliable-create-case -- --name "Checkout Revamp"

Legacy alias:

npm run portfoliable-scaffold-case -- --name "Checkout Revamp"

9. Thumbnail Device Options

Inspect supported values:

npm run portfoliable-thumbnail-options
npm run portfoliable-thumbnail-options -- --full
npm run portfoliable-thumbnail-options -- --json

Use exact category/brand/model/color values from command output to avoid mismatches.

10. Validation and Build Gates

Run before commit or deployment:

npm run validate:content
npm run portfoliable-build
npm run portfoliable-preview

If validation fails, correct frontmatter keys and language sections first.

11. Troubleshooting

npm create cannot fetch package

  • verify npm registry connectivity
  • retry after checking package availability

Content validation errors

  • add missing required frontmatter keys
  • ensure both language sections are present and correctly marked

Thumbnail not rendering as expected

  • rerun thumbnail options command
  • verify values are exact matches from catalog output

Build succeeds but preview is incorrect

Reset local dependencies and rebuild:

rm -rf node_modules package-lock.json
npm install
npm run portfoliable-build
npm run portfoliable-preview

12. Upgrade Guidance for Existing Projects

When updating dependencies in an existing generated project:

  1. update package versions
  2. run validation
  3. build and preview
  4. verify parser output and media rendering behavior

13. Minimal Quick Start

npm create portfoliable@latest my-portfolio
cd my-portfolio
npm run portfoliable

After that, edit your case markdown files and keep validation/build checks in your routine.