Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enhance/arc-plugin-enhance

Package Overview
Dependencies
Maintainers
6
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enhance/arc-plugin-enhance

adds file based routing to arc.codes with enhance.dev server rendered custom elements

  • 1.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
124
increased by13.76%
Maintainers
6
Weekly downloads
 
Created
Source

@enhance-dev/arc-plugin-enhance

adds file based routing to arc.codes with enhance.dev server rendered custom elements

project structure

app
├── api ............. api routes
├── elements ........ custom elements named-like-this
└── pages ........... custom elements that map to routes (eg. /about renders about.mjs)
    ├── about.mjs
    ├── index.html
    └── notes
        ├── $id.mjs
        └── index.mjs

Decisions

file based routing using leading $ for dynamic parameters reasoning

  • $ is safe on windows and linux UNLESS its trailing in which case thats a hidden file in windows
  • : is illegal in windows file paths
  • * will expand in various system shells creating ambiguity
  • . is meaningful in system shells (current dir) and completions with .. and/or ... creates ambiguity

outsourcing to plugins

currently we need to generate an .arc file with a fair bit of 'required' configuration; it would be good to move this into the plugin and allow userland to override as neccessary

  • adding an http function should assume and add @http automatically; userland should still be able to override themselves
  • setting @static params like fingerprint
  • setting @views params like src (but they can override and remap later if they need to)
  • provisioning @table for begin/data (but they could add their own tables later)

FAQs

Package last updated on 30 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc