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

purplehaze

v0.1.1

Published

Bundler working in browser. Generating lots of stuff to help making frontend. Elm pages inspired

Downloads

6

Readme

Purple haze

NPM Version

Inspired by generative programming and weed :). So I was learning Elm language at home usually in the evening and now I am missing all this generative stuff from Elm libs in TS.

Documentation

Documentation for this project is hosted on Github Pages

Bullet points

  • You can use URL imports
  • You will get typings for URL imports
  • SSG phase runs inside browser
  • transpiles with esbuild
  • you can use window and other browser internals during SSG phase

What is generated?

  • when you type URL of an esmodule typings are fetched in the background and typings generated locally for intellisense
  • when you add Markdown files with gray matter it will generate typings for those
  • when you add a Page it will generate Route types so you won't make a mistake later when routing to another page
  • when you add GraphQL backends it will generate Zeus libraries for it making communication with GraphQL backend type safe
  • when you modify config you can access type safe values from it during build ssg process
  • when you add env variables you can access the record with all of them

Roadmap

  • [x] Add esbuild
  • [x] Add TS support
  • [x] Add intelligent .d.ts autocompletion for imported es modules
  • [x] Add image supports
  • [x] Generate tsconfig
  • [x] Relative imports
  • [x] Allow head modification
  • [x] Pass env to browser
  • [x] Provide a way to inject config
  • [x] TSConfig generation for included declarations to work
  • [x] Make zeus configurable and importable file
  • [x] Clear error handling with line numbers
  • [x] split utility functions css,html,md from zeus
  • [x] allow to auto-zeus multiple schemas
  • [x] Types from url streaming
  • [x] JSX, TSX support
  • [ ] Provide verbose info levels
  • [x] Create docs and landing page deployable to pages
  • [x] Resolve imports with no extension
  • [x] catch esbuild transform errors
  • [x] support files exporting multiple static pages
  • [ ] Add possibility to override html tag
  • [x] Create static gray matter typings for .md files
  • [ ] Generate Routes typings for existing export default files
  • [ ] catch all errors including no network error
  • [x] generate TS Files from Markdown
  • [ ] css support
  • [ ] fetch accurate typings withe relative packages typings
  • [ ] create CI process description