Skip to content

Conversation

@magik6k
Copy link
Collaborator

@magik6k magik6k commented Oct 21, 2025

Basic content lookup/preview feature to find which pieces CIDs are in. Useful for debugging retrievability issues.

Later we can extend this page with nicer features like dumping IPLD schema, links, content type guessing, maybe sandboxed preview (basically porting dag.parts features), IPNI lookup check, etc.

2025-10-21-120212_1040x616_scrot

@LexLuthr can you confirm this is also compatible with PDP?

@magik6k magik6k requested a review from a team as a code owner October 21, 2025 10:06
@magik6k magik6k requested a review from LexLuthr October 21, 2025 10:06
@magik6k magik6k force-pushed the feat/webui-content-lookup branch from 19cfe78 to e45fac2 Compare October 21, 2025 10:06
@magik6k magik6k force-pushed the feat/webui-content-lookup branch from e45fac2 to acd467c Compare October 21, 2025 10:07
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need a small fix to show pieceCIDv2 instead of v1 or maybe both. I mean pieceInfo page which this will link to will already show both so maybe just v2.

off, err := a.deps.IndexStore.GetOffset(ctx, offset.PieceCidV2, mh)
if err != nil {
res = append(res, ContentInfo{
PieceCID: offset.PieceCidV2.String(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should convert this to pieceCID v2. Since all UI links are exclusively using pieceCID v2, this will break compatibility.

@snadrus snadrus self-requested a review October 27, 2025 19:23
<!DOCTYPE html>
<html lang="en">
<head>
<title>Content</title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Content" seems like a place-holder term.
IPFS Tools ?
Raw data locator?
Maybe add a descriptive section here for convenience.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't have a better idea. I think eventually we want this to apply to all hosted content + allow for deeper automated inspections (e.g have a world-ping button to understand external view)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants