패키지, 저장소 및 앱 카테고리 검색

패키지 상세v7.1.0

signals

반응성은 간단하게. 더 적게 하면서 더 많은 일을 해보세요. Flutter 및 HTML/JS, CLI, Shelf 서버, VM 등 모든 Dart 프로젝트를 지원합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.6만
좋아요
714
Pub 점수
160

패키지 설치

flutter pub add signals

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Signals는 Dart와 Flutter용 가벼운 반응형 라이브러리로, 데이터가 변경될 때 자동으로 업데이트되도록 하여 상태 관리를 간소화합니다. 개발자가 최소한의 부가 코드로 반응형 변수와 표현식을 만들 수 있게 해주어 동적 UI를 쉽게 구축하고 다양한 플랫폼에서 상태를 관리할 수 있습니다. 단순성과 성능을 중시하여 설계되었으며, Flutter 앱뿐만 아니라 서버, CLI 도구, 웹 애플리케이션과 같은 비 UI 환경에서도 원활하게 작동합니다. API는 직관적이며, 더 적은 코드로 더 많은 일을 할 수 있도록 집중합니다.

사용 사례

  • 실시간 UI 업데이트
  • 크로스 플랫폼 상태 관리
  • 서버 측 반응형 로직
  • 간편한 종속성 추적
  • 프로바이더의 경량 대안
  • 이벤트 기반 애플리케이션 아키텍처

주요 기능

  • 보일러플레이트 없는 반응성
  • 자동 종속성 추적
  • 모든 Dart 플랫폼에서 작동합니다
  • 최소 API 표면
  • 비동기 및 동기 신호를 지원합니다
  • 결합 가능한 신호 표현식

적합한 대상

  • 간단한 반응성 요구 개발자
  • 경량 상태가 필요한 플러터 앱
  • 반응형 요구사항을 가진 비 UI Dart 프로젝트
  • 복잡한 상태 솔루션을 피하는 팀
  • 빠른 UI 변경 사항 프로토타이핑
  • 다중 플랫폼을 대상으로 하는 프로젝트

고려 사항

  • 매우 대규모 상태 트리에는 적합하지 않음
  • 제한된 내장 디버깅 도구
  • 공식 개발 도구 통합은 아직 없음
  • 중간 복잡도에 가장 적합
  • 반응형 패턴에 대한 이해가 필요합니다
  • 고급 사용을 위해 다른 상태 라이브러리와 함께 사용해야 할 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Tests Website GitHub stars Coverage GitHub issues GitHub pull-requests melos

Signals.dart

Try chat with CodeWiki!

Features

  • 🪡 Fine grained reactivity: Based on Preact Signals and provides a fine grained reactivity system that will automatically track dependencies and free them when no longer needed
  • ⛓️ Lazy evaluation: Signals are lazy and will only compute values when read. If a signal is not read, it will not be computed
  • 🗜️ Flexible API: Every app is different and signals can be composed in multiple ways. There are a few rules to follow but the API surface is small
  • 🔬 Surgical Rendering: Widgets can be rebuilt surgically, only marking dirty the parts of the Widget tree that need to be updated and if mounted
  • 💙 100% Dart Native: Supports Dart JS (HTML), Shelf Server, CLI (and Native), VM, Flutter (Web, Mobile and Desktop). Signals can be used in any Dart project

To start using signals, check out the full documentation.

VS Code Extension: https://marketplace.visualstudio.com/items?itemName=rodydavis.signals-dart

Packages

Package Pub
signals signals
signals_core signals_core
signals_flutter signals_flutter
signals_lint signals_lint
signals_hooks signals_hooks
preact_signals signals_lint
signals_devtools_extension

AI Developer Skills

To enable AI coding assistants (like Google Antigravity, Gemini, Claude, Cursor, GitHub Copilot, and others) to build high-quality reactive systems with signals.dart, this repository includes prepackaged, high-fidelity developer Skills.

These skills are located under the ./skills directory and are fully modular:

  • signals-preact-dart: Deep knowledge and best practices for core reactive primitives (signal, computed, effect, batch, untracked).
  • signals-dart: Best practices for async signal operations (FutureSignal, StreamSignal), reactive collections, writable computed signals (linkedSignal), and value semantics.
  • signals-flutter: Comprehensive guides on element-level reactive UI integration, high-frequency GPU rendering bypasses, lifecycle side-effects, and .watch(context) extensions.
  • signals-migration-6-to-7: Detailed instructions, patterns, and refactoring techniques to safely upgrade applications from signals v6.x to v7.0.0.
How to use them:
1. One-Command Installation via skills.sh

You can instantly install all available signals skills into your global AI environment using the unified skills.sh registry CLI:

npx skills add rodydavis/signals.dart
2. Manual Reference

Simply reference the path to the desired skill directory in your AI prompt, or load the contents of the relevant SKILL.md files as context for your AI coding assistant.

Contributors

카테고리

의존성

의존성 목록 3 개

소스 저장소

이 패키지를 사용하는 프로젝트