Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Pretty Json Laravel Package

novadaemon/filament-pretty-json

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Improved Developer Experience (DX) in Filament Admin Panels:

    • Enables clean, human-readable JSON display in forms and infolists, reducing debugging time for teams working with complex API responses, configs, or serialized data.
    • Aligns with roadmap goals for self-service analytics or configuration management dashboards where raw JSON is stored but needs to be inspected visually.
  • Build vs. Buy:

    • Buy: Avoids reinventing a custom JSON formatter for Filament, saving ~10–20 dev hours. MIT license allows modification if needed.
    • Build: Justify only if JSON formatting requires highly custom syntax highlighting (e.g., color-coding for nested keys) or interactive editing (use a package like voyager/jsonview instead).
  • Use Cases:

    • Debugging: Display API payloads, cache responses, or Eloquent model casts in admin panels.
    • Compliance/Audit: Show structured logs or metadata (e.g., user_activity JSON) in read-only views.
    • Feature Flags: Visualize feature flag configurations (e.g., LaunchDarkly payloads) without exposing raw strings.

When to Consider This Package

  • Adopt if:

    • Your Filament app frequently displays JSON in forms/infolists (e.g., >3 instances/week).
    • You prioritize speed of implementation over customization (package handles syntax highlighting, collapsible sections, and mobile responsiveness out-of-the-box).
    • Your JSON data is read-only (no editing required; use filament-spatie/laravel-medialibrary or tightenco/ziggy for interactive JSON).
  • Look elsewhere if:

    • You need JSON editing (e.g., inline updates) → Use filament/json-editor or beberlei/assert for validation + editing.
    • Your JSON is extremely large (>10KB) → Consider a dedicated code editor iframe (e.g., Monaco Editor via JS).
    • You’re on Filament 1.x (unsupported; migrate or use a custom solution).
    • Your team requires custom syntax themes (e.g., dark mode, key/value color-coding) → Extend the package or use a frontend library like react-json-view.

How to Pitch It (Stakeholders)

For Executives: "This package lets our Filament admin panels display complex JSON data in a clean, collapsible format—like a code editor but built for Laravel. For example, when support teams debug API errors or when product managers review feature flag configurations, they’ll save 15–20 minutes per ticket by seeing structured data instead of raw strings. It’s a 2-line install, MIT-licensed, and works across Filament 2–4. ROI: Faster debugging → fewer escalations."

For Engineers: *"Need to show JSON in Filament forms/infolists without building a custom formatter?

  • Pros:
    • Zero CSS/JS overhead (uses native Filament styling).
    • Supports all JSON cast types (string, array, object, Jsonable).
    • Works in both resource views and infolists.
  • Trade-offs:
    • Read-only (no inline editing).
    • Limited customization (but extendable via Filament’s component hooks).
  • How to use:
    PrettyJsonField::make('api_response')->columnSpanFull(), // Form
    PrettyJsonEntry::make('config')->hiddenOn(['mobile']),   // Infolist
    
    Alternatives: Only if you need editing or massive JSON (>10KB)."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity