awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vuejs avatar

vuejs/composition-api

0
View on GitHub↗
4,184 stars·340 forks·TypeScript·MIT·9 vuescomposition-api.vuejs.org↗

Composition Api

Ce projet est un plugin de réactivité qui apporte la Composition API et la gestion d'état réactif de Vue 3 aux applications Vue 2. Il sert d'organisateur de logique de composant et de système pour encapsuler l'état réactif et les fonctions dans des utilitaires réutilisables.

Le plugin permet d'utiliser des fonctions composables pour partager une logique avec état entre les composants sans dépendre des mixins. Il fournit une structure basée sur des variables et des fonctions simples pour faciliter l'inférence de type automatique et l'autocomplétion dans l'éditeur. De plus, il inclut un système d'injection de dépendances basé sur des fournisseurs pour partager des données et des fonctions à travers l'arborescence des composants.

Le système couvre la gestion de l'état réactif, des propriétés calculées et des watchers, ainsi que la possibilité de se connecter aux cycles de vie des composants. Il permet l'intégration de bibliothèques tierces avec état dans le système de réactivité natif et prend en charge le préchargement des données côté serveur.

Le projet est écrit en TypeScript.

Features

  • Logic Organizers - Provides a system to group related functions and state by logical concern within Vue 2 components.
  • Vue Composition API Plugins - Brings the Vue 3 Composition API and reactive state management capabilities to Vue 2 applications.
  • Stateful Composables - Offers reusable functions that encapsulate reactive state and lifecycle hooks for efficient component composition.
  • Compositional Logic Organizations - Groups related data and methods into functional blocks to improve code reuse and maintainability.
  • Dependency Injection Providers - Implements a provider-based dependency injection system to share data and functions across a component tree.
  • Dependency Injection - Implements a function-based dependency injection system to share data and functions across a component tree.
  • Logic Reuse Patterns - Provides patterns for sharing stateful functionality across components using composable functions.
  • Separation of Concerns - Implements a design pattern to decouple component logic from fixed option blocks, improving separation of concerns.
  • Stateful Logic Encapsulation - Provides a system for extracting repetitive state management and business logic into standalone reusable composable functions.
  • Component Lifecycle Hooks - Executes custom logic during component rendering, updates, or removal via lifecycle hooks.
  • Component Lifecycle Management - Manages the creation, updates, and destruction of components throughout their operational lifecycle.
  • Component Lifecycle Hooks - Provides methods to execute specific logic at defined stages of a component's existence, such as mounting.
  • Lifecycle Hooks - Implements mechanisms to execute custom logic during specific phases of a component's mounting and unmounting process.
  • Component-Based State Management - Manages component state and watchers using imported functions instead of static component options.
  • Proxy-Based Reactivity - Uses JavaScript Proxy objects to intercept data changes and automatically trigger UI updates.
  • Reactive State Management - Provides functions to create reactive variables and computed properties for tracking application state.
  • Bundle Size Optimization - Reduces the final bundle size by removing instance proxies to allow for more efficient minification.
  • Automatic Type Inferences - Leverages plain variables and functions to enable automatic determination of types for better editor autocomplete.
  • Code Block Grouping - Clusters related variables and functions together in the source code to ensure cohesive execution and organization.
  • Static Type Inference - Provides a structure using plain variables and functions to enable native TypeScript static type inference.
  • Component Type Inferences - Enables automatic derivation and validation of types for component options and properties.
  • Component Option Translations - Converts traditional object-based component options into a single setup function for improved organization and type inference.
  • Concern-Based Logic Grouping - Organizes related code by functional purpose to reduce file navigation and simplify refactoring.
  • Instance Proxy Bypasses - Enables more efficient minification and smaller production bundle sizes by accessing variables directly instead of through component instance proxies.
  • Structural Typing and Inference - Leverages plain variables and functions to enable native TypeScript structural typing and automatic inference for better autocomplete.
  • Dependency Injection for UI - Provides a provider-based mechanism for passing data and functions across a component tree without manual prop drilling.
  • Bundle Size Optimizers - Shrinks production output by compiling templates as inlined functions to remove instance proxies.

