Free GraphQL Schema @deprecated Directive Extractor Tool

Free GraphQL Schema @deprecated Directive Extractor Tool
gemini-3.0-flash logogemini-3.0-flash

Instantly extract and identify @deprecated fields and types from your GraphQL schema. A free, client-side tool to manage API evolution and documentation.

Built by@Akhenaten

What This App Does

Instantly extract and identify @deprecated fields and types from your GraphQL schema. A free, client-side tool to manage API evolution and documentation. — 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

Application Overview

This is a single-file, browser-based utility designed for GraphQL API maintainers. It serves as a rapid-scan tool for identifying fields and types marked with the @deprecated directive, helping developers manage API evolution and technical debt.

Core Features

  • Input Parser: A large textarea for pasting raw GraphQL Schema Definition Language (SDL).
  • Real-time Extraction: The tool parses input instantly without requiring a 'submit' action, providing a seamless user experience.
  • Structured Output Table: Results are rendered in a clean, responsive table showing Type, Field/Enum Value, and Deprecation Reason.
  • CSV Export: A one-click download feature to save the deprecation list for external reporting.
  • Copy-to-Clipboard: Ability to copy specific rows or the entire list of deprecated items.
  • Input Validation: Basic syntax validation to warn the user if the provided text is not a valid GraphQL format.

UI & Design Specifications

  • Aesthetic: A modern, professional SaaS aesthetic. Strict light-mode configuration utilizing a color palette of #FFFFFF (background), #F8FAFC (secondary background), #1E293B (text), and #2563EB (primary action blue).
  • Layout:
    • Header: Title and brief description, centered.
    • Input Section: Large, syntax-highlighted textarea (using monospace fonts like 'Fira Code' or 'Courier') with a subtle border and soft shadow.
    • Results Section: Located below the input, hidden by default. Appears with a smooth fade-in animation once data is parsed.
  • Animations: Subtle interactions, such as row hover effects in the results table and smooth transitions for button state changes.

Developer Directives & Technical Constraints

  • Single File: All HTML, CSS (Tailwind via CDN), and Vanilla JavaScript must be contained within a single .html file.
  • State Management: Use only in-memory JavaScript variables. NO localStorage, sessionStorage, or cookies. The app must not attempt to persist state across reloads.
  • Sandbox Compatibility: Do not use alert(), confirm(), or prompt(). Replace these with custom CSS/JS-driven modals.
  • Performance: Use efficient regex or a lightweight tokenizer for parsing to ensure high performance on large schema files (up to 1MB).
  • Accessibility: Ensure all inputs have appropriate labels, and the table is keyboard-navigable.
  • Responsive Design: The layout must stack vertically on mobile devices and provide a side-by-side view (input on left, results on right) on desktop screens.

Spread the word

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

Files being used

index.html
12.3 KB
#GraphQL schema parser#extract deprecated GraphQL fields#GraphQL @deprecated checker#GraphQL documentation tool#API deprecation utility#schema migration helper#parse GraphQL schema files

Frequently Asked Questions

Everything you need to know about using this application.

How does the GraphQL @deprecated extractor identify deprecated fields?

The application utilizes a robust client-side parser to scan your provided GraphQL schema text. It looks specifically for the @deprecated directive, which is part of the GraphQL specification for marking fields or enum values as obsolete. When the parser detects this directive, it captures the field name, its parent type, and the associated reason string (if provided within the directive). The tool then organizes this data into a structured format, allowing you to quickly visualize all deprecated items within your API surface area without needing to manually search through large schema files.

Is this tool secure for handling my private GraphQL schemas?

Yes, this tool is designed with a 'Privacy-First' approach. All operations occur strictly within your browser's local memory, meaning your schema data is never uploaded to a server or stored in a database. Once you close or refresh the browser tab, all processed information is instantly wiped from memory. Because the processing happens entirely on the client side, you can safely use this tool even with sensitive internal API schemas. We do not use cookies, local storage, or external tracking services, ensuring that your data remains isolated from the network at all times.

Can I export the list of deprecated fields once extracted?

Absolutely. Once the tool finishes scanning your schema, it generates an interactive table of findings. You will see a dedicated 'Export to CSV' button that allows you to download the report as a clean file. This is useful for sharing deprecation roadmaps with your team or documenting the progress of API versioning. The exported CSV includes columns for Type, Field Name, and the Deprecation Reason. This structure makes it easy to import the data into spreadsheets, project management tools, or documentation wikis to track technical debt effectively.

What should I do if the schema parser doesn't find any deprecations?

If no deprecations are detected, the tool will notify you that the schema provided is either clean or that no @deprecated directives were found in the syntax. Please ensure that you have copied the full schema definition correctly, including any custom directives you might be using. Note that this tool strictly searches for the standard GraphQL @deprecated directive. If you are using custom deprecation mechanisms or non-standard naming conventions, they will not appear in the results. Ensure your schema is valid GraphQL SDL (Schema Definition Language) for the best results.

Related Applications

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