Socket
Socket
Sign inDemoInstall

depl.to

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    depl.to

Serve an SPA with node_modules and zero config as a service


Version published
Maintainers
1
Created

Readme

Source

depl.to

Serve an SPA with node_modules and zero config as a service (wip)

First, go to depl.to and connect with github.

Then, this is usage of depl.to from start to finish:

  1. mkdir example && cd example
  2. npm init
  3. git init
  4. git remote add origin git@github.com:owner/repo.git
  5. touch index.html
  6. Edit index.html to your liking.
  7. Optional: Use npm i grainbox to get SPA capabilities.
  8. git add . && git commit -m "init"
  9. git push -u origin master

Your website is now available at https://repo.owner.depl.to

How it works

depl.to supports import statements with bare specifiers so that the browser can import from node_modules. It does this by transforming files during a request using web-imports.

Using the package.json in the github repo, it generates a copy of node_modules in a cache, and that is where node_modules is served from.

Keywords

FAQs

Last updated on 23 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc