Vue.js

Hi

Hello, I created this project with the goal of quickly setting up a template using Nuxt and the “On-demand revalidation” configuration, integrated with a backend (currently only Pocketbase).

While researching, I discovered that “On-demand revalidation” is a very valid option for saving server resources in exchange for having more data in the cache, but this option requires integration with the backend you use in your project.

Workflow

  1. The user visits a page

  2. The server checks if that page exists in the cache

  3. If it exists in the cache, Nitro returns the cached page, and Nitro checks in the background whether the backend data has changed by reviewing “the data block”; since the backend did not send any signal, Nitro returns “the data block” from the cache

  4. If the page does not exist in the cache, it generates a new page, and Nitro checks if there is a “data block” in the cache; if there isn’t, it fetches the data from the backend

  5. Nitro’s configuration ensures that when a fetch is performed, that data is stored in the cache; that “data block” will expire in one week unless the backend sends an event to reset it.

  6. If the data changes on the backend, it sends an event to reset the cache in Nitro

You can run the script with bun, npm or pnpm

Example

npx nurev  

More info

https://codeberg.org/Serroda/nurev#how-it-works

Take a look and let me know what you think
Have a good day!

Nuxt 4.3 released

4mon 25d ago by mander.xyz/u/nemeski in vuejs@programming.dev from nuxt.com
302

Vite: The Documentary

7mon 21d ago by lemmy.ml/u/ray in vuejs@programming.dev from www.youtube.com
503

General architecture around Pinia to handle guards, interceptor and reactivity

7mon 29d ago by jlai.lu/u/lascapi in vuejs@programming.dev
504

Migrate Large Applications from Vue.js to Nuxt.js Effortlessly

1y 4mon ago by programming.dev/u/canopas_software in vuejs@programming.dev from canopas.com
305

Migrating Web Components from Vue 2 to Vue 3 at Open Library

1y 4mon ago by lemmy.ml/u/ray in vuejs@programming.dev from blog.rayberger.org
516

Migrating Web Components from Vue 2 to Vue 3 at Open Library

1y 4mon ago by lemmy.ml/u/ray in vuejs@programming.dev from blog.rayberger.org
607

The future of #JavaScript toolchain looks very exciting!

1y 8mon ago by mastodon.social/users/marmelab in vuejs@programming.dev
608

Announcing VitePress 1.0 | The Vue Point

2y 2mon ago by programming.dev/u/starman in vuejs@programming.dev from blog.vuejs.org
5010

Typed Objects in v-for - Vue3 with TypeScript

2y 3mon ago by programming.dev/u/schalkneethling in vuejs@programming.dev from dev.to
6011

Announcing Vue 3.4 | The Vue Point

2y 5mon ago by programming.dev/u/starman in vuejs@programming.dev from blog.vuejs.org
2012

Vue 2 is Approaching End Of Life

2y 5mon ago by programming.dev/u/mac in vuejs@programming.dev from blog.vuejs.org
7113

Help needed: Make Vue UI reactive

2y 6mon ago by programming.dev/u/secana in vuejs@programming.dev from github.com
5214

Vueform is Now Open-Source

2y 7mon ago by programming.dev/u/mac in vuejs@programming.dev from vueform.com
8015

How do you pass props through the router-link without polluting the url?

2y 9mon ago by lemm.ee/u/pizzahoe in vuejs@programming.dev
2616

Vanilla Components - Came across this lib, anyone used it?

2y 11mon ago by lemmy.jcaks.net/u/zanyhog33 in vuejs@programming.dev from vanilla-components.com
6717

I've written a concept of a lemmy web app in vue

2y 11mon ago by programming.dev/u/starman in vuejs@programming.dev from programming.dev
23718

What do you use to create mobile applications from your Vue.js projects?

2y 11mon ago by programming.dev/u/Buddhist1961 in vuejs@programming.dev
3519

why Vue over React?

2y 11mon ago by programming.dev/u/0110101001100010 in vuejs@programming.dev
9820