Free GraphQL Deprecated Directive Extractor & Analyzer

Free GraphQL Deprecated Directive Extractor & Analyzer
gemini-3.0-flash logogemini-3.0-flash

Instantly identify and list all @deprecated fields in your GraphQL schema. A free, client-side tool to parse your SDL and manage API technical debt efficiently.

Built by@Akhenaten

What This App Does

Instantly identify and list all @deprecated fields in your GraphQL schema. A free, client-side tool to parse your SDL and manage API technical debt efficiently. — generated by gemini-3.0-flash and published by @Akhenaten on Slopstore. Categorized under Utility, this app is part of Slopstore's curated collection of AI-generated tools and experiments. Run it free in your browser. No installation needed.

AI Generation Prompt

GraphQL Schema Deprecated Directive Extractor

Overview

A high-performance, client-side utility designed for developers to audit GraphQL schemas. The tool parses SDL (Schema Definition Language) to extract, aggregate, and report all usages of the @deprecated directive.

Core Features

  • Live SDL Parser: Instant processing of pasted schema code without server roundtrips.
  • Categorized Results: Grouped by Type, Field, or Argument for easy readability.
  • Search & Filter: Find specific deprecated fields within the generated list.
  • Reason Extraction: Displays the 'reason' argument associated with the deprecation directive.
  • Export functionality: Generate a clean JSON or plain text summary report.
  • Visual Stats: Provides a count summary of total deprecated items vs. total schema elements.

UI/UX Specification

  • Layout:
    • Header: Clear, minimal title with a description subtitle.
    • Main Split-Pane:
      • Left Side: Large, resizable text-area for schema input (monospaced font).
      • Right Side: Results panel with scrollable list cards.
    • Top Bar: Includes 'Clear', 'Parse', and 'Export' action buttons.
  • Aesthetic:
    • Palette: White background (#FFFFFF), subtle borders (#E5E7EB), text in Slate-900 (#111827), and action buttons in vibrant Blue-600 (#2563EB).
    • Animations: Soft fade-in transitions for results list items, smooth focus-ring states for inputs, and elegant button hover effects.

Implementation Directives

  • Architecture: Single HTML file including CSS (Tailwind CDN) and Vanilla JS.
  • Parsing Logic: Use an efficient regex-based approach or import a CDN-hosted GraphQL parser library (e.g., graphql via unpkg) if complexity warrants it.
  • Performance: Ensure the UI does not freeze during large schema parsing; use requestAnimationFrame or asynchronous processing if necessary.
  • Constraint Compliance:
    • NO Storage: Strictly no localStorage, sessionStorage, or cookies.
    • NO Popups: Custom HTML modals for any interactions requiring user attention.
    • Sandboxing: Ensure all elements are self-contained. No external data fetching required.
  • Responsive: Flex/Grid layout that stacks the editor and results on mobile viewports.

Spread the word

8Total Views
gemini-3.0-flash logogemini-3.0-flash
AI Model

Files being used

index.html
10.8 KB
#GraphQL deprecated extractor#GraphQL schema analyzer#SDL parser tool#GraphQL documentation utility#GraphQL API technical debt tool

Frequently Asked Questions

Everything you need to know about using this application.

What is the purpose of this GraphQL deprecated extractor?

This tool is designed to help developers and API maintainers identify deprecated fields, types, and arguments within their GraphQL Schema Definition Language (SDL). By visualizing all instances of the @deprecated directive in one place, you can better plan your API versioning strategies and communicate changes to your consumers. It effectively acts as a discovery layer for your schema, highlighting exactly which parts of your API are flagged for removal. This makes it significantly easier to audit your API lifecycle compared to manually searching through thousands of lines of schema code.

Is my schema data secure when using this tool?

Yes, your schema data is completely secure. This application operates entirely on the client-side within your browser using JavaScript. No data is ever transmitted, uploaded, or saved to a server or external database. Because this tool does not utilize localStorage, cookies, or any server-side processing, your schema remains private and ephemeral. Once you close the tab, all information is cleared from your browser's memory, ensuring compliance with strict data privacy requirements.

How do I use this tool to parse my GraphQL schema?

Simply paste your GraphQL schema definition (SDL) into the provided text area. The application will instantly scan the text, identify all elements marked with the @deprecated directive, and categorize them into a clear, searchable report. You can filter the results by object type or field name, allowing you to quickly navigate through complex schemas. There is no need for authentication or complex setups; just paste, parse, and analyze your API definition instantly.

What happens to the results after I parse my schema?

After parsing, you can view the deprecated elements within the UI, which provides a clean breakdown of the reason (if provided) and the location of the deprecation. You are provided with a download option to save the report as a clean text file or JSON object for your own documentation purposes. Since this application does not use browser storage, you must export your findings before navigating away from the page. This 'stateless' design ensures the tool remains lightweight, fast, and highly responsive for quick daily use.

Related Applications

Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.