Historique des stars

Graphique de l'historique des stars pour vuejs/composition-apiGraphique de l'historique des stars pour vuejs/composition-api

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Composition Api

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Composition Api.
  • didi/mpxAvatar de didi

    didi/mpx

    3,905Voir sur GitHub↗

    MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from a single codebase. It utilizes a static transpilation pipeline to transform source code into platform-specific bundles, employing a single-file component system that encapsulates templates, logic, and styles. The framework provides a reactive state management system that automatically synchronizes application data with the user interface through computed properties and watchers. The project distinguishes itself through a robust build-time toolchain that supports sub-package p

    JavaScript
    Voir sur GitHub↗3,905
  • vuejs/vueAvatar de vuejs

    vuejs/vue

    209,900Voir sur GitHub↗

    Vue is a progressive, component-based JavaScript framework designed for building reactive user interfaces and single-page applications. It centers on a declarative template system that transforms HTML into efficient render functions, allowing developers to organize complex interfaces into isolated, reusable units that synchronize automatically with application state. The framework distinguishes itself through a dependency-tracking reactivity system that monitors data access during rendering to trigger precise updates. It provides a flexible architecture that supports both incremental adoption

    TypeScriptframeworkfrontendjavascript
    Voir sur GitHub↗209,900
  • reactjs/react.devAvatar de reactjs

    reactjs/react.dev

    11,765Voir sur GitHub↗

    React is a JavaScript library for building user interfaces through the composition of modular, self-contained components. It employs a declarative programming model where developers describe the desired visual state, and the library automatically manages the underlying document updates and state synchronization. By utilizing a virtual representation of the document, it calculates and applies minimal changes to the browser, ensuring efficient rendering even in complex applications. The library distinguishes itself through a sophisticated scheduling system that manages rendering work in increme

    JavaScriptdocumentationjavascriptreact
    Voir sur GitHub↗11,765
  • ygs-code/vueAvatar de ygs-code

    ygs-code/vue

    7,321Voir sur GitHub↗

    This project is a technical study guide and architectural analysis of the Vue.js framework. It serves as an educational resource for understanding the implementation of a reactive framework, providing source code analysis and architectural visualizations to explain the internal workings of the Model-View-ViewModel pattern. The project focuses on the mechanics of reactive framework implementation, specifically how dependency tracking, getters, and setters are used to synchronize state with a user interface. It includes detailed examinations of the virtual DOM and the process of reconciling ele

    JavaScript
    Voir sur GitHub↗7,321
Voir les 30 alternatives à Composition Api→

Questions fréquentes

Que fait vuejs/composition-api ?

Ce projet est un plugin de réactivité qui apporte la Composition API et la gestion d'état réactif de Vue 3 aux applications Vue 2. Il sert d'organisateur de logique de composant et de système pour encapsuler l'état réactif et les fonctions dans des utilitaires réutilisables.

Quelles sont les fonctionnalités principales de vuejs/composition-api ?

Les fonctionnalités principales de vuejs/composition-api sont : Logic Organizers, Vue Composition API Plugins, Stateful Composables, Compositional Logic Organizations, Dependency Injection Providers, Dependency Injection, Logic Reuse Patterns, Separation of Concerns.

Quelles sont les alternatives open-source à vuejs/composition-api ?

Les alternatives open-source à vuejs/composition-api incluent : didi/mpx — MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from… vuejs/vue — Vue is a progressive, component-based JavaScript framework designed for building reactive user interfaces and… reactjs/react.dev — React is a JavaScript library for building user interfaces through the composition of modular, self-contained… ygs-code/vue — This project is a technical study guide and architectural analysis of the Vue.js framework. It serves as an… flightjs/flight — Flight is a JavaScript component framework and DOM interactivity library used to map behavioral logic to HTML nodes.… vobyjs/voby — Voby is a signal-based framework for building reactive user interfaces. It utilizes fine-grained observables to track…