A secure, modern, and ephemeral online notepad for code snippets and text, powered by Pastebin.
- 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.
- Frontend: HTML5, CSS3, Vanilla JavaScript, highlight.js
- Backend: Node.js, Express, CORS, node-fetch, dotenv
- API: Pastebin API
.
βββ 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
git clone https://github.com/Ns81000/code-weavers.git
cd code-weaversnpm install- Get your Pastebin API Developer Key
- Copy
env.exampleto.envand fill in your key:
cp env.example .envEdit .env and set:
PASTEBIN_API_KEY=your_pastebin_api_key_here
node proxy-server.js- The server will run at http://localhost:3001
- Open
index.htmlin your browser (double-click or use a local server like Live Server for best results).
- Type or paste your code/text in the editor.
- Select syntax highlighting, expiration, paste name, and privacy.
- Click Save Note.
- Copy the generated Pastebin link with Copy Link & Vanish.
- Use the ? button for help/about.
- 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.
- Plain Text, JavaScript, TypeScript, Python, Java, C++, C#, PHP, Ruby, Go, Bash, JSON, Markdown, HTML, CSS
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
- Fork the repo
- Create your feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
This project is licensed under the MIT License.
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.