登录 注册
其他
403
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Elixir
语言
—
创建时间
最近更新

项目能做什么

适用于 Phoenix 的无头(Headless)UI 组件库。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Doggo

[![Hex](https://img.shields.io/hexpm/v/doggo)](https://hex.pm/packages/doggo) ![CI](https://github.com/woylie/doggo/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/woylie/doggo/badge.svg)](https://coveralls.io/github/woylie/doggo)

Headless UI component collection for Phoenix, focused on semantics and
accessibility.

For a full list of available components, please refer to the
[documentation](https://hexdocs.pm/doggo/Doggo.html).

Doggo ships as two packages: a Hex package called `doggo` that defines
Phoenix LiveView components and an npm package called `@woylie/doggo` that
defines the JavaScript hooks for those components. The hooks are described
below under [Phoenix LiveView Hooks](#phoenix-liveview-hooks).

## Installation

The package can be installed by adding `doggo` to your list of dependencies in
`mix.exs`:

```elixir
def deps do
  [
    {:doggo, "~> 0.18.4"}
  ]
end
```

Enable diagnostic checks at render time in `config/dev.exs` and
`config/test.exs` :

```elixir
config :doggo, :diagnostics, true
```

These checks raise errors if components are not wired up correctly, for example
if an accessible name is not set. If disabled, the checks are not compiled.

### Compatibility

This package is tested against the Elixir and OTP versions that are still
supported upstream. Older versions down to the requirement in `mix.exs` may
still work, but they are not covered by CI and not officially supported.

## Usage

Use `Doggo.Components` in your core components module or in a separate module.
`Doggo.Components` defines macros that generate Phoenix components.

```elixir
defmodule MyAppWeb.CoreComponents do
  use Doggo.Components
  use Phoenix.Component

  build_alert()
  build_alert_dialog()

  build_button(
    modifiers: [
      size: [values: ["normal", "small"], default: "normal"]
    ]
  )
end
```

Each modifier results in an additional attribute that is translated into a
data attribute. You can use the button defined above like this:

```html
<.button size="small">Edit</.button>
```

The resulting HTML code will look similar to:

```html
<button data-size="small">Edit</button>
```

If no `type` option is set, a `string` attribute is added, but you can use any
attribute type, as long as the value can be converted to a string. Boolean
attributes result in a presence-only boolean data attribute.

```elixir
build_button(modifiers: [full_width: [type: :boolean]])
```

If the value is `true`, the attribute is added:

```html
<!-- code -->
<.button full_width>Edit</.button>

<!-- output -->
<button data-full-width>Edit</button>
```

If the attribute is omitted or the value is `false`, the attribute is omitted:

```html
<!-- code -->
<.button full_width={false}>Edit</.button>

<!-- output -->
<button>Edit</button>
```

Most of the components have a base class that matches the component name.

You can override the base class in the component options:

```elixir
defmodule MyAppWeb.CoreComponents do
  use Doggo.Com
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 49.9 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 40.0 分,差异化空间 69.0 分(评分依据见评分卡)。

将 doggo 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期较高 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 doggo 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
mr-karan/doggo 中文介绍暂未生成
:dog: Command-line DNS Client for Humans. Written in Golang
4,554 Go
Nate711/StanfordDoggoProject 中文介绍暂未生成
Stanford Doggo is an open source quadruped robot that jumps,
2,580 -
Nate711/Doggo 中文介绍暂未生成
201 C++
BlobbyDev/DoggoBot 中文介绍暂未生成
A cool multi purpose discord bot with commands for Fun, Mode
100 JavaScript
inishchith/doggo 中文介绍暂未生成
🐕 your loyal digital companion who finds files the way you t
52 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 54 个 Release
社区活跃Star 403 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。