Skip to content

taher-el-mehdi/gist-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Gist Scope

Browse, search, and preview your GitHub gists with a clean, fast interface. Built with React + Vite.

✨ Features

  • πŸ” Secure - GitHub token stored locally, 100% client-side
  • 🏷️ Smart Categorization - Auto-organize by language/extension
  • πŸ” Instant Search - Filter by description or filename
  • πŸ“„ Pagination - Navigate large gist collections easily
  • πŸ‘οΈ Syntax Highlighting - 50+ languages with Prism.js
  • πŸ“ Markdown Rendering - Native .md file preview
  • πŸ“‹ One-Click Copy - Copy gist content to clipboard
  • πŸ”— GitHub Link - Open any gist on GitHub directly

πŸš€ Quick Start

# Install dependencies
npm install

# Start dev server
npm run dev

Open http://localhost:3000 and enter your GitHub token.

πŸ”‘ GitHub Token Setup

You need a Personal Access Token with gist scope.

Quick create: Generate Token β†’

Or manually:

  1. Go to GitHub Settings β†’ Tokens
  2. Generate new token (classic)
  3. Check the gist scope
  4. Copy the token

Your token is stored in localStorage and never leaves your browser.

πŸ“ Project Structure

src/
β”œβ”€β”€ api/github.js          # GitHub API wrapper
β”œβ”€β”€ components/            # React components
β”œβ”€β”€ utils/helpers.js       # Utility functions
└── styles/App.css         # Styles

πŸ› οΈ Tech Stack

  • React 18 + Vite 5 - Fast, modern tooling
  • Prism.js - Syntax highlighting
  • Marked - Markdown rendering
  • GitHub REST API v3

πŸ“¦ Build

npm run build        # Build for production
npm run preview      # Preview production build

Deploy the dist/ folder to Vercel, Netlify, GitHub Pages, or any static host.

πŸ“„ License

MIT

About

πŸ” Explore, search, and preview your GitHub gists by language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published