Skip to content

Latest commit

ย 

History

History
396 lines (289 loc) ยท 12.5 KB

AGENTS.md

File metadata and controls

396 lines (289 loc) ยท 12.5 KB

Acolyte - Developer Tool Suite

Overview

Acolyte is a comprehensive web application designed to assist developers in their day-to-day duties. Whether you're testing APIs, analyzing applications, or utilizing essential development utilities, Acolyte provides all the tools you need in one powerful, user-friendly interface.

Repository: https://github.com/jbouder/acolyte
License: Apache License 2.0

Key Features

๐Ÿงช API Testing Tools

REST API Testing

  • Comprehensive testing tools for RESTful APIs
  • Support for multiple HTTP methods (GET, POST, PUT, DELETE, PATCH, etc.)
  • Custom headers and request configuration
  • Request/response validation
  • Multiple request tabs for different endpoints
  • Save and load project configurations

Server-Sent Events (SSE)

  • Real-time event stream testing
  • Connection monitoring
  • Event history tracking

WebSocket Testing

  • Full-duplex communication testing
  • Message history
  • Connection status monitoring
  • Real-time message exchange

WebTransport Testing

  • Modern transport protocol testing
  • Low-latency application testing
  • Advanced connection management

Chat

Chat with any OpenAI v1-compatible model provider:

  • Presets for llama.cpp, Ollama and Docker Model Runner on localhost, plus a custom preset for any external endpoint such as OpenAI
  • Configurable base URL, model name, API key and system prompt
  • Non-streaming chat completions against the provider's /chat/completions endpoint
  • Settings persisted in Local Storage; the API key is stored in IndexedDB only when "remember" is checked
  • Clear conversation history

๐Ÿ“Š Analysis Tools

Web Stats

Provides detailed information about the current web client:

  • IP address detection
  • Browser details and capabilities
  • Geographic location
  • System specifications
  • Screen resolution and color depth

Website Analysis

In-depth analysis of web applications including:

  • Security headers inspection
  • Performance metrics
  • Best practices validation
  • SEO analysis
  • Accessibility checks

Dependency Analysis

Package.json analysis tool featuring:

  • Vulnerability scanning
  • Outdated package detection
  • Dependency tree visualization
  • Total package count and categorization
  • Security recommendations

Accessibility Checker

Scan websites for accessibility issues and WCAG compliance:

  • Automated accessibility testing
  • WCAG 2.1 compliance checking
  • Detection of missing alt text, labels, and ARIA attributes
  • Heading structure validation
  • Landmark and semantic HTML checks
  • Detailed issue reporting with severity levels
  • Export reports in JSON format

๐Ÿ”ง Development Utilities

Markdown Preview

  • Real-time markdown editor
  • Live preview rendering
  • GitHub Flavored Markdown support
  • Syntax highlighting
  • Export capabilities

Mermaid Preview

  • Create and edit Mermaid diagrams with live preview
  • Support for multiple diagram types:
    • Flowcharts
    • Sequence diagrams
    • Class diagrams
    • State diagrams
    • Gantt charts
    • And more
  • Real-time rendering as you type
  • Import/export diagram files (.mmd, .mermaid, .txt)
  • Copy diagram code to clipboard
  • Character and line count tracking
  • Syntax error detection and reporting

Base64 Encoder/Decoder

  • Convert text to/from Base64 encoding
  • File encoding support
  • Multiple format support
  • Copy to clipboard functionality

JSON Formatter

  • Beautify JSON with proper indentation
  • Validate JSON syntax
  • Minify JSON for production
  • Syntax highlighting
  • Error detection and reporting

Regex Tester

  • Test regular expressions in real-time
  • Pattern matching visualization
  • Sample text testing
  • Explanation of regex patterns
  • Common regex templates

Color Picker

  • Advanced color selection tool
  • Support for multiple color spaces:
    • HEX
    • RGB
    • HSL
    • HSV
  • Color palette generation
  • Copy color values

Image Tools

