All Projects → Aslemammad → vite-plugin-cloudflare

Aslemammad / vite-plugin-cloudflare

Licence: MIT license
🔥Building Cloudflare workers is faster and easier using vite-plugin-cloudflare with node builtins like process and stream

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vite-plugin-cloudflare

viteflare
Cloudflare workers meet Vite plugins
Stars: ✭ 35 (-67.59%)
Mutual labels:  workers, cloudflare, vite
Google Drive Index
Index Google Drive Files Easily and Free
Stars: ✭ 205 (+89.81%)
Mutual labels:  workers, cloudflare
Cfworker
A collection of packages optimized for Cloudflare Workers and service workers.
Stars: ✭ 152 (+40.74%)
Mutual labels:  workers, cloudflare
cloudflare-worker-router
A super lightweight router (1.3K) with middleware support and ZERO dependencies for CloudFlare Workers.
Stars: ✭ 144 (+33.33%)
Mutual labels:  workers, cloudflare
Create Google Shared Drive
Cloudflare Redesigned Script for creating a Shared/Team Drive
Stars: ✭ 93 (-13.89%)
Mutual labels:  workers, cloudflare
Serverless Cloudflare Workers
Serverless provider plugin for Cloudflare Workers
Stars: ✭ 114 (+5.56%)
Mutual labels:  workers, cloudflare
vitext
The Next.js like React framework for better User & Developer experience!
Stars: ✭ 376 (+248.15%)
Mutual labels:  vite, esbuild
worker-template-postgres
Reference demo and modified PostgreSQL driver to connect Cloudflare Workers to a relational database.
Stars: ✭ 75 (-30.56%)
Mutual labels:  workers, cloudflare
electron-vue-next
A starter template for using vue-next with the electron.
Stars: ✭ 189 (+75%)
Mutual labels:  vite, esbuild
vite-electron-esbuild-starter
⚡️The electron starter using Vite and esbuild to fast development.
Stars: ✭ 52 (-51.85%)
Mutual labels:  vite, esbuild
tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (-50.93%)
Mutual labels:  vite, esbuild
cloudflare-worker-graphql-ws-template
A template for WebSockets powered Cloudflare Worker project using graphql-ws
Stars: ✭ 21 (-80.56%)
Mutual labels:  workers, cloudflare
cloudflare-worker-rest-api
A cloudflare worker module which helps building REST Api quickly and easily, similar to express framework.
Stars: ✭ 31 (-71.3%)
Mutual labels:  workers, cloudflare
Worker Typescript Template
ʕ •́؈•̀) TypeScript template for Cloudflare Workers
Stars: ✭ 129 (+19.44%)
Mutual labels:  workers, cloudflare
natural
Fastest Framework for NodeJS. Written in pure ES6+
Stars: ✭ 30 (-72.22%)
Mutual labels:  workers, cloudflare
fast-vite-nestjs-electron
Vite + Electron + Nestjs with esbuild, crazy fast! ⚡
Stars: ✭ 128 (+18.52%)
Mutual labels:  vite, esbuild
electron-vite-boilerplate
📚 A Electron + Vite boilerplate of the nature of learning(source-code of vite-plugin-electron) / 学习性的样板工程(vite-plugin-electron源码)
Stars: ✭ 157 (+45.37%)
Mutual labels:  vite, esbuild
workers-jwt
Generate JWTs on Cloudflare Workers using the WebCrypto API
Stars: ✭ 67 (-37.96%)
Mutual labels:  workers, cloudflare
favv
Fullstack Web Application Framework With FastAPI + Vite + VueJS. Streamlit for rapid development.
Stars: ✭ 17 (-84.26%)
Mutual labels:  vite
terraform-cloudflare-maintenance
Terraform module to create a responsive Maintenance Page using Cloudflare Workers.
Stars: ✭ 111 (+2.78%)
Mutual labels:  cloudflare

vite-plugin-cloudflare 🔥

Vite-plugin-cloudflare is a software for transforming & bundling cloudflare workers with shimming node globals and builtins like process, os, stream and plenty of other node functions and modules using Esbuild and Vite!

  • Lightning builds
  • 💥 Workers compatible build using shimming
  • 🔥 Fast development incremental reloads
  • ✏️ Easy simulation using Miniflare

Install

npm install -D vite-plugin-cloudflare

Build

vite-plugin-cloudflare build input.ts worker.js 
# or 
vpc build input.ts worker.js 

Now you can upload or use the worker.js file as your cloudflare worker file.

Development

 vpc dev input.ts 

Here you can navigate to localhost:3000 and see the output of your worker. With every change to the related files, Esbuild is going to rebuild incrementally through the Vite server, then Miniflare reloads the script so you can check the new results by refreshing your browser or reloading your client.

image_2021-12-28_22-53-23

More

For seeing more options:

vpc -h

And more examples in test/.

New features

  • ?raw support like vitejs
  • __STATIC_CONTENT_MANIFEST as external

Credits

Brillout

Viteflare

Cloudflare

Miniflare

Vitest

Node-builtins

Cac

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].