Rubic

Rubic 是一个轻量级的小程序运行时框架,继承 Vue3 的设计思路,提供 Composition API 和响应式能力,专注于提升小程序开发的逻辑复用和代码组织能力。

Check out Rubic on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

Rubic 是一个轻量级的小程序运行时框架,它继承 Vue3 的设计思路,并提供了与 Vue 一致的编程模型,包括组合式与响应式 API 。它专注于 javascript 逻辑部分,为小程序提供更好的逻辑复用以及更灵活的代码组织能力。文档:https://rubic.vercel.app/源码:https://github.com/JasKang/rubic特性:- 响应性:基于 @vue/reactivity 的响应式能力。- 组合式:与 vue3 一致的 Composition API 来描述组件逻辑。- 类型化:灵活的 API 和完整的 TypeScript 类型。- 轻量级:仅 30KB 的体积,无编译依赖,现有小程序可轻松接入。下面是一个最基本的组件示例:tsimport { definePage, ref, computed, onLoad } from 'rubic'definePage({ setup(query, ctx) { const count = ref(0) const double = computed(() => count.value * 2) const increment = () => { count.value++ } onLoad(()=>{ console.log('onLoad') }) return { count, double, increment, } },})``````vue-html<view bindtap="increment">{{count}} x2:{{double}}</view>

Latest Weekly Picks

make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team
linkedinpro.daisy.so favicon
Weekly Pick

AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.

Gabriel
crevas.ai favicon
Weekly Pick

Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.

Spark Alpha
fotominiatur.com favicon
Weekly Pick

AI Foto Edit - Text to Image & Image Edit

foto miniatur