Open source · Self-hostable · Free

Your personal
code library

Save snippets you'll actually find again. Search by language, tag, or title. Share what's useful, keep the rest private.

3
public snippets
3
developers
25+
languages

25+ Languages

Syntax highlighting for JavaScript, Python, PHP, Go, Rust, and more.

Instant Search

Search by title, tags, or language. Find any snippet in seconds.

Share & Embed

Public profiles and embeddable widgets. Share your work anywhere.

REST API

Key-based API access. Automate your snippet workflow programmatically.

View all
def explain! puts 'Want to embed this Gist?' puts 'Use this: <script src="http://gist.github.com/2059.js"></script...
rthsrthrthrts
if ($requestCount >= 100) { jsonResponse(429, ['error' => 'Rate limit exceeded. Maximum 100 requests per hour.'])...

Ready to build your code library?

Get started — it's free