• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    JavaScript
  • Created almost 12 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

A 5 minute fork of a github project for a quick play and test

5 minute fork

Flattr this

Heard of 10 minute email? Well this is the same thing, except for github repos.

The number of times I've come across a cool demo, only to be faced with a github repo and no live link - it just bums me out.

So I made this (quickly - literally about 90 minutes), which reads the url, and forks the project. If the url is idle for 5 minutes, then it's automatically swept under the carpet.

The code is pretty gnarly, but don't judge me - I wanted quick and dirty.

Running

The project requires a github OAuth token to place API requests. If you are not sure how to generate an OAuth token Github have an article to help

To run:

GITHUB_TOKEN=token node index.js

Alternatively, you can put the token in a file in the root of this project called .env:

GITHUB_TOKEN=token
NODE_DEBUG=true #Set to false for production

.gitignore should ensure the file isn't sent up to github.

Development & debug mode

Since 5minfork uses the format http://<hash>.host.com/ as the cloned repo, testing locally can be challenging (unless you have a CNAME star rule - whic most people don't). So there is a debug mode that points all repos to abc123 as the hash, and unpon restart the forks and forks-loading directories are completely reset.

To enter debug mode:

NODE_DEBUG=true node index.js

How to fork for 5 minutes

Simply take a public github url and swap out the https://github.com for http://5minfork.com, wait a moment for the project to be cloned, and then you'll be redirected to a unique url which will serve up static content from the project.

License

MIT http://rem.mit-license.org

More Repositories

1

nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
JavaScript
25,505
star
2

html5demos

Collection of hacks and demos showing capability of HTML5 apps
HTML
4,692
star
3

mit-license

Hosted MIT License with details controlled through this repo
CSS
2,258
star
4

jsconsole

Web based console - for presentations and workshops
JavaScript
1,867
star
5

min.js

Super minimal selector and event library
JavaScript
1,096
star
6

inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
JavaScript
1,074
star
7

polyfills

Collection of polyfills that I've written
JavaScript
1,070
star
8

bind.js

bind.js - simple two way data binding to HTML and callbacks
JavaScript
697
star
9

jsonbin

A personal JSON store as a RESTful service
JavaScript
375
star
10

twitterlib

Twitter JavaScript API library
JavaScript
302
star
11

responsivepx

Helps you find the break point to help with responsive design
JavaScript
120
star
12

check

Checks the status of a list of urls
Shell
116
star
13

remysharp.com

My b:log and all its content in plain (unabashed) text
JavaScript
114
star
14

wm

webmention check service
HTML
101
star
15

snap

Creates a static snapshot of a website. Sort of like wget's mirror mode, but with nice urls
JavaScript
98
star
16

retrobot

πŸ€– A slack bot for retrospectives
JavaScript
95
star
17

servedir

Creates a simple node based web server for a directory
JavaScript
91
star
18

PhoneGap-Plugin-WebSocket

WebSocket support for PhoneGap (iPhone)
Objective-C
84
star
19

twivatar

Twitter RESTful avatar API
HTML
74
star
20

jsconsole-iphone

The iPhone native version of JS Console (with WebSocket support)
Objective-C
71
star
21

undefsafe

Simple *function* for retrieving deep object properties without getting "Cannot read property 'X' of undefined"
JavaScript
70
star
22

geo

Returns JSON(P) with country of visitor
JavaScript
69
star
23

libraries

Dumping ground for my little libraries
JavaScript
65
star
24

eventsource-h5d

EventSource HTML5 Doctor demo
JavaScript
65
star
25

cssprefix

A tool to help developers include the right vendor prefixes in their sites
JavaScript
52
star
26

feature-gateway

Simple, memory and JS based feature testing with express support.
JavaScript
48
star
27

memfetch

Caches fetch responses and promises for faster development
JavaScript
46
star
28

server-timings

Server-Timings header for express
JavaScript
45
star
29

next-http

Send and recieve http requests into banks - for the Spectrum Next
Assembly
45
star
30

read-body

A simple site to pull the body of the post out and reformat for readability
JavaScript
43
star
31

zx-tools

A collection of ZX web based tools and libraries
JavaScript
41
star
32

track

Interaction tracker library (mouse, touch, keyboard)
JavaScript
41
star
33

password-policy

A single resource for the best approach to password policies from all the great minds across the web
39
star
34

jqterm

A jq as a service (a different take on the the existing playground)
JavaScript
38
star
35

remote-tilt

Remotely send device orientation and motion events
JavaScript
38
star
36

now-realias

now realias will re-alias now deployments
JavaScript
35
star
37

next-training

Next.js training course material
JavaScript
34
star
38

dotfiles

My dotfiles (definitely a WIP)
Shell
33
star
39

denomon

Port of nodemon to deno
32
star
40

Socket.io-node-client

Client library for Socket.IO for running scripts from node, i.e. introduces io.Socket object
32
star
41

end-of-days

End of Days, a Digital Wellness app - to stop using the computer at night!
JavaScript
32
star
42

