• Stars
    star
    6,505
  • Rank 6,094 (Top 0.2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Public Slack organizations made easy

Features

  • A landing page you can point users to fill in their emails and receive an invite (https://slack.yourdomain.com)
  • An <iframe> badge to embed on any website that shows connected users in realtime with socket.io.
  • A SVG badge that works well from static mediums (like GitHub README pages)
  • Abuse prevention via Google reCAPTCHA

Usage

Badges

Realtime (demo)

<script async defer src="https://slack.yourdomain.com/slackin.js"></script>
<!-- append "?large" to the URL for the large version -->

SVG (demo)

<img src="https://slack.yourdomain.com/badge.svg">

API

Loading slackin will return a Function that creates a HTTP.Server instance:

const slackin = require('slackin')

slackin.default({
  token: 'yourtoken',                             // required
  interval: 1000,
  org: 'your-slack-subdomain',                    // required
  path: '/some/path/you/host/slackin/under/',     // defaults to '/'
  channels: 'channel,channel,...',                // for single channel mode
  silent: false                                   // suppresses warnings
}).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.

Caught a Bug?

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Uninstall slackin if it's already installed: npm uninstall -g slack
  3. Link it to the global module directory: npm link
  4. Transpile the source code and watch for changes: npm start

Yey! Now can use the slack command everywhere.

More Repositories

1

wifi-password

Get the password of the wifi you're on (bash)
Shell
4,423
star
2

blog

MDX
1,208
star
3

spot

Tiny file search utility (bash)
Shell
927
star
4

next-ai-news

TypeScript
811
star
5

chat-example

HTML
796
star
6

weplay

Collaborative gameboy emulation powered 100% by JavaScript
JavaScript
605
star
7

how-is-this-not-illegal

A demo of using RSC and Vercel Postgres, legally
JavaScript
582
star
8

clif

Dead easy terminal GIFs, from the terminal.
JavaScript
448
star
9

node.websocket.js

WebSocket-compatible realtime HTTP server implemented with Node.JS
JavaScript
265
star
10

react-postgres-components

An experiment on deploying remote functions that run inside Postgres using v8
TypeScript
176
star
11

wingpt

An AI chatbot in Win95 style
TypeScript
166
star
12

node.dbslayer.js

DBSlayer (MySQL) support for Node.JS
JavaScript
150
star
13

jamstack-ecommerce

JavaScript
128
star
14

wordledge

TypeScript
121
star
15

chrome-spdy-indicator

Chrome Extension to see an indicator of SPDY support in the address bar.
JavaScript
109
star
16

smashingnode

Repository for my book "Smashing Node"
JavaScript
106
star
17

TextboxList

MooTools tokenizer
JavaScript
101
star
18

gameboy

JavaScript
89
star
19

genui-demo

TypeScript
82
star
20

emoji-todo

A simple app to demonstate the ease of fetching and mutating data with Next.js App Router, RSC, and Server Actions.
TypeScript
76
star
21

stream-chart

TypeScript
65
star
22

chromekit

HTML5 window chroming
JavaScript
64
star
23

insights-chrome

IO Insights chrome extension
JavaScript
58
star
24

raycast-web-dev-measure

Raycast extension to quickly measure a site's performance using PageSpeed Insights
Shell
53
star
25

blog-views

JavaScript
49
star
26

pokeless

JavaScript
47
star
27

latency-io

Socket.IO echo example with latency measurement / graphing
JavaScript
42
star
28

jsconf-todo-demo

Demo application using socket.io+nodestream for realtime, express+mongoose for backend
JavaScript
37
star
29

blog-starter

JavaScript
33
star
30

berkshire-deck-demo

JavaScript
30
star
31

next-sqlite

TypeScript
26
star
32

PluginsKit

Plugins repository for open source projects linked to GitHub
PHP
25
star
33

weplay-emulator

runs the emulator that communicates with the weplay io backend
JavaScript
24
star
34

express-trace

Express route/middleware tracer & profiler
JavaScript
21
star
35

s.js

tiny javascript sprintf
JavaScript
20
star
36

jsconfar

CSS
19
star
37

gitfollow

Add a GitHub followers badge to your website!
JavaScript
18
star
38

Cube5

A CSS3 animated 3D Cube layout
15
star
39

phpshortener

PHP URL Shortening encoder/decoder class.
PHP
14
star
40

ray-city

A city animation that fits in a tweet
HTML
14
star
41

APNG

Animated PNG cross-browser utility.
JavaScript
13
star
42

moogets

Guillermo's MooTools plugins.
JavaScript
13
star
43

gox-now

Example of cross-compiling Go on Now and hosting the resulting binaries in the Now CDN
Dockerfile
13
star
44

weplay-web

JavaScript
12
star
45

mongoose-meetup-04-05

Examples used for the presentation
JavaScript
11
star
46

pkg-now

Example of cross-compiling Node.js on Now and hosting the resulting binaries in the Now CDN
Dockerfile
10
star
47

oscon-chat

My oscon presentation chat app
JavaScript
10
star
48

define.js

Tiny Node.js script to pull definitions from Google
JavaScript
9
star
49

project-template-next.js

Next.js template for CodeSandbox Projects
TypeScript
8
star
50

ios6-bugs

Test cases for iOS6 Mobile Safari bugs
JavaScript
7
star
51

weplay-presence

JavaScript
6
star
52

mdx-deck-theme-berkshire

JavaScript
3
star
53

thereallybigone

CSS
3
star
54

brevity

Brevity is an operating system. Itโ€™s easy to use, free, and based on Linuxโ€ and web technologies.
JavaScript
3
star
55

inception.js

2
star
56

router

Fork of reach/router to demonstrate Now CI
JavaScript
2
star
57

belkirk-jekyll-demo

HTML
1
star
58

sample-app

JavaScript
1
star
59

blob-to-image

JavaScript
1
star
60

hi-fregante

HTML
1
star