@urmzd/github-insights 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.gitattributes +28 -0
  2. package/.github/dependabot.yml +6 -0
  3. package/.github/pull_request_template.md +14 -0
  4. package/.github/workflows/ci.yml +93 -0
  5. package/.github/workflows/release.yml +59 -0
  6. package/.nvmrc +1 -0
  7. package/.pre-commit-config.yaml +5 -0
  8. package/AGENTS.md +69 -0
  9. package/CHANGELOG.md +260 -0
  10. package/CONTRIBUTING.md +87 -0
  11. package/LICENSE +190 -0
  12. package/README.md +188 -0
  13. package/action.yml +45 -0
  14. package/biome.json +40 -0
  15. package/examples/classic/README.md +9 -0
  16. package/examples/classic/index.svg +14 -0
  17. package/examples/classic/metrics-calendar.svg +14 -0
  18. package/examples/classic/metrics-complexity.svg +14 -0
  19. package/examples/classic/metrics-contributions.svg +14 -0
  20. package/examples/classic/metrics-expertise.svg +14 -0
  21. package/examples/classic/metrics-languages.svg +14 -0
  22. package/examples/classic/metrics-pulse.svg +14 -0
  23. package/examples/ecosystem/README.md +59 -0
  24. package/examples/ecosystem/index.svg +14 -0
  25. package/examples/ecosystem/metrics-calendar.svg +14 -0
  26. package/examples/ecosystem/metrics-complexity.svg +14 -0
  27. package/examples/ecosystem/metrics-contributions.svg +14 -0
  28. package/examples/ecosystem/metrics-expertise.svg +14 -0
  29. package/examples/ecosystem/metrics-languages.svg +14 -0
  30. package/examples/ecosystem/metrics-pulse.svg +14 -0
  31. package/examples/minimal/README.md +9 -0
  32. package/examples/minimal/index.svg +14 -0
  33. package/examples/minimal/metrics-calendar.svg +14 -0
  34. package/examples/minimal/metrics-complexity.svg +14 -0
  35. package/examples/minimal/metrics-contributions.svg +14 -0
  36. package/examples/minimal/metrics-expertise.svg +14 -0
  37. package/examples/minimal/metrics-languages.svg +14 -0
  38. package/examples/minimal/metrics-pulse.svg +14 -0
  39. package/examples/modern/README.md +111 -0
  40. package/examples/modern/index.svg +14 -0
  41. package/examples/modern/metrics-calendar.svg +14 -0
  42. package/examples/modern/metrics-complexity.svg +14 -0
  43. package/examples/modern/metrics-contributions.svg +14 -0
  44. package/examples/modern/metrics-expertise.svg +14 -0
  45. package/examples/modern/metrics-languages.svg +14 -0
  46. package/examples/modern/metrics-pulse.svg +14 -0
  47. package/llms.txt +24 -0
  48. package/metrics/index.svg +14 -0
  49. package/metrics/metrics-calendar.svg +14 -0
  50. package/metrics/metrics-complexity.svg +14 -0
  51. package/metrics/metrics-contributions.svg +14 -0
  52. package/metrics/metrics-domains.svg +14 -0
  53. package/metrics/metrics-expertise.svg +14 -0
  54. package/metrics/metrics-languages.svg +14 -0
  55. package/metrics/metrics-pulse.svg +14 -0
  56. package/metrics/metrics-tech-stack.svg +14 -0
  57. package/package.json +35 -0
  58. package/skills/github-insights/SKILL.md +237 -0
  59. package/sr.yaml +16 -0
  60. package/src/__fixtures__/repos.ts +84 -0
  61. package/src/api.ts +729 -0
  62. package/src/components/bar-chart.test.tsx +38 -0
  63. package/src/components/bar-chart.tsx +54 -0
  64. package/src/components/contribution-calendar.test.tsx +44 -0
  65. package/src/components/contribution-calendar.tsx +94 -0
  66. package/src/components/contribution-cards.test.tsx +36 -0
  67. package/src/components/contribution-cards.tsx +58 -0
  68. package/src/components/donut-chart.test.tsx +36 -0
  69. package/src/components/donut-chart.tsx +102 -0
  70. package/src/components/full-svg.test.tsx +54 -0
  71. package/src/components/full-svg.tsx +59 -0
  72. package/src/components/project-cards.test.tsx +46 -0
  73. package/src/components/project-cards.tsx +66 -0
  74. package/src/components/section.test.tsx +69 -0
  75. package/src/components/section.tsx +79 -0
  76. package/src/components/stat-cards.test.tsx +32 -0
  77. package/src/components/stat-cards.tsx +57 -0
  78. package/src/components/style-defs.test.tsx +26 -0
  79. package/src/components/style-defs.tsx +27 -0
  80. package/src/components/tech-highlights.test.tsx +63 -0
  81. package/src/components/tech-highlights.tsx +109 -0
  82. package/src/config.test.ts +127 -0
  83. package/src/config.ts +103 -0
  84. package/src/index.ts +363 -0
  85. package/src/jsx-factory.test.tsx +86 -0
  86. package/src/jsx-factory.ts +46 -0
  87. package/src/jsx.d.ts +6 -0
  88. package/src/metrics.test.ts +669 -0
  89. package/src/metrics.ts +365 -0
  90. package/src/parsers.test.ts +247 -0
  91. package/src/parsers.ts +146 -0
  92. package/src/readme.test.ts +189 -0
  93. package/src/readme.ts +70 -0
  94. package/src/svg-utils.test.ts +66 -0
  95. package/src/svg-utils.ts +33 -0
  96. package/src/templates.test.ts +412 -0
  97. package/src/templates.ts +296 -0
  98. package/src/theme.ts +33 -0
  99. package/src/types.ts +235 -0
  100. package/teasr.toml +14 -0
  101. package/tsconfig.json +21 -0
  102. package/vitest.config.ts +12 -0
