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

twitter-interaction-circles

> 编程语言
开源

一份关于如何为 Twitter 创建互动圈的指南

197 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一份关于如何为 Twitter 创建互动圈的指南

Twitter Interaction Circle

Originally from Twopcharts it has been making the round in the dev community. I believe this is a great opportunity for a project to learn from. The concept is easy and straightforward but the realization encompasses a lot of concepts.

You can read more about the realization of this project on the HackerTyper Blog.

Installation

bash
git clone [email protected]:duiker101/twitter-interaction-circle.git
cd twitter-interaction-circle
yarn install

Run with

bash
yarn build

You can also generate a text version of the image with the complete list of the presented users with the following command

bash
yarn build --text

The output will go in users.txt file in the root of the project

Setup

To use the project you will need Twitter API keys. You can get one on the developer portal.

As this project uses only public data, you don't need an authorization key, but you can generate a Bearer Token. This will prevent you from fetching any private data but will grant you slightly higher rate limiting.

More information about Twitter's bearer tokens can be found here

Once you have your consumer keys, rename the .env.example file .env and put them in there, it should look like this:

dotenv
CONSUMER_KEY=AAAA
CONSUMER_SECRET=BBBBBB

Make sure you don't have spaces.

Modifications

If you wish, you can replace the first part of the main loop in the index.js to use the getUser() function instead of getMe(). This will allow you to generate the circles for any public Twitter user. All the API methods used take advantage only of public data.

Challenges

You can try to apply the following changes to test your knowledge:

  • Apply a shade to each avatar based on the most common type of interaction
  • Fetch the circles for another user
  • Render a grid instead of the circles

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

JavaScript

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言