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

@piccollage/pic-collage-live

v0.5.0

Published

Components for building realtime collaborative collage editors with Typescript.

Downloads

66

Readme

pic-collage-live

Components for building realtime collaborative collage editors with Typescript.

Dependencies

+-----------------------------------------------------------------------------+
|                                      APP                                    |
+--------------+-----------------+---------+--------------------+-------------+
|  app_common  | editor_sidemenu | persons |  templates_browser |  pc_server  |      
+--------------+-----------------+---------+--------------------+-------------+
|                                    collager                                 |                         
+-----------------------------------------------------------------------------+
|      collage_firebase     |      text_editor      |      path_editor        |
+---------------------------+-----------------------+-------------------------+
|                           |     fonts_firebase    |                         |
+-----------------------------------------------------------------------------+
|                                collage_toolkit                              |
+-----------------------------------------------------------------------------+
|                                     CBJS                                    |
+-----------------------------------------------------------------------------+

Mobile/desktop dependencies

  • TextEditor => horizontal/vertical/mobile
  • CreatorView => ResponsiveView => MobileHeaderView/DesktopHeaderView
  • manipulateAddText
    • manipulateEditTextModal
    • manipulateEditTextModeless
  • CollagerEditWidget/CollagerEditView => isMobile$
    • manipulateEditTextModal
      • mobile
    • manipulateEditTextModeless
      • vertical
    • (horizontal is unused?)

CBJS Dependencies

  • PersonPlugin

  • BulletinContext

  • MDDV utils (Widget, Context, Command, Manipulator)

  • Base types (Point, Color, Font, etc.)

  • Serialization utilities (fieldTo_, structTo_)

  • Firebase utilities (sync_, etc.)

  • Rx utilities (operators, useBehaviorSubject, promise$)

  • Generic utilities (logging, etc.)

  • View utilities (Portal, IAnimation)

  • Gesture utilities (Touch -> Rx)

Setting up Firebase

  • Rules for Storage access
  • Rules for Firebase access
  • CORS cloud setup (see below)
  • We serve index.html via /functions (for OG rewriting), so need to:
    • After build, copy index.html (see package.json)
    • Make sure functions works, so need to change from "Free" plan to "Pay as you go" in "Usage and billing".
    • Setup to serve as a single-page-app.

CORS domain on bucket stickers:

https://stackoverflow.com/questions/37760695/firebase-storage-and-access-control-allow-origin

  • Go to https://console.cloud.google.com/home

  • "Activate Google Cloud Shell" (upper right menu bar).

  • Create a file (cors.json):

    [ { "origin": ["*"], "method": ["GET"], "maxAgeSeconds": 3600 } ]

  • gsutil cors set cors.json gs://pic-collage-live.appspot.com

Emulator

https://firebase.google.com/docs/database/security/test-rules-emulator firebase setup:emulators:firestore

Setting up Staging

  • firebase login:ci to generate "token".
  • Setup separate "token" on CI as different environment variable.
  • In config.yml setup different jobs that use separate environment variable.
  • Setup different CI "Contexts" for each with different environment variables
    for the Firebase configuration. https://ui.circleci.com/settings/organization/github/cardinalblue/contexts?return-to=https%3A%2F%2Fcircleci.com%2Fdashboard

Issue with face-api.js:

  • https://github.com/justadudewhohacks/face-api.js/issues/455

Debugging on the device tips

  • Install Android Studio.
  • Make sure adb is in the path (~/Library/...).
  • Run adb devices so that Chrome can see it.

Live Coding 1 (2019-06-14)

  • MagicDotWidget
    • Create
    • Prop
  • ScrapWidget
  • Check if not for other gestures
  • MagicDotView
    • Follow position
    • Hide if no position
  • Calculate position of MagicDot (RELATIVE)
  • Trigger manipulator from gesture
  • Code manipulator

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Serve index.html from node server locally

NOTE: This is NOT server side rendering for React. It's just a mechanism to generate dynamic html file for meta tag information.

Requirements

  • Install the Firebase CLI
npm install -g firebase-tools
  • Install packages in functions directory
yarn
  • Make sure node version is consistent with functions(node 10)
yarn serve