clite

Lite framework for node CLI utils. Pronounced: "slight".
JavaScript
27
star
43

unrot.link

Un-rot your links using the archive.org
JavaScript
26
star
44

present

A(nother) JavaScript Presentation Library
JavaScript
25
star
45

cloud-worker

Service Workers, but in "the cloud" ala CloudFlare workers
JavaScript
24
star
46

inlinerapp

Web version of the inline script (to inline your entire site)
JavaScript
23
star
47

tinnitus

Tinitus experiment to find and notch music
JavaScript
23
star
48

favs

Tool for capturing all your twitter favs
JavaScript
21
star
49

twitter-search-js

JavaScript based search filter for Twitter, matching the syntax of Twitter's existing search
20
star
50

changelog

JavaScript
20
star
51

twitpic-json

Twitpic JSON API to *get* images back out
Python
20
star
52

txt2bas

ZX Spectrum BASIC conversion tooling (specific support for NextBASIC)
JavaScript
19
star
53

marbles2

Marbles Squared game source
JavaScript
19
star
54

transform

transform globs of text into json
JavaScript
19
star
55

advent-of-code-solved

My advent of code, in jq…
jq
18
star
56

now-no-alias

CLI tool for now to list idle deploys (with no active aliases)
JavaScript
18
star
57

ps2-remote

A PS/2 keyboard remote adapter
C++
18
star
58

inline-log

Tiny module for capturing stdout/err in the browser.
HTML
17
star
59

light-dark-switcher

Light/Dark theme switcher for Firefox
JavaScript
16
star
60

stripe-tutorial

JavaScript
16
star
61

no-more-scroll-jacking

This extension prevents scroll jacking whilst holding a meta key
JavaScript
16
star
62

mdn-will-it-miss

Demo project for MDN toolchain article
JavaScript
15
star
63

autocache

Memorisation back by a persistent store
JavaScript
15
star
64

permalink

Creates permalinks on existing sites and jumps to them
JavaScript
14
star
65

nice-ls

My nice ls styles, but without messing with ls
JavaScript
14
star
66

harp-static

Simple harp.js static server (for heroku, etc)
JavaScript
14
star
67

jquery-api-browser

jQuery API browser backend and source database
JavaScript
14
star
68

gina

A Glitch CLI deploy tool
JavaScript
13
star
69

proxy

Simple http proxy reading a config (uses node-http-proxy)
JavaScript
13
star
70

tweed

Twitter feed processor for PHP with plugable modules
PHP
13
star
71

arduino

My arduino sketches
C
13
star
72

rest

Super simple Pebble app for rest intervals (like in the gym or pomodoro)
C
12
star
73

introducinghtml5

Code examples to accompany the book: Introducing HTML5
HTML
12
star
74

bins

All remy's bins
HTML
12
star
75

doesitmutate

JavaScript
11
star
76

next-ayfx

AYFX Driver for NextBASIC
Assembly
11
star
77

renvy

The create-react-app environment loader for consistent reuse in other projects with additions for command line usage.
JavaScript
10
star
78

twitter_avatars

JavaScript
10
star
79

nextbasic-procs

A mixed bag of NextBASIC procedures that I'm using on repeat.
9
star
80

goodreads

A mini project to collect all my Goodreads book reviews in a JSON format
JavaScript
9
star
81

zxdb-specnext-api

Barebones API for zxdb - intended for use on the zx spectrum next
JavaScript
9
star
82

templates

Collection of templates for project starting points (wip)
JavaScript
9
star
83

vscode-nextbasic

VS Code tools for NextBASIC
JavaScript
9
star
84

twists

Simple tool for creating twitter list members
JavaScript
9
star
85

midi-to-ps2

Source code for USB midi to PS/2 (and USB) customised to suit NextDAW
C++
9
star
86

isthe.link

Hosting for my mini side projects
JavaScript
8
star
87

hang

Hangs a web request using a simple node server
JavaScript
8
star
88

tetrisy

https://tetris.isthe.link
JavaScript
8
star
89

node-api-search

Quick (read: quick 'n dirty), inline Node API search tool
JavaScript
8
star
90

pstree

Cross platform ps-tree (including unix flavours without ps)
JavaScript
8
star
91

next-go-mummy

Oh Mummy clone in NextBASIC
JavaScript
8
star
92

brighton-buses

A simple site to get Brighton bus times and locations
JavaScript
7
star
93

jq-for-web-developers

jq for web developers series
JavaScript
7
star
94

eert

Takes tree text output and generates a directory structure
JavaScript
7
star
95

latest-tweet

Gets the latest tweet for a user
JavaScript
7
star
96

til

TIL
HTML
7
star
97

CordovaBin

Where PhoneGap and JS Bin made love, and it came out okay looking.
JavaScript
7
star
98

j4d-book

jQuery for Designers book examples
6
star
99

vectors

Dumping ground for my personal drawing utils
JavaScript
6
star
100

tentoring

Tentoring: mentoring in 10 minutes
JavaScript
6
star