
如果你用 DeepSeek、元宝AI、Copilot 等 AI 代为编写轩辕镜像的 docker pull、修改 compose 镜像地址,或排查拉取失败等问题,请让 AI 先读规则再动手,只要在 AI 对话里直接发送下面这句话即可:
生成 docker pull、修改 compose 的 image,或排查拉取失败前,请先阅读并严格遵守 https://xuanyuan.cloud/agents.md 中的规则。国内用户首推 DeepSeek、元宝 AI 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://github.com/zeit/art/blob/e081cf46e6609b51ac485dcc337ac6644c0da5e7/slackin/repo-banner.png
 <iframe> badge to embed on any website that shows connected users in realtime with socket.io.Check out the Demo, which is deployed live from the master branch. For the list of changes in slackin-extended see HISTORY.md.
Disclaimer: this project is not affiliated with Slack. The Slack logo and Slack API are copyright Slack Technologies, Inc.
, you can just set the two required parameters through now secrets:
bashgit clone https://github.com/emedvedev/slackin-extended.git now secrets add slack-subdomain "myslack" now secrets add slack-api-token "xoxb-YOUR-SLACK-TOKEN" now slackin-extended
The Docker container is available on Docker Hub: https://hub.docker.com/r/emedvedev/slackin-extended/.
To host Slackin-extended yourself, install it via npm and launch it on your server:
bashnpm install -g slackin-extended slackin "workspace-id" "your-slack-token"
Realtime (demo)
html<script async defer src="https://slack.yourdomain.com/slackin.js"></script> <!-- append "?large" to the URL for the large version -->
SVG (demo)
html<img src="https://slack.yourdomain.com/badge.svg">
By default, the badge background color will be set to your accent color, but you can customize both background and text colors through the query string:
html<img src="https://slack.yourdomain.com/badge.svg?bg=e01563&fg=ffffff">
Every CLI parameter, including mandatory arguments (workspace ID and token), can alternatively be configured through environment variables.
| Flag | Short | Environment variable | Default | Description |
|---|---|---|---|---|
| Positional 1 | — | SLACK_SUBDOMAIN | Required | Slack workspace ID (https://**{this}**.slack.com) |
| Positional 2 | — | SLACK_API_TOKEN | Required | API token |
| --port | -p | SLACKIN_PORT | 3000 | Port to listen on |
| --hostname | -h | SLACKIN_HOSTNAME | '0.0.0.0' | Hostname to listen on |
| --channels | -c | SLACKIN_CHANNELS | '' | One or more comma-separated channel names to allow single-channel guests |
| --emails | -e | SLACKIN_EMAILS | '' | Restrict sign-up to a list of emails (comma-separated; wildcards are supported) |
| --interval | -i | SLACKIN_INTERVAL | 60000 | How frequently (ms) to poll Slack |
| --path | -P | SLACKIN_PATH | / | Path to serve slackin under |
| --silent | -s | SLACKIN_SILENT | false | Do not print out warnings or errors |
| --cors | -x | SLACKIN_CORS | false | Enable CORS for all routes |
| --analytics | -a | SLACKIN_ANALYTICS | '' | Google Analytics ID |
| --recaptcha-secret | -R | RECAPTCHA_SECRET | '' | reCAPTCHA secret |
| --recaptcha-sitekey | -K | RECAPTCHA_SITEKEY | '' | reCAPTCHA sitekey |
| --recaptcha-invisible | -I | RECAPTCHA_INVISIBLE | '' | Use invisible reCAPTCHA |
| --theme | -T | SLACKIN_THEME | light | Color scheme to use, light or dark |
| --accent | -A | SLACKIN_ACCENT | #e01563 for light, #9a0e44 for dark | Accent color to use instead of a theme default |
| --coc | -C | SLACKIN_COC | '' | Full URL to a CoC that needs to be agreed to |
| --css | -S | SLACKIN_CSS | '' | Full URL to a custom CSS file to use on the main page |
SLACKIN_PAGE_DELAY | 0 | Delay (ms) between Slack API requests (may be required for large workspaces that hit the rate limit) | ||
SLACKIN_PROXY | false | Trust proxy headers (only use if Slackin is served behind a reverse proxy) | ||
SLACKIN_HTTPS_REDIRECT | '' | If a domain name is specified in this parameter and SLACKIN_PROXY is set to true, Slackin will redirect requests with x-forwarded-proto === 'http' to https://<SLACKIN_HTTPS_REDIRECT>/<original URL> | ||
SLACKIN_LETSENCRYPT | '' | Let's Encrypt challenge response |
Alternatively, you can specify the configuration parameters in a https://github.com/motdotla/dotenv: create a .env file in the root directory of your project and add environment-specific variables on new lines in the form of NAME=VALUE. For example:
SLACK_SUBDOMAIN=mysubdomain SLACK_API_TOKEN=SLACK-API-TOKEN SLACKIN_THEME=dark
Please use reCAPTCHA for your Slack to avoid request flooding by spambots. Here is where to get your secret and sitekey. Make sure you choose a v3 API key.
Invisible reCAPTCHA is recommended for the realtime badge users, as the regular CAPTCHA challenge is broken inside the iframe that opens on badge click.
You can find or generate your API test token at api.***/web. Important notes:
@slackin-inviter user (or similar), mark that user an admin, and use a test token from that dedicated admin user. Note that test tokens have actual permissions so you do not need to create an OAuth 2 app. Also check out the Slack docs on generating a test token.Important: If you use Slackin in single-channel mode, you'll only be able to invite as many external accounts as paying members you have times 5. If you are not getting invite emails, this might be the reason. Workaround: sign up for a free org, and set up Slackin to point to it (all channels will be visible).
npm uninstall -g slackin-extendednpm linknpm run dev, after setting up the needed environment variablesYay! Now can use the slackin command everywhere.
If changing accent colors and switching between light/dark themes isn't enough for you, all templates are stored inside views/ and can be easily modified. Stylesheets are stored in scss/, and both themes have a documented example of colors, variables and additional styles necessary to create your own.
If you end up creating another theme, you're more than welcome to submit a PR!
Loading slackin will return a Function that creates a HTTP.Server instance:
jsconst slackin = require('slackin-extended'); slackin({ token: 'SLACK-API-TOKEN', // reqired org: 'your-slack-subdomain', // required interval: 60000, // polling interval for Slack servers path: '/some/path/you/host/slackin/under/', // defaults to '/' cors: false, // set to "true" to enable CORS recaptcha: { secret: 'RECAPTCHA-SECRET', // reCAPTCHA secret sitekey: 'RECAPTCHA-SITEKEY', // reCAPTCHA sitekey invisible: true, // enable Invisible reCAPTCHA }, analytics: 'GOOGLE-ANALYTICS-ID', // Google Analytics ID theme: 'light', // color scheme: "light" or "dark" accent: 'teal', // accent color (for buttons, text accents, etc.) css: 'https://example.org/slackin-extra.css', // external CSS file to include channels: 'community-public,testing', // for single-channel mode emails: 'john@gmail.com,jane@gmail.com,*@johnandjane.com', // email whitelist coc: 'https://example.org/code-of-conduct', // code of conduct link proxy: false, // set to "true" if Slackin is set up behind a reverse proxy redirectFQDN: 'slack.myorg.com', // redirect requests with x-forwarded-proto === 'http' to this domain letsencrypt: 'LETSENCRYPT-CHALLENGE', // Let's Encrypt challenge silent: false, // suppress warnings server: http.Server(), // optional, allows passing in an existing http server object }).listen(3000)
This will show response times from Slack and how many online users you have on the console. The returned http.Server has an app property that is the express application that you can define or override routes on.
All the metadata for your organization can be fetched via a JSON HTTP request to /data.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
发给 Cursor、ChatGPT、豆包等 AI 的说明文档
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务