awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ecomfe avatar

ecomfe/spec

0
View on GitHub↗
4,605 星标·1,591 分支·6 次浏览

Spec

Spec 是一套全面的前端编码标准规范和项目架构指南。它提供了一个用于组织目录结构、模块依赖和包布局的框架,以创建可扩展且可预测的代码库。

该项目定义了严格的 React 组件治理标准,包括特定的命名约定和 Props 结构模式。它还建立了 JSON API 数据规范,通过标准化的交换格式和 HTTP 响应结构确保系统组件之间的可预测通信。

该规范涵盖了广泛的功能,包括通过语义化 HTML 和可访问表单控件实现 Web 无障碍合规,以及针对 DOM 操作和资源加载的 Web 性能优化策略。它进一步详细说明了 JavaScript、HTML 和 CSS 的编码风格标准,以在开发团队中保持一致性。

Features

  • Frontend Code Governance - Defines and enforces shared styling and structural guidelines for JavaScript, HTML, and CSS across frontend teams.
  • JavaScript Best Practices - Defines guidelines for memory management and type checking to prevent runtime errors and memory leaks in JavaScript.
  • JSON Data Exchange - Specifies mandatory status and data fields for JSON HTTP responses to ensure predictable client-side processing.
  • Code Style Standardization - Sets mandatory rules for indentation, spacing, and naming conventions for JavaScript code.
  • Module Dependency Classification - Distinguishes between internal module references and external package dependencies to maintain clean loading paths.
  • Source Code Module Imports - Establishes a consistent approach for importing internal and external modules using requirement functions.
  • Module Path Resolution - Defines rules for resolving module identifiers and prefixes to absolute or relative file system paths.
  • Component Governance Standards - Defines rigorous naming conventions and structural patterns for React components and props.
  • Data Exchange Standards - Establishes standardized JSON data exchange formats to ensure reliable communication between system components.
  • JavaScript - Provides mandatory syntax and naming rules to ensure consistency across frontend JavaScript projects.
  • Frontend Architecture Patterns - Organizes directory structures and module dependencies to create scalable frontend architectures.
  • Frontend Architectures - Provides a structured framework for organizing directory layouts and module dependencies in frontend projects.
  • Logical-to-Physical Directory Mapping - Provides a framework for grouping source files by business logic to create a predictable and scalable directory structure.
  • Modular Feature Architectures - Implements a modular architecture using the AMD standard to organize the codebase into portable units.
  • Naming Conventions - Applies specific casing and naming patterns for React components and props to improve readability.
  • Project Organization - Defines package structures and directory layouts to ensure a predictable and scalable codebase.
  • Project Structure Standardization - Defines shared file patterns and directory layouts for reusable code sets to ensure predictable project organization.
  • React Project Layouts - Organizes React component files and export patterns to ensure consistency across the codebase.
  • Business-Logic Based Organization - Groups source code into directories based on functional business modules to improve maintainability.
  • Web Accessibility Standards - Specifies the implementation of semantic HTML and accessible form controls to ensure a predictable user experience.
  • Component Prop and Method Standards - Sets requirements for component types and prop definitions to maintain a consistent arrangement of methods.
  • Response Structure Standardization - Structures HTTP responses with mandatory status and data fields for predictable client-side processing.
  • Optimization Guides - Offers strategies for DOM manipulation, CSS animations, and resource loading to increase rendering speed.
  • Web Performance Optimizations - Provides a holistic strategy for optimizing DOM manipulation, CSS animations, and resource loading.
  • Accessibility and Rendering Metadata - Provides guidelines for configuring charset, title, viewport, and language attributes to optimize page rendering.
  • Hierarchical Data Modeling - Provides a standardized object structure for organizing tree-based data and nested relationships.
  • Key-Value Naming Conventions - Applies mandatory naming conventions to objects and collections to maintain data consistency across all interface components.
  • Dependency Isolation - Requires separating third-party library packages into dedicated directories to isolate external code from project source.
  • Package Metadata - Defines a standardized JSON manifest system for tracking package identity, versioning, and maintainer details.
  • Color Definitions - Standardizes the use of hexadecimal notation and shorthand forms for consistent color styling.
  • CSS and Preprocessor Formatting - Establishes formatting rules for CSS, SCSS, Sass, and Less files to ensure consistent code structure.
  • Destructuring Style Enforcement - Governs the use of object and array destructuring to reduce intermediate variables and nesting depth.
  • JavaScript Transpilers - Specifies the configuration of tools that transform modern JavaScript into browser-compatible versions.
  • Formatting Standards - Applies specific rules for JSX tag closing and attribute formatting to ensure consistent UI code.
  • Block-Scoped Variable Declarations - Enforces the use of block-scoped declarations like let and const to improve scope clarity.
  • Module Export and Import Systems - Manages named and default exports to maintain modular consistency and organized import statements.
  • Non-JavaScript Asset Imports - Provides standards for integrating non-JavaScript assets like CSS and templates into the module dependency tree.
  • Package Dependency Management - Defines how to declare required and development dependencies using version range constraints.
  • Build Artifact Separations - Provides guidelines for distinguishing development source files from compiled production assets to maintain clean project structures.
  • Code Documentation Standards - Standardizes the use of JSDoc block comments and tags to create self-documenting code.
  • Arrow Function Expressions - Implements coding standards for arrow function expressions, including rules for parentheses and curly braces.
  • Module Factory Patterns - Establishes the use of factory functions to create modules with consistent associations between logic and file paths.
  • Style Guide Enforcers - Specifies the use of automated linting and fixing tools to enforce defined frontend coding standards.
  • Vendor Code Isolation - Isolates external library packages into dedicated directories to prevent accidental modification of vendor code.
  • Semantic HTML Accessibility - Enforces the use of semantic HTML tags according to their intended meaning to ensure web accessibility.
  • Typography Application Standards - Defines font-family ordering and minimum sizes to ensure typographic consistency across platforms.
  • Pure Components - Implements logic to minimize browser updates by skipping rendering cycles when component data remains unchanged.
  • Performance Optimizations - Defines rules for simplifying CSS selectors to speed up style calculations and improve maintainability.
  • Markup Formatting Standards - Enforces the use of lowercase tags and double-quoted attributes to ensure consistent HTML markup.
  • Accessible Form Patterns - Provides guidelines for associating form controls with labels and setting explicit button types for accessibility.
  • Web Accessibility Compliance - Implements semantic HTML and accessible form controls to comply with web accessibility standards.
  • Media Asset Standards - Manages image source requirements and establishes rules for using img tags versus CSS backgrounds.
  • Stylesheet Maintainability Standards - Applies encoding and organization rules to ensure maintainability across Less stylesheets.
  • Formatting Rules - Groups media queries with related rules and formats each condition on a new line for better readability.
  • Template Formatting Standards - Defines indentation and syntax rules for templates to ensure HTML validity and readability.
  • Visual Layering Systems - Implements a tiered z-index strategy to prevent element overlap conflicts in the UI.
  • Asynchronous Module Loading - Defines standards for managing dependencies using the Asynchronous Module Definition (AMD) pattern for portable code units.
  • CSS Animation Patterns - Establishes best practices for using high-performance CSS properties to ensure smooth animations.
  • Property Declaration Ordering - Groups CSS properties by layout, box model, and typography to improve stylesheet readability.
  • Vendor Prefix and CSS Hack Standards - Defines the order of vendor-prefixed properties and the use of selector-based hacks for consistent browser rendering.
  • Performance Optimizations - Provides strategies for increasing rendering speed by reducing page reflows and direct DOM manipulations.
  • Architecture Patterns - Organizes page entry files to support both single-page and multi-page application architectures.
  • Component Update Optimizations - Implements pure component patterns and logic to reduce unnecessary UI re-renders.
  • Render-Blocking Resource Optimization - Defines asset placement and URL strategies to prevent render-blocking and eliminate flashes of unstyled content.
  • Code Quality and Standards - Technical specifications and coding standards.
  • Front End Standards - Standardized coding specifications for front-end development.
  • Software Architecture - Standardized specifications for front-end development.