Browser-side image editing with no upload to a server:

  • Load PNG, JPEG or WebP images up to 10 MB
  • Crop by pixel coordinates with a live overlay preview
  • Resize to a target width and height
  • Convert between PNG, JPEG and WebP with an adjustable quality slider
  • Generate a multi-size favicon.ico (16, 32 and 48 px)
  • Generate the web app PNG icon set (180, 192 and 512 px)
  • Download results directly

JWT Decoder

  • Decode JSON Web Tokens
  • Header inspection
  • Payload inspection
  • Signature validation
  • Token expiration checking

Developer Notepad

  • Persistent note-taking
  • Markdown support
  • Local storage
  • Auto-save functionality
  • Multiple notes management

๐ŸŽฎ Entertainment

Classic Games

  • Snake - Classic arcade game with modern controls and scoring
  • Breakout - Brick-breaking game with physics-based ball movement
  • Sudoku - Number puzzle game with multiple difficulty levels

Technology Stack

Frontend

  • Next.js 16 - React framework with App Router for server-side rendering and routing
  • React 19 - Modern React with latest features and performance improvements
  • TypeScript - Static type checking for enhanced developer experience
  • Tailwind CSS 4 - Utility-first CSS framework for rapid UI development
  • Beskar (a shadcn base-lyra registry) - Component library built on Base UI (@base-ui/react) primitives. components/ui is managed by the shadcn CLI: do not edit it by hand. Add or update a component with npx shadcn@latest add @beskar/<name> --overwrite, then remove the two @fontsource-variable imports and the duplicate tw-animate-css and shadcn/tailwind.css imports the theme adds to app/globals.css (fonts load through next/font here), and uninstall the @fontsource-variable packages. App-specific looks go in app/globals.css on the components' data-slot hooks, or in className at the call site. The beskar-ui skill in .claude/skills has the catalog. The Beskar components use Phosphor icons inside themselves; app code keeps Lucide. Note the Base UI conventions: composition uses a render prop rather than asChild, and boolean state is exposed as valueless data attributes (data-active="", not data-active="true").
  • Oxanium / JetBrains Mono - UI and code typefaces, loaded via next/font and exposed as --font-oxanium / --font-jetbrains-mono on <html>. Under vinext these are fetched from the Google Fonts CDN at runtime rather than self-hosted at build time.

