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

framer-local-live-preview

v1.0.2

Published

A small server that provides the same functionality as Live Preview in [Framer Desktop](https://www.framer.com/) without requiring an internet connection or creating a tunnel between your machine and the cloud. This project covers 3 main use cases:

Downloads

6

Readme

Framer Local Live Preview

A small server that provides the same functionality as Live Preview in Framer Desktop without requiring an internet connection or creating a tunnel between your machine and the cloud. This project covers 3 main use cases:

Restricted networks

If you're running within a restricted/corporate network you may have issues using the live preview functionality that ships with Framer due to the nature of the implementation. This project mitigates that by running locally within the network and not serving any of your project's assets on an externally accessible URL.

Prototyping with hardware

By providing a consistent URL for your prototype to be served on you can easily connect external hardware through the local network. You'll immediately see changes reflected on connected hardware as you make changes in Framer Desktop.

Multi-screen prototypes

If you're building a multi-screen prototype with Framer, you've probably ran into the following issues:

  • Framer doesn't serve your prototype on the network
  • The port the preview runs on is unpredictable
  • You need to make a web export of your project every time you make a change want to preview it on other hardware

This project simplifies that by implementing path-based routing using a consistent URL. You can run this server on a computer within your network or even on a Raspberry Pi, giving you a predictable URL you can use for any other devices that need to display your Framer prototype.

Setup

This project consists of 2 parts:

You first start the live preview server:

npx framer-local-live-preview

Or install it globally if you don't want to use npx:

yarn global add framer-local-live-preview

npm install framer-local-live-preview --global

You then install the package into your Framer project and follow the documentation on how to connect it to the server.

Usage

Once you have the proxy server running and the component inserted into your project you're ready to start previewing. Every project needs to have a unique and URL friendly ID—we'll use this ID to route traffic to your prototype. Let's imagine I've given my project the ID screen-1 and my proxy server is running at http://localhost:8000.

To access my project, I just need to go to the following URL in a web browser: http://localhost:8000/screen-1

Every time I make a change in Framer Desktop it will be immediately reflected on the above URL. I can access it locally using the URL above and the component in my project will also tell me what my local IP is within the network, meaning any other device in my network can also access it. If you wanted your prototypes to be externally accessible on the network, you could even forward a port on your router to the proxy server.

Best Practices

If you're going to be using this often it would be useful to have this server running 24/7 within the network and communicating its URL to your teammates. This means anyone who's working on a Framer project that needs live preview doesn't need to spin up their own server and is perfect for installations/demos.

Roadmap

  • Password authentication
  • API/Proxy port configuration