package/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 urmzd
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,188 @@
1
+ <p align="center">
2
+ <h1 align="center">GitHub Insights</h1>
3
+ <p align="center">
4
+ Generate beautiful SVG insights visualizations for your GitHub profile README.
5
+ <br /><br />
6
+ <a href="https://github.com/urmzd/github-insights/releases">Install</a>
7
+ &middot;
8
+ <a href="https://github.com/urmzd/github-insights/issues">Report Bug</a>
9
+ &middot;
10
+ <a href="https://github.com/urmzd">Profile Demo</a>
11
+ </p>
12
+ </p>
13
+
14
+ <p align="center">
15
+ <a href="https://github.com/urmzd/github-insights/actions/workflows/ci.yml"><img src="https://github.com/urmzd/github-insights/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
16
+ <a href="https://github.com/urmzd/github-insights/actions/workflows/release.yml"><img src="https://github.com/urmzd/github-insights/actions/workflows/release.yml/badge.svg" alt="Release"></a>
17
+ <a href="https://github.com/urmzd/github-insights/issues"><img src="https://img.shields.io/github/issues/urmzd/github-insights" alt="Issues"></a>
18
+ <a href="https://github.com/urmzd/github-insights/pulls"><img src="https://img.shields.io/github/issues-pr/urmzd/github-insights" alt="Pull Requests"></a>
19
+ <a href="https://github.com/urmzd/github-insights/blob/main/LICENSE"><img src="https://img.shields.io/github/license/urmzd/github-insights" alt="License"></a>
20
+ <a href="https://www.npmjs.com/package/@urmzd/github-insights"><img src="https://img.shields.io/npm/v/@urmzd/github-insights" alt="npm version"></a>
21
+ </p>
22
+
23
+ ![Example output](assets/insights/index.svg)
24
+
25
+ ## Features
26
+
27
+ - **Language breakdown** — donut chart of languages by bytes across all public repos
28
+ - **AI expertise analysis** — categorized skill bars with proficiency scores, powered by GitHub Models
29
+ - **AI preamble generation** — auto-generated profile introduction (or supply your own `PREAMBLE.md`)
30
+ - **Social badges** — auto-detected from your GitHub profile (website, Twitter, LinkedIn, etc.)
31
+ - **Contribution pulse** — commits, PRs, reviews, and active repos at a glance
32
+ - **Signature projects** — top repos by stars with descriptions
33
+ - **Open source contributions** — external repos you've contributed to
34
+ - **Configuration** — customize name, title, bio, and more via `github-insights.yml`
35
+
36
+ ## Quick Start
37
+
38
+ Create `.github/workflows/metrics.yml` in your profile repository (`<username>/<username>`):
39
+
40
+ ```yaml
41
+ name: Metrics
42
+ on:
43
+ schedule:
44
+ - cron: "0 0 * * *" # daily
45
+ workflow_dispatch:
46
+
47
+ permissions:
48
+ contents: write
49
+ models: read
50
+
51
+ jobs:
52
+ generate:
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - uses: actions/checkout@v4
56
+ - uses: urmzd/github-insights@main
57
+ with:
58
+ github-token: ${{ secrets.GITHUB_TOKEN }}
59
+ ```
60
+
61
+ The action commits updated SVGs and a generated `README.md` to your repo automatically.
62
+
63
+ ## Inputs
64
+
65
+ | Input | Description | Default |
66
+ |-------|-------------|---------|
67
+ | `github-token` | GitHub token (needs `repo` read + `models:read` for AI) | `${{ github.token }}` |
68
+ | `username` | GitHub username to generate metrics for | `${{ github.repository_owner }}` |
69
+ | `output-dir` | Directory to write SVG files to | `assets/insights` |
70
+ | `commit-push` | Whether to commit and push generated files | `true` (CI) / `false` (local) |
71
+ | `commit-message` | Commit message for generated files | `chore: update metrics` |
72
+ | `commit-name` | Git user name for commits | `github-actions[bot]` |
73
+ | `commit-email` | Git user email for commits | `41898282+github-actions[bot]@users.noreply.github.com` |
74
+ | `config-file` | Path to config file | `github-insights.yml` |
75
+ | `readme-path` | Output path for the generated profile README (set to `none` to skip) | `README.md` (CI) / `_README.md` (local) |
76
+ | `index-only` | When `true`, embeds only the combined `index.svg` in the generated README; when `false`, embeds each section SVG as a separate image (e.g., `metrics-languages.svg`, `metrics-expertise.svg`, etc.) | `true` |
77
+
78
+ ## Configuration
79
+
80
+ Create `github-insights.yml` (or `.yaml`) in your repo root:
81
+
82
+ ```yaml
83
+ name: Your Name
84
+ pronunciation: your-name
85
+ title: Software Engineer
86
+ desired_title: Senior Software Engineer
87
+ bio: Building things on the internet.
88
+ preamble: PREAMBLE.md # path to custom preamble (optional)
89
+ ```
90
+
91
+ All fields are optional. The `UserConfig` type in `src/types.ts` defines the full schema.
92
+
93
+ > **Note:** The legacy config filename `.github-metrics.toml` (TOML format) is still supported but deprecated. Please migrate to `github-insights.yml`.
94
+
95
+ ## AI Features
96
+
97
+ ### Expertise Analysis
98
+
99
+ The action uses GitHub Models to analyze your languages, dependencies, topics, and repo READMEs, then produces categorized skill bars with proficiency scores. Requires the `models:read` permission on your token.
100
+
101
+ ### Preamble Generation
102
+
103
+ When no custom preamble is provided, the action uses AI to generate a profile introduction. The generated preamble consists of 2-4 short paragraphs drawn from your profile bio, title, expertise areas, top languages, and notable projects. It uses a professional but friendly tone and does not include a heading.
104
+
105
+ The preamble ends with a row of shields.io social badges for any detected links — website, Twitter/X, LinkedIn, and other social accounts from your GitHub profile. A GitHub badge is not included since the README is already on GitHub.
106
+
107
+ To use your own text instead, create a `PREAMBLE.md` file in the repo root, or point to a custom file via the `preamble` field in `github-insights.yml`.
108
+
109
+ ### Token Permissions
110
+
111
+ For AI features, your workflow needs:
112
+
113
+ ```yaml
114
+ permissions:
115
+ contents: write # to commit generated files
116
+ models: read # for AI expertise analysis and preamble generation
117
+ ```
118
+
119
+ ## Templates
120
+
121
+ Four built-in templates control the generated README layout:
122
+
123
+ | Template | Description |
124
+ |----------|-------------|
125
+ | `classic` | Name heading, title blockquote, preamble, SVG metrics, bio footer |
126
+ | `modern` | Wave greeting, social badges, projects by activity (Active/Maintained/Inactive), GitHub Stats, expertise |
127
+ | `minimal` | First name heading, preamble, social badges, SVG metrics |
128
+ | `ecosystem` | Wave greeting, social badges, projects by purpose (Developer Tools/SDKs/Applications/Research), GitHub Stats, expertise |
129
+
130
+ Set via the `template` input (default: `classic`) or `github-insights.yml`:
131
+
132
+ ```yaml
133
+ - uses: urmzd/github-insights@v1
134
+ with:
135
+ template: ecosystem
136
+ ```
137
+
138
+ The **ecosystem** template groups projects into purpose-based tables using AI classification, matching the layout used by [urmzd's profile README](https://github.com/urmzd).
139
+
140
+ ## Local Development
141
+
142
+ ### Prerequisites
143
+
144
+ - Node.js 22+
145
+ - `gh` CLI (authenticated) for local generation
146
+
147
+ ### Commands
148
+
149
+ ```sh
150
+ npm run ci # full CI check (fmt, lint, typecheck, test, build)
151
+ npm run generate # generate metrics locally (uses gh auth token)
152
+ npm run build # build ncc bundle
153
+ npm test # run tests
154
+ npm run typecheck # type-check
155
+ npm run lint # lint
156
+ npm run fmt # format check
157
+ npm run fmt:fix # format fix
158
+ ```
159
+
160
+ > **Note:** When running locally (outside CI), `commit-push` defaults to `false` and `readme-path` defaults to `_README.md`, so `npm run generate` will not overwrite your project README or push commits.
161
+
162
+ ## Output Files
163
+
164
+ | File | Description |
165
+ |------|-------------|
166
+ | `assets/insights/index.svg` | Combined visualization with all sections |
167
+ | `assets/insights/metrics-pulse.svg` | Contribution activity stats |
168
+ | `assets/insights/metrics-languages.svg` | Language breakdown donut chart |
169
+ | `assets/insights/metrics-expertise.svg` | AI-generated expertise bars |
170
+ | `assets/insights/metrics-complexity.svg` | Top projects by stars |
171
+ | `assets/insights/metrics-contributions.svg` | External open source contributions |
172
+ | `README.md` | Generated profile README (CI); `_README.md` locally |
173
+
174
+ ## Agent Skill
175
+
176
+ This project ships an [Agent Skill](https://github.com/vercel-labs/skills) for use with Claude Code, Cursor, and other compatible agents.
177
+
178
+ **Install:**
179
+
180
+ ```sh
181
+ npx skills add urmzd/github-insights
182
+ ```
183
+
184
+ Once installed, use `/github-insights` to generate and customize SVG profile metrics.
185
+
186
+ ---
187
+
188
+ <sub>Created using [@urmzd/github-insights](https://github.com/urmzd/github-insights)</sub>
package/action.yml ADDED
@@ -0,0 +1,45 @@
1
+ name: "GitHub Insights"
2
+ description: "Generate SVG insights visualizations for your GitHub profile README"
3
+ branding:
4
+ icon: "bar-chart-2"
5
+ color: "blue"
6
+ inputs:
7
+ github-token:
8
+ description: "GitHub token (needs repo read + models:read for AI domain analysis)"
9
+ default: ${{ github.token }}
10
+ username:
11
+ description: "GitHub username to generate metrics for"
12
+ default: ${{ github.repository_owner }}
13
+ output-dir:
14
+ description: "Directory to write SVG files to"
15
+ default: "assets/insights"
16
+ commit-push:
17
+ description: "Whether to commit and push generated files"
18
+ default: "true"
19
+ commit-message:
20
+ description: "Commit message when committing generated files"
21
+ default: "chore: update metrics"
22
+ commit-name:
23
+ description: "Git user name for commits"
24
+ default: "github-actions[bot]"
25
+ commit-email:
26
+ description: "Git user email for commits"
27
+ default: "41898282+github-actions[bot]@users.noreply.github.com"
28
+ config-file:
29
+ description: "Path to github-insights.yml config file (also accepts .yaml or legacy .github-metrics.toml)"
30
+ default: "github-insights.yml"
31
+ readme-path:
32
+ description: "Output path for the generated profile README (set to 'none' to skip; defaults to _README.md locally)"
33
+ default: "README.md"
34
+ index-only:
35
+ description: "Embed only the combined index.svg; when false, embeds each section SVG individually"
36
+ default: "true"
37
+ template:
38
+ description: "README template to use: classic, modern, minimal, or ecosystem"
39
+ default: "classic"
40
+ sections:
41
+ description: "Comma-separated list of sections to generate (e.g. pulse,languages,expertise,projects,contributions,calendar). Empty = all."
42
+ default: ""
43
+ runs:
44
+ using: "node24"
45
+ main: "dist/index.js"
package/biome.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
3
+ "formatter": {
4
+ "enabled": true,
5
+ "indentStyle": "space",
6
+ "indentWidth": 2,
7
+ "lineWidth": 80
8
+ },
9
+ "javascript": {
10
+ "formatter": {
11
+ "trailingCommas": "all"
12
+ }
13
+ },
14
+ "linter": {
15
+ "enabled": true,
16
+ "rules": {
17
+ "recommended": true,
18
+ "correctness": {
19
+ "noUnusedVariables": {
20
+ "level": "error",
21
+ "fix": "none"
22
+ },
23
+ "noUnusedImports": "off"
24
+ },
25
+ "a11y": {
26
+ "noSvgWithoutTitle": "off"
27
+ }
28
+ }
29
+ },
30
+ "assist": {
31
+ "actions": {
32
+ "source": {
33
+ "organizeImports": "on"
34
+ }
35
+ }
36
+ },
37
+ "files": {
38
+ "includes": ["src/**", "!!**/dist/", "!!**/node_modules/"]
39
+ }
40
+ }
@@ -0,0 +1,9 @@
1
+ # Urmzd Mukhammadnaim
2
+
3
+ I build robust, multi-language systems—from AI-powered CLI tools and resume generators in Go, Rust, and TypeScript to privacy-first agents and knowledge graphs—empowering people with scalable, user-centric tech.
4
+
5
+ [![urmzd.com](https://img.shields.io/badge/urmzd.com-4285F4?style=flat&logo=google-chrome&logoColor=white)](https://urmzd.com) [![@urmzd_](https://img.shields.io/badge/@urmzd__-000000?style=flat&logo=x&logoColor=white)](https://x.com/urmzd_) [![urmzd](https://img.shields.io/badge/urmzd-0A66C2?style=flat&logo=linkedin&logoColor=white)](https://linkedin.com/in/urmzd)
6
+
7
+ ![GitHub Metrics](./index.svg)
8
+
9
+ <sub>Last generated on 2026-03-16 using [@urmzd/github-insights](https://github.com/urmzd/github-insights)</sub>