Build & Runtime

  • vinext - Builds the Next.js App Router source on Vite and targets Cloudflare Workers. next/* imports are shimmed, so application code is written as plain Next.js; do not rewrite imports to vinext/*.
  • Cloudflare Workers - Production runtime. The Worker is named acolyte; wrangler.jsonc holds its config and bindings, and cloudflare-env.d.ts types them. See DEPLOYMENT.md.
  • Browser Rendering - Supplies headless Chrome to the Accessibility Checker through the BROWSER binding. There is no bundled Chromium; puppeteer-core and @sparticuz/chromium do not run on Workers.
  • Server code reaches bindings with import { env } from 'cloudflare:workers'.
  • Large browser-only dependencies must stay out of the server bundle. vite.config.ts marks mermaid and @mlc-ai/web-llm external for the ssr and rsc environments to keep the Worker under Cloudflare's size limit; add any similar dependency there too.

Development Tools

  • Jest - JavaScript testing framework with comprehensive test coverage
  • React Testing Library - Simple and complete testing utilities
  • Biome - Fast unified linter and formatter for consistent code quality and style

Storage & Data

  • IndexedDB - Client-side storage for persistent data
  • Local Storage - Browser storage for user preferences and temporary data

Getting Started

Prerequisites

  • Node.js (version 20.x or higher)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:

    git clone https://github.com/jbouder/acolyte.git
    cd acolyte
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open your browser and navigate to http://localhost:3000

Building for Production

Create an optimized production build:

npm run build
npm start

Usage Examples

API Testing Workflow

  1. Navigate to the APIs section from the homepage
  2. Create multiple request tabs for different endpoints
  3. Configure HTTP methods, headers, and request bodies
  4. Send requests and analyze responses with syntax highlighting
  5. Save project configurations for reuse

Dependency Analysis Workflow

  1. Go to Dependency Analysis from the Analysis section
  2. Paste your package.json content into the editor
  3. Click "Analyze Dependencies" to get insights about:
    • Total package count and categorization
    • Security vulnerabilities
    • Outdated packages
    • Dependency tree visualization
  4. Review recommendations and take action

Markdown Preview Workflow

  1. Open the Markdown Preview tool
  2. Write markdown content in the editor
  3. View live preview with syntax highlighting
  4. Export rendered HTML or markdown
  5. Save your work locally

Project Structure

acolyte/
โ”œโ”€โ”€ app/                    # Next.js App Router pages
โ”‚   โ”œโ”€โ”€ api/               # API route handlers
โ”‚   โ”œโ”€โ”€ accessibility-checker/# Accessibility scanning tool
โ”‚   โ”œโ”€โ”€ apis/              # REST API testing interface
โ”‚   โ”œโ”€โ”€ base64/            # Base64 encoding/decoding tool
โ”‚   โ”œโ”€โ”€ chat/              # OpenAI-compatible model chat
โ”‚   โ”œโ”€โ”€ color-picker/      # Color selection utility
โ”‚   โ”œโ”€โ”€ dependency-analysis/# Package analysis tool
โ”‚   โ”œโ”€โ”€ games/             # Browser games
โ”‚   โ”œโ”€โ”€ image-tools/       # Crop, resize, convert, favicon generation
โ”‚   โ”œโ”€โ”€ json-formatter/    # JSON formatting utility
โ”‚   โ”œโ”€โ”€ jwt/               # JWT decoder tool
โ”‚   โ”œโ”€โ”€ markdown-preview/  # Markdown editor and preview
โ”‚   โ”œโ”€โ”€ notepad/           # Developer notepad
โ”‚   โ”œโ”€โ”€ regex/             # Regular expression tester
โ”‚   โ”œโ”€โ”€ sse/               # Server-Sent Events testing
โ”‚   โ”œโ”€โ”€ web-stats/         # Website statistics analyzer
โ”‚   โ”œโ”€โ”€ websockets/        # WebSocket testing interface
โ”‚   โ””โ”€โ”€ webtransport/      # WebTransport testing tool
โ”œโ”€โ”€ components/            # Reusable React components
โ”œโ”€โ”€ lib/                   # Utility functions and helpers
โ”‚   โ””โ”€โ”€ server/            # Fetch/binding-backed logic used by API routes
โ”œโ”€โ”€ public/                # Static assets
โ””โ”€โ”€ __tests__/             # Test files

Development

Code Quality Commands

# Run all tests
npm run test

# Lint code and auto-fix issues
npm run lint

# Format code with Biome
npm run format

# Check formatting without making changes
npm run format:ci

# Lint code without auto-fixing (CI mode)
npm run lint:ci

Testing Coverage

The project maintains comprehensive test coverage:

  • Statement Coverage: 82.65%
  • Passing Tests: 79 tests
  • Unit tests for components and utilities
  • Integration tests for component interactions

Contributing

Contributions are welcome! Follow these steps:

  1. Fork the repository on GitHub

  2. Create a feature branch from main:

    git checkout -b feature/your-feature-name
  3. Make your changes and ensure tests pass

  4. Run code quality checks:

    npm run test
    npm run lint
    npm run format
  5. Commit your changes with descriptive messages

  6. Push to your fork and create a Pull Request

Development Guidelines

  • Use TypeScript for all new code
  • Follow existing code style (enforced by ESLint and Prettier)
  • Write tests for new features and bug fixes
  • Use semantic commit messages
  • Update documentation when adding new features

Architecture Decisions

  • Next.js App Router: Provides server-side rendering and improved routing
  • TypeScript: Ensures type safety and better developer experience
  • Tailwind CSS: Enables rapid UI development with utility classes
  • Jest + React Testing Library: Comprehensive testing setup
  • Component-based Architecture: Promotes reusability and maintainability

Acknowledgments


Made with โค๏ธ for the developer community