百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

GPortfolio

> 开发工具
开源

基于 GitHub 配置文件创建自动投资组合

369 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

基于 GitHub 配置文件创建自动投资组合

GPortfolio

Introducing

Automatic portfolio creation based on Github profile.

Example - Default theme: Github / Website

Previous Version v3

Features

  • All settings are in one file config.ts
  • Vanilla JS, no frameworks
  • Ability to change data on the fly (in dev mode, you just need to refresh the page)
  • Adding new services (like Github API) to get data and fill the template
  • Configuring, sorting and filtering the received data
  • Ability to add new templates and switch between them
  • Support for Progressive Web Apps (offline access)
  • Support for The Open Graph protocol (social share)
  • Automatic daily page build with Github Actions

How to install

  • Fork this repository
  • Rename the forked repository to .github.io | [Settings -> Repository name]
  • Enable Github Actions and profile.yml for autodeploy | [Actions tab -> profile.yml]
  • Generate new access token and add this value to the repository settings as ACCESS_TOKEN | [Settings -> Secret]
  • Fill the config.ts file in root directory with your data and push changes
  • Change Github page to gh-pages branch | [Settings -> Pages -> Source]
  • Open the site (.github.io)

Templates

Config

Not all possible data are listed here, you can find more in IConfig interface. Also use typehint hints from your IDE.

All images must be loaded via callback, example:

javascript
image: () => require('./public/my-image.png')

If the image is a link from the Internet, then simply:

javascript
image: 'https://example.com/image.png'

Example

…

Filter

Filtering allows you to filter data when displaying information on the site.

Use cases

Output repositories that are not forks AND number of stars greater than 10.

typescript
[
  [
    { attr: 'fork', values: false },
    { attr: 'stargazers_count', values: 10, options: { sign: '>' } },
  ]
]

Output repositories that are not forks OR number of stars less than 10.

typescript
[
  [
    { attr: 'fork', values: false },
  ],
  [
    { attr: 'stargazers_count', values: 10, options: { sign: '' } },
    { attr: 'language', values: 'JavaScript', revert: true },
  ],
  [
    { attr: 'language', values: 'TypeScript' },
  ],
]

Sorter

Sorting allows you to sort data while displaying information on the site.

Use cases

Sort repositories by creation date.

typescript
[
  { attr: 'created_at', sortByDesc: true },
]

Sort the repositories first by the number of stars, and then by creation date.

typescript
[
  { attr: 'created_at', sortByDesc: true },
  { attr: 'stargazers_count', sortByDesc: true },
]

Utils

For Github, a token is required to get information about the organization's repositories.

All data is stored in the ./data folder.

bash
# Fetch Github data
$ yarn github:profile ACCESS_TOKEN
$ yarn github:repositories ACCESS_TOKEN

How to contribute

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Detailed changes for each release are documented in the CHANGELOG.md.

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcvgithubgithub-pagespersonal-website

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具