Star 历史

ecomfe/spec 的 Star 历史图表ecomfe/spec 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Spec 的开源替代方案

相似的开源项目,按与 Spec 的功能重合度排序。
  • zh-google-styleguide/zh-google-styleguidezh-google-styleguide 的头像

    zh-google-styleguide/zh-google-styleguide

    10,977在 GitHub 上查看↗

    This project is a software engineering reference that provides a cross-language formatting standard and industry-standard practices for architectural patterns, memory management, and identifier naming. Its primary purpose is to implement a unified set of indentation and whitespace rules applied consistently across multiple distinct programming environments. The project specializes in technical documentation localization, providing Chinese language translations of official programming style guides. It maps original English coding standards to Chinese language references to maintain meaning acr

    Makefile
    在 GitHub 上查看↗10,977
  • wearehive/project-guidelineswearehive 的头像

    wearehive/project-guidelines

    29,458在 GitHub 上查看↗

    This project is a comprehensive set of architectural and coding standards for organizing and maintaining high-quality JavaScript applications. It provides a framework for JavaScript project best practices across the full software development lifecycle, establishing unified guidelines for project organization and development. The guidelines cover specific standards for REST API design, utilizing resource-oriented interfaces and standardized HTTP methods. It also includes a web accessibility standard focused on semantic HTML and automated audits, alongside a defined Git workflow standard for br

    JavaScript
    在 GitHub 上查看↗29,458
  • bendc/frontend-guidelinesbendc 的头像

    bendc/frontend-guidelines

    9,089在 GitHub 上查看↗

    This project is a comprehensive collection of frontend development best practices and standards. It provides guides for writing semantic HTML, efficient CSS, and functional JavaScript to improve overall web performance and accessibility. The repository establishes frameworks for modern CSS architecture, focusing on specificity management and the use of Flexbox and Grid for predictable layouts. It outlines patterns for functional JavaScript programming, emphasizing the use of pure functions and composition to reduce execution time and dependency bloat. The guidelines cover several core capabi

    在 GitHub 上查看↗9,089
  • amdjs/amdjs-apiamdjs 的头像

    amdjs/amdjs-api

    4,296在 GitHub 上查看↗

    This project provides the technical standards and API specifications for asynchronous JavaScript module loaders. It defines the protocols for defining, referencing, and loading modular code to ensure consistent execution and interoperability across different browser environments. The system establishes a standard interface for fetching and initializing JavaScript dependencies and non-code assets without blocking the main browser thread. It includes a resource loader interface for mapping module identifiers to physical file paths and resolving relative dependencies into absolute URLs. The cap

    在 GitHub 上查看↗4,296
