Skip to content

A pure frontend toolset that provides formatting, encoding, decoding, and validation functions without server-side support. Your data is secure.

Notifications You must be signed in to change notification settings

orz-ai/devtools

Repository files navigation

DevTools Hub

A collection of essential developer tools built with Next.js 13 and Tailwind CSS. This project provides a modern, responsive interface for common development tasks.

DevTools Hub Screenshot

Online Site

🚀 Features

Development Tools

  • Base64 Tool

    • Encode/Decode Base64 strings
    • Support for file encoding
    • Real-time conversion
  • JSON Formatter

    • Format and validate JSON
    • Collapsible tree view
    • Syntax error detection
    • Line and column error indicators
  • JWT Decoder

    • Decode JWT tokens
    • Validate signatures
    • Display header and payload
    • Expiration checking
  • SQL Formatter

    • Format SQL queries
    • Syntax highlighting
    • Support for multiple SQL dialects
    • Query beautification
  • Timestamp Converter

    • Convert between different time formats
    • Unix timestamp conversion
    • Timezone support
    • Common format presets
  • Hash Generator

    • Support for MD5, SHA-1, SHA-256, SHA-512
    • Real-time hashing
    • Copy to clipboard
    • Multiple hash formats
  • Regex Tester

    • Test regular expressions
    • Real-time matching
    • Match highlighting
    • Support for all regex flags
  • Cron Expression Generator

    • Visual cron expression builder
    • Expression validation
    • Next run time prediction
    • Common patterns
  • Protocol Buffers Formatter

    • Format proto files
    • Field renumbering
    • Syntax validation
    • Proper indentation
  • Code Beautifier

    • Support for multiple languages
    • Syntax highlighting
    • Customizable formatting
    • Copy formatted code

UI/UX Features

  • 🌓 Dark/Light mode support
  • 📱 Responsive design for all devices
  • ⌨️ Keyboard shortcuts
  • 🖱️ Custom scrollbars
  • 📋 Copy to clipboard functionality
  • 🎨 Syntax highlighting
  • ⚡ Real-time updates
  • 🔍 Error highlighting

🛠️ Tech Stack

🚦 Getting Started

Prerequisites

  • Node.js 16.8 or later
  • npm or yarn
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/orz-ai/devtools.git
  1. Navigate to the project directory:
cd devtools-hub
  1. Install dependencies:
npm install
# or
yarn install
  1. Create a .env.local file in the root directory:
cp .env.example .env.local
  1. Start the development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser.

Build for Production

  1. Build the application:
npm run build
# or
yarn build
  1. Start the production server:
npm run start
# or
yarn start

Docker Deployment

  1. Build the Docker image:
docker build -t devtools-hub .
  1. Run the container:
docker run -p 3000:3000 devtools-hub

🔧 Development

Project Structure

devtools-hub/
├── app/
│   ├── components/     # Reusable UI components
│   ├── tools/         # Individual tool pages
│   ├── layout.tsx     # Root layout
│   └── page.tsx       # Home page
├── public/            # Static assets
├── styles/           # Global styles
└── types/            # TypeScript type definitions

Adding a New Tool

  1. Create a new directory in app/tools/:
mkdir app/tools/your-tool-name
  1. Create the tool component:
// app/tools/your-tool-name/page.tsx
"use client"

export default function YourTool() {
    return (
        // Your tool implementation
    )
}
  1. Add the tool to the navigation menu.

Code Style

  • Follow the TypeScript + React best practices
  • Use ES6+ features
  • Follow the existing component patterns
  • Write meaningful comments
  • Use proper TypeScript types

Testing

Run the test suite:

npm run test
# or
yarn test

📦 Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Import your repository in Vercel
  3. Configure your deployment settings
  4. Deploy

Manual Deployment

  1. Build the application:
npm run build
  1. Deploy the /.next directory to your hosting provider

🤝 Contributing

About

A pure frontend toolset that provides formatting, encoding, decoding, and validation functions without server-side support. Your data is secure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages