• Stars
    star
    2,241
  • Rank 19,850 (Top 0.5 %)
  • Language
    CSS
  • License
    Other
  • Created over 12 years ago
  • Updated 2 months ago

Reviews

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

Repository Details

Hosted MIT License with details controlled through this repo

A permalink for your MIT License

I always forget to add a LICENSE file to my projects, so I wanted to link to a single resource that would always be up to date and would always have my details online.

Why keep this to myself, there are three ways to create your own MIT license page:

  1. Use the generator tool (easiest)
  2. Make a request to the API (details below)
  3. Fork this project and send a pull request

Now I can always include https://rem.mit-license.org in all my projects which links rem (the CNAME) against my copyright holder name Remy Sharp - all stored in the users directory.

Requesting your own MIT license page

The simplest way to create your own MIT license page is to use the self-service generator found here.

You can fork this project, send me a pull request and wait for me to pull (which I'll do as quickly as possible) or if the user is still available you can do it yourself from the command line:

curl -d'{ "copyright": "Remy Sharp" }' https://rem.mit-license.org

If the rem user isn't taken already, then this will create the new user file on the fly and the URL will be immediately available.

You can send a full JSON file to the API, not just the copyright, so this works too:

curl -d'{ "copyright": "Remy Sharp", "url": "https://remysharp.com", "email": "[email protected]", "format": "txt" }' https://rem.mit-license.org

Whilst the command above sends the data as a string which will later be parsed, you can explicitly specify a JSON Content-Type:

curl -H 'Content-Type: application/json' -d'{ "copyright": "Remy Sharp", "url": "https://remysharp.com", "email": "[email protected]", "format": "txt" }' https://rem.mit-license.org

You can also encode the data as URL query parameters like so:

curl -X POST "https://rem.mit-license.org/?copyright=Remy%20Sharp&url=http%3A%2F%2Fremysharp.com&email=me%40mysite.com&format=txt"

If there are any problems in the automated creation, send me a pull request and it'll go live soon after.

Equally, if you need to update the user file to include more details that you didn't initially include (extra fields in the next section) you will need to send a pull request on that user.json file via GitHub.

The user.json file

The users directory contains a list of files, each representing a host on mit-license.org. The minimum requirement for the JSON is that it contains a copyright field - everything else is optional. Remember to ensure the user.json file is valid JSON.

Available fields:

  • copyright (required)
  • URL
  • email
  • format
  • gravatar
  • theme
  • license

copyright

Create a new file and give it the name of the CNAME you want (in my case it's rem.json). This file contains a JSON object containing at least a copyright property:

{
  "copyright": "Remy Sharp, https://remysharp.com"
}

Means I can now link to https://rem.mit-license.org and it will show my license name (note that the date will always show the current year).

You can also use an array to hold multiple copyright holders:

{
  "copyright": ["Remy Sharp", "Richie Bendall"]
}

Which will be formatted as:

Remy Sharp and Richie Bendall

If you additionally want to include a URL and email with each copyright holder, use objects in the array:

{
  "copyright": [
    {
      "name": "Remy Sharp, https://remysharp.com",
      "url": "https://remysharp.com",
      "email": "[email protected]"
    },
    {
      "name": "Richie Bendall, https://www.richie-bendall.ml",
      "url": "https://www.richie-bendall.ml",
      "email": "[email protected]"
    }
  ]
}

url

In addition to the copyright property, if you want to make a link from the copyright text, you can include a URL property:

{
  "copyright": "Remy Sharp, https://remysharp.com",
  "url": "https://remysharp.com"
}

email

You can also include a link to your email which is displayed after the copyright notice using the email property (note the mailto: is automatically added):

{
  "copyright": "Remy Sharp, https://remysharp.com",
  "url": "https://remysharp.com",
  "email": "[email protected]"
}

format

And if you want your license to appear as plain text, just add the format property (currently only txt and html are supported):

{
  "copyright": "Remy Sharp, https://remysharp.com",
  "url": "https://remysharp.com",
  "format": "txt"
}

gravatar

And if you want to show your gravatar, just add the gravatar boolean property:

{
  "copyright": "Remy Sharp, https://remysharp.com",
  "url": "https://remysharp.com",
  "email": "[email protected]",
  "gravatar": true
}

Note that the gravatar option requires the email property. You also need to check the compatibility of the chosen theme.

Themes

If you've got an eye for design (or like me: not): you can contribute a theme by adding a CSS file to the themes directory. You can use the latest CSS technologies since they are automatically polyfilled. The default theme is simple and clean, but you can add your own as you like.

To use a theme, add the theme property to your user.json file, for example:

{
  "copyright": "Remy Sharp, https://remysharp.com",
  "url": "https://remysharp.com",
  "theme": "flesch"
}

Browse custom themes

Formats & URLs

The following types of requests can be made to this project:

The URL also supports including a start year:

You can also specify either the MIT or ISC license in the URL:

Finally, the URL also supports pinning the year

Ways to contribute

Aside from code contributions that make the project better, there are a few other specific ways that you can contribute to this project.

Development contributions from:

SSL and wildcard DNS is supported by CloudFlare - thank you πŸ™πŸ’™

1. Donate domain years

I host the domain with namecheap.com and yearly renewal is $9.69 per year. If you want to contribute a year, send me a message and I'll add the years on.

Of course, I'll do my best to continue running the domain and hosting, but this is your chance to contribute to the community project.

Domain contributions:

Please note that the whois says 2021 as you can only have 10 active registered years with ICANN - but the domain is set to auto-renew, so it's all good :)

2. Hosting

For the first 5 years, mit-license.org was hosted on my own dedicated server, but I've now moved to Heroku and am paying a monthly fee. If you would like to donate please donate here include a message and I will add your name to the credit. Hosting currently costs $7 per month if you want to donate in months or years, it's gratefully received ❀

Hosting contributions:

3. A lick of paint

I'm a developer, I seem only capable of grey! If you're a designer and want to contribute a decent lick of paint on the project that would be super. Just create a new theme and send me a pull request.

License

And of course:

MIT: https://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

jsconsole

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

min.js

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

inliner

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

polyfills

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

bind.js

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

jsonbin

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

twitterlib

Twitter JavaScript API library
JavaScript
302
star
10

5minutefork

A 5 minute fork of a github project for a quick play and test
JavaScript
203
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

snap

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

wm

webmention check service
HTML
97
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

server-timings

Server-Timings header for express
JavaScript
45
star
28

memfetch

Caches fetch responses and promises for faster development
JavaScript
45
star
29

next-http

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

read-body

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

track

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

password-policy

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

zx-tools

A collection of ZX web based tools and libraries
JavaScript
38
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

present

A(nother) JavaScript Presentation Library
JavaScript
25
star
44

cloud-worker

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

unrot.link

Un-rot your links using the archive.org
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

marbles2

Marbles Squared game source
JavaScript
19
star
53

transform

transform globs of text into json
JavaScript
19
star
54

now-no-alias

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

advent-of-code-solved

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

inline-log

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

txt2bas

ZX Spectrum BASIC conversion tooling (specific support for NextBASIC)
JavaScript
17
star
58

stripe-tutorial

JavaScript
16
star
59

no-more-scroll-jacking

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

ps2-remote

A PS/2 keyboard remote adapter
C++
16
star
61

light-dark-switcher

Light/Dark theme switcher for Firefox
JavaScript
15
star
62

autocache

Memorisation back by a persistent store
JavaScript
15
star
63

nice-ls

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

permalink

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

harp-static

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

jquery-api-browser

jQuery API browser backend and source database
JavaScript
14
star
67

gina

A Glitch CLI deploy tool
JavaScript
13
star
68

proxy

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

tweed

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

arduino

My arduino sketches
C
13
star
71

rest

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

mdn-will-it-miss

Demo project for MDN toolchain article
JavaScript
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

templates

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

twists

Simple tool for creating twitter list members
JavaScript
9
star
83

zxdb-specnext-api

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

isthe.link

Hosting for my mini side projects
JavaScript
8
star
85

hang

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

vscode-nextbasic

VS Code tools for NextBASIC
JavaScript
8
star
87

tetrisy

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

node-api-search

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

pstree

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

midi-to-ps2

Source code for USB midi to PS/2 (and USB) customised to suit NextDAW
C++
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

CordovaBin

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

jq-for-web-developers

jq for web developers series
JavaScript
7
star
95

eert

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

latest-tweet

Gets the latest tweet for a user
JavaScript
7
star
97

til

TIL
HTML
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