A resume from a page: paste a URL on the new-resume form, or send {url} to the import API - #100
Merged
Conversation
…l} to the import API A profile, a personal site, an online resume. With an Obscura MCP server configured (OBSCURA_MCP_URL, private network only: its HTTP transport has no auth of its own) the page is rendered by a real browser engine and its own browser_markdown tool does the conversion, so a page that renders client side comes out whole. Without one the page is fetched and reduced to Markdown here: main content, headings, lists, links, no nav or footer. Only public http(s) addresses are read; loopback, RFC1918, link-local and IPv4-in-IPv6 are refused before any fetch. The result is a draft the person edits, with the URL kept as its source, and the API says so in a warning. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FMT2v1YxmgcDuionrfT719
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/v1/resumes/importaccepts{"url": "https://..."}(JSON) or aurlform field beside the existingfile.src/core/browse.ts: withOBSCURA_MCP_URLset, the page goes through Obscura's built-in MCP server (browser_navigate, thenbrowser_markdown), a real browser engine, so client-rendered pages come out whole. Without it, plain fetch plus an HTML-to-Markdown reducer (main/article, headings, lists, links; nav, footer, scripts dropped). Public http(s) only: loopback, RFC1918, link-local and IPv4-in-IPv6 addresses are refused before any fetch.obscurain the agenticjobs Railway project, bound to the private network only;OBSCURA_MCP_URL=http://obscura.railway.internal:3000/mcponweb.Test plan
test/browse.test.ts: HTML reduction, private-address refusal before fetch, the fetch path, the Obscura tool sequence with arguments, the empty-page refusal🤖 Generated with Claude Code
https://claude.ai/code/session_01FMT2v1YxmgcDuionrfT719