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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle