Skip to content

πŸ“ Secure, modern scratchpad for code & text snippets with syntax highlighting πŸ”’ Powered by Pastebin via a privacy-first Node.js proxy ⚑ Set expiration, privacy, and copy your note link instantly

License

Notifications You must be signed in to change notification settings

sourcecodeRTX/code-weavers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Code Weaver's Quick-Cache

License Node.js Pastebin API PRs Welcome

A secure, modern, and ephemeral online notepad for code snippets and text, powered by Pastebin.


✨ Features

  • Modern Dark Theme: Sleek, coder-focused UI with a beautiful dark mode.
  • Advanced Code Editor: (Optional: Integrate CodeMirror for line numbers, syntax highlighting, and more.)
  • Syntax Highlighting: Real-time preview with support for many languages (JS, Python, HTML, CSS, etc.).
  • Pastebin Integration: Save notes securely and temporarily via a Node.js proxy server.
  • Expiration Control: Set how long your note lasts (10 min, 1 hour, 1 day, 1 week, never).
  • Privacy Options: Choose between Unlisted (default) and Public pastes.
  • One-Click Copy & Vanish: Copy your paste link and instantly clear the editor.
  • Accessibility: Keyboard navigation, ARIA labels, and responsive design.
  • Help/About Modal: Built-in user guide.
  • Toast Notifications: Friendly feedback for actions and errors.

πŸ› οΈ Technology Stack

  • Frontend: HTML5, CSS3, Vanilla JavaScript, highlight.js
  • Backend: Node.js, Express, CORS, node-fetch, dotenv
  • API: Pastebin API

πŸ“¦ Project Structure

.
β”œβ”€β”€ index.html         # Main frontend UI
β”œβ”€β”€ style.css          # Dark theme and layout
β”œβ”€β”€ script.js          # Frontend logic
β”œβ”€β”€ proxy-server.js    # Node.js/Express proxy for Pastebin API
β”œβ”€β”€ package.json       # Backend dependencies
β”œβ”€β”€ env.example        # Pastebin API key
└── README.md          # This file

⚑ Quick Start

1. Clone the Repository

git clone https://github.com/Ns81000/code-weavers.git
cd code-weavers

2. Install Backend Dependencies

npm install

3. Configure Pastebin API Key

cp env.example .env

Edit .env and set:

PASTEBIN_API_KEY=your_pastebin_api_key_here

4. Start the Proxy Server

node proxy-server.js

5. Open the App

  • Open index.html in your browser (double-click or use a local server like Live Server for best results).

πŸ“ Usage

  1. Type or paste your code/text in the editor.
  2. Select syntax highlighting, expiration, paste name, and privacy.
  3. Click Save Note.
  4. Copy the generated Pastebin link with Copy Link & Vanish.
  5. Use the ? button for help/about.

πŸ”’ Security & Privacy

  • Your Pastebin API key is never exposed to the frontend.
  • All notes are sent directly to Pastebin via a secure proxy.
  • No note content is stored on this site or server.

🌐 Supported Syntax Highlighting Languages

  • Plain Text, JavaScript, TypeScript, Python, Java, C++, C#, PHP, Ruby, Go, Bash, JSON, Markdown, HTML, CSS

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.


πŸ™ Acknowledgements


πŸ’‘ FAQ

Q: Is my note private?
A: If you select "Unlisted", only those with the link can view it. "Public" pastes are visible on Pastebin's public archive.

Q: Can I use this for sensitive data?
A: This is for temporary, non-sensitive code snippets. Do not use for passwords or confidential information.

Q: Can I run this on a server?
A: Yes! You can deploy the proxy server to any Node.js-compatible host. Just keep your .env file secure.


Made with ❀️ for coders who need a quick, secure scratchpad.

About

πŸ“ Secure, modern scratchpad for code & text snippets with syntax highlighting πŸ”’ Powered by Pastebin via a privacy-first Node.js proxy ⚑ Set expiration, privacy, and copy your note link instantly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published