查看 Spec 的所有 30 个替代方案→

常见问题解答

ecomfe/spec 是做什么的?

Spec 是一套全面的前端编码标准规范和项目架构指南。它提供了一个用于组织目录结构、模块依赖和包布局的框架,以创建可扩展且可预测的代码库。

ecomfe/spec 的主要功能有哪些?

ecomfe/spec 的主要功能包括:Frontend Code Governance, JavaScript Best Practices, JSON Data Exchange, Code Style Standardization, Module Dependency Classification, Source Code Module Imports, Module Path Resolution, Component Governance Standards。

ecomfe/spec 有哪些开源替代品?

ecomfe/spec 的开源替代品包括: zh-google-styleguide/zh-google-styleguide — This project is a software engineering reference that provides a cross-language formatting standard and… wearehive/project-guidelines — This project is a comprehensive set of architectural and coding standards for organizing and maintaining high-quality… bendc/frontend-guidelines — This project is a comprehensive collection of frontend development best practices and standards. It provides guides… amdjs/amdjs-api — This project provides the technical standards and API specifications for asynchronous JavaScript module loaders. It… labs42io/clean-code-typescript — This project is a set of software engineering standards and architectural patterns for writing maintainable and… felixge/node-style-guide — This project is a JavaScript style guide and Node.js coding standard designed to ensure the creation of consistent,…