WebPad is a powerful, web-based code editor built with Next.js that provides a seamless coding experience right in your browser. With features like real-time editing, file system access, and customizable settings, WebPad makes it easy to write and edit code from anywhere.
- Real-time Code Editing: Powered by Monaco Editor (VS Code's editor)
- File System Access: Direct integration with your local file system
- Auto-save: Automatic saving of your work to prevent data loss
- Multiple Language Support: Syntax highlighting for numerous programming languages
- Theme Support: Light and dark themes for comfortable coding
- Customizable Interface: Adjustable font size and font family
- Word and Character Count: Real-time tracking of document statistics
WebPad supports a wide range of file types including:
- JavaScript/TypeScript (js, jsx, ts, tsx)
- Web Development (html, css, scss, less)
- Markdown and Documentation (md, mdx, txt)
- Programming Languages (python, ruby, java, c/c++, and more)
- Configuration Files (json, yaml, toml)
- Shell Scripts (sh, bash, powershell)
- Node.js (version 18 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/ankurjaiswalofficial/webpad.git
cd webpad- Install dependencies:
npm install
# or
yarn install- Start the development server:
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser
- Click the "Open File" button in the toolbar
- Select a file from your local system
- The file will open in the editor with appropriate syntax highlighting
- Font Size: Adjust using the slider in the toolbar
- Font Family: Choose from available fonts in the dropdown
- Theme: Toggle between light and dark themes
- Auto-save: Enable/disable automatic saving
Ctrl/Cmd + S: Save fileCtrl/Cmd + O: Open file dialogCtrl/Cmd + ,: Open settings
src/
├── app/ # Next.js app directory
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions and helpers
└── types/ # TypeScript type definitions
- Next.js - React framework
- Monaco Editor - Code editor
- Radix UI - UI components
- Tailwind CSS - Styling
- Framer Motion - Animations
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.


