Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abi/screenshot-to-code
/ functions
Functions
861 in github.com/abi/screenshot-to-code
⨍
Functions
861
◇
Types & classes
174
↳
Endpoints
20
↓ 3 callers
Function
build_update_prompt_from_file_snapshot
( stack: Stack, prompt: UserTurnInput, file_state: dict[str, str], image_generation_enabled: b
backend/prompts/update/from_file_snapshot.py:12
↓ 3 callers
Function
call_replicate_model
( model_path: str, input: dict[str, Any], api_token: str )
backend/image_generation/replicate.py:125
↓ 3 callers
Method
clickVersion
(version: string)
frontend/src/tests/qa.test.ts:329
↓ 3 callers
Function
cloneVariantHistory
( history: VariantHistoryMessage[] )
frontend/src/lib/prompt-history.ts:18
↓ 3 callers
Method
close
(code = 1000, reason = "")
frontend/src/tests/qa.test.ts:501
↓ 3 callers
Method
close
Close the WebSocket connection
backend/routes/generate_code.py:235
↓ 3 callers
Function
doCreateFromText
(text: string)
frontend/src/App.tsx:611
↓ 3 callers
Function
doGenerateCode
(params: GenerationRequest)
frontend/src/App.tsx:307
↓ 3 callers
Method
emit
(type: string, event: unknown)
frontend/src/tests/qa.test.ts:506
↓ 3 callers
Function
export_code
(request: ExportRequest)
backend/routes/export.py:453
↓ 3 callers
Function
extension_from_mime_type
(mime_type: str)
backend/routes/export.py:90
↓ 3 callers
Function
finishToolEvent
(variantIndex: number, status: "complete" | "error")
frontend/src/App.tsx:384
↓ 3 callers
Function
formatBytes
(bytes: number)
frontend/src/components/evals/PromptReportsPage.tsx:69
↓ 3 callers
Function
formatDurationMs
(milliseconds: number)
frontend/src/components/agent/AgentActivity.tsx:59
↓ 3 callers
Function
format_openai_input_comparison
(comparison: OpenAIInputComparison)
backend/fs_logging/openai_input_compare.py:204
↓ 3 callers
Function
get_run_logs_directory
()
backend/fs_logging/prompt_reports.py:35
↓ 3 callers
Function
guess_image_mime
Best-effort image MIME from a URL's extension; defaults to PNG.
backend/agent/tools/local_assets.py:28
↓ 3 callers
Function
handleGenerate
()
frontend/src/components/unified-input/tabs/TextTab.tsx:31
↓ 3 callers
Function
image_to_data_url
(filepath: str)
backend/evals/utils.py:4
↓ 3 callers
Function
normalizeBabelCdn
(html: string)
frontend/src/lib/babelCdn.ts:14
↓ 3 callers
Function
normalize_local_asset_urls
Rewrite locally-served asset references to ``LOCAL_ASSET_BASE_URL``. Generated HTML may reference extracted/saved assets as root-relative ("/
backend/evals/runner.py:17
↓ 3 callers
Function
parse_json_arguments
(raw_args: Any)
backend/agent/tools/parsing.py:8
↓ 3 callers
Function
print_prompt_summary
(prompt_messages: List[ChatCompletionMessageParam], truncate: bool = True)
backend/utils.py:39
↓ 3 callers
Function
renderJson
(data: unknown)
frontend/src/components/agent/AgentActivity.tsx:266
↓ 3 callers
Function
run_image_evals
( stack: Optional[Stack] = None, model: Optional[str] = None, n: int = 1, input_files: Optiona
backend/evals/runner.py:133
↓ 3 callers
Function
stopFaviconFlash
()
frontend/src/components/evals/RunEvalsPage.tsx:87
↓ 3 callers
Function
summarize_content_part
(part: Any)
backend/fs_logging/openai_input_formatting.py:63
↓ 3 callers
Function
updateRunningTitle
(completed: number, total: number)
frontend/src/components/evals/RunEvalsPage.tsx:115
↓ 3 callers
Function
write_design_systems
(design_systems: list[DesignSystem])
backend/routes/design_systems.py:92
↓ 2 callers
Function
_anthropic_message
Build a fake Anthropic final message with usage.
backend/tests/test_token_usage.py:233
↓ 2 callers
Function
_append_list_path
(path: str, index: int)
backend/fs_logging/openai_input_compare.py:58
↓ 2 callers
Function
_as_json_dict
(value: JSONValue)
backend/fs_logging/openai_input_compare.py:44
↓ 2 callers
Function
_as_json_list
(value: JSONValue)
backend/fs_logging/openai_input_compare.py:48
↓ 2 callers
Function
_asset_id_for_digest
(digest: str)
backend/uploaded_assets/store.py:68
↓ 2 callers
Function
_build_asset_id_block
(images: list[str], asset_base_url: str)
backend/uploaded_assets/prompts.py:7
↓ 2 callers
Function
_decode_image_data_url
Decode a ``data:image/*`` URL into ``(bytes, content_type, extension)``. Returns ``None`` for non-image data URLs, unsupported image types, u
backend/uploaded_assets/store.py:150
↓ 2 callers
Function
_digest_for_bytes
(image_bytes: bytes)
backend/uploaded_assets/store.py:64
↓ 2 callers
Function
_directory_size_bytes
(directory: str)
backend/routes/prompt_reports.py:53
↓ 2 callers
Method
_edit_file
(self, args: Dict[str, Any])
backend/agent/tools/runtime.py:177
↓ 2 callers
Function
_extract_input_items
(payload: Any)
backend/fs_logging/openai_input_compare.py:32
↓ 2 callers
Function
_extract_partial_json_string
(raw_text: str, key: str)
backend/agent/tools/parsing.py:36
↓ 2 callers
Function
_finalize_asset_bytes
Write asset bytes to the served ``LOCAL_ASSET_DIR`` and return a SavedAsset. The single "finalize" step that turns bytes into a durable, served a
backend/uploaded_assets/store.py:176
↓ 2 callers
Function
_gemini_chunk
Build a fake Gemini GenerateContentResponse with usage_metadata.
backend/tests/test_token_usage.py:111
↓ 2 callers
Method
_get_browser
(self)
backend/preview_screenshot/playwright_backend.py:30
↓ 2 callers
Function
_get_image_detail_for_model
(model: Llm)
backend/agent/providers/openai.py:57
↓ 2 callers
Function
_load_openai_input_compare_payload
(raw_json: str, side: str)
backend/routes/evals.py:134
↓ 2 callers
Function
_metadata_path
(asset_id: str)
backend/uploaded_assets/store.py:94
↓ 2 callers
Function
_nullable_type
(type_value: Any)
backend/agent/providers/openai.py:75
↓ 2 callers
Function
_openai_response
Build a fake OpenAI response.completed event payload.
backend/tests/test_token_usage.py:173
↓ 2 callers
Function
_output_html_filename
(original_filename: str, attempt_idx: int)
backend/evals/runner.py:46
↓ 2 callers
Function
_resolve_eval_filenames
(input_files: Optional[List[str]])
backend/evals/runner.py:39
↓ 2 callers
Function
_run_prediction
( endpoint_url: str, payload: dict[str, Any], api_token: str )
backend/image_generation/replicate.py:76
↓ 2 callers
Function
_user_text
(prompt_messages: Prompt)
backend/tests/test_update_from_file_snapshot.py:11
↓ 2 callers
Method
_write_current_report
(self)
backend/fs_logging/prompt_reports.py:138
↓ 2 callers
Method
append_tool_results
( self, turn: ProviderTurn, executed_tool_calls: list[ExecutedToolCall], )
backend/agent/providers/gemini.py:370
↓ 2 callers
Method
append_tool_results
( self, turn: ProviderTurn, executed_tool_calls: list[ExecutedToolCall], )
backend/agent/providers/openai.py:476
↓ 2 callers
Method
append_tool_results
( self, turn: ProviderTurn, executed_tool_calls: list[ExecutedToolCall], )
backend/agent/providers/anthropic/provider.py:314
↓ 2 callers
Function
append_uploaded_asset_ids_to_prompt
( prompt: UserTurnInput, asset_base_url: str, )
backend/uploaded_assets/prompts.py:41
↓ 2 callers
Function
applySelectModeCursor
(doc: Document | null | undefined)
frontend/src/components/select-and-edit/overlays.ts:152
↓ 2 callers
Function
applyTheme
()
frontend/src/App.tsx:213
↓ 2 callers
Function
buildAssistantHistoryMessage
( code: string )
frontend/src/lib/prompt-history.ts:100
↓ 2 callers
Function
buildPricingPage
()
frontend/src/components/select-and-edit/utils.test.ts:30
↓ 2 callers
Function
build_image_prompt_messages
( image_data_urls: list[str], stack: Stack, text_prompt: str, image_generation_enabled: bool,
backend/prompts/create/image.py:8
↓ 2 callers
Function
capitalize
(str: string)
frontend/src/lib/utils.ts:8
↓ 2 callers
Method
close
(self)
backend/agent/providers/base.py:51
↓ 2 callers
Function
compare_openai_inputs_for_evals
( request: OpenAIInputCompareRequest, )
backend/routes/evals.py:155
↓ 2 callers
Method
create
(self, **kwargs: Any)
backend/tests/test_openai_provider_session.py:24
↓ 2 callers
Function
createCommit
( commit: | Omit< AiCreateCommit, "hash" | "dateCreated" | "selectedVariantIndex" | "isC
frontend/src/components/commits/utils.ts:9
↓ 2 callers
Function
createDesignSystem
( payload: DesignSystemPayload )
frontend/src/lib/design-systems.ts:100
↓ 2 callers
Function
doUpdate
(updateInstruction: string)
frontend/src/App.tsx:626
↓ 2 callers
Function
downloadBlob
(blob: Blob, filename: string)
frontend/src/components/preview/download.ts:4
↓ 2 callers
Function
extension_from_url
(url: str)
backend/routes/export.py:94
↓ 2 callers
Function
extract_assets_from_images
( image_data_urls: List[str], asset_descriptions: List[str], gemini_api_key: str, )
backend/asset_extraction.py:150
↓ 2 callers
Function
extract_content_from_args
(raw_args: Any)
backend/agent/tools/parsing.py:83
↓ 2 callers
Function
extract_css_urls
(css: str)
backend/routes/export.py:123
↓ 2 callers
Function
extract_text_content
(message: ChatCompletionMessageParam)
backend/agent/state.py:21
↓ 2 callers
Function
finishInFlightEvents
(status: "complete" | "error")
frontend/src/App.tsx:394
↓ 2 callers
Function
flashFaviconOnComplete
()
frontend/src/components/evals/RunEvalsPage.tsx:103
↓ 2 callers
Function
formatJson
(value: unknown)
frontend/src/components/evals/OpenAIInputComparePage.tsx:23
↓ 2 callers
Function
formatTimestamp
(isoTimestamp: string)
frontend/src/components/evals/PromptReportsPage.tsx:81
↓ 2 callers
Function
format_prompt_preview
( prompt_messages: List[ChatCompletionMessageParam], max_chars_per_message: int = 280, )
backend/utils.py:100
↓ 2 callers
Function
generateCode
( wsRef: React.MutableRefObject<WebSocket | null>, params: FullGenerationSettings, callbacks: CodeGenera
frontend/src/generateCode.ts:53
↓ 2 callers
Method
generateFromText
(prompt: string)
frontend/src/tests/qa.test.ts:276
↓ 2 callers
Function
getArrayField
(value: unknown, field: string)
frontend/src/components/agent/AgentActivity.tsx:91
↓ 2 callers
Function
getAssetsById
()
frontend/src/App.tsx:235
↓ 2 callers
Function
get_capabilities
Backend feature availability for the frontend to reflect in settings.
backend/routes/home.py:22
↓ 2 callers
Function
get_eval_output_subfolder
(stack: Stack, model: str)
backend/evals/runner.py:50
↓ 2 callers
Function
get_prompt_report_content
(filename: str)
backend/routes/prompt_reports.py:152
↓ 2 callers
Function
groupBySession
(reports: PromptReportSummary[])
frontend/src/components/evals/PromptReportsPage.tsx:94
↓ 2 callers
Function
handleVariantClick
(index: number)
frontend/src/components/variants/Variants.tsx:89
↓ 2 callers
Function
hideOverlay
(doc: Document | null | undefined, kind: OverlayKind)
frontend/src/components/select-and-edit/overlays.ts:117
↓ 2 callers
Function
importFromCode
(code: string, stack: Stack)
frontend/src/App.tsx:719
↓ 2 callers
Function
isFigmaUrl
(url: string)
frontend/src/components/unified-input/tabs/UrlTab.tsx:22
↓ 2 callers
Function
is_private_ip
(ip_address: str)
backend/routes/export.py:211
↓ 2 callers
Function
list_design_systems
()
backend/routes/design_systems.py:105
↓ 2 callers
Function
list_prompt_reports
()
backend/routes/prompt_reports.py:125
↓ 2 callers
Function
local_asset_url_to_bytes
Read a localhost ``/local-assets/`` URL into ``(bytes, mime_type)``. Returns ``None`` for anything that isn't a local asset backed by a real
backend/agent/tools/local_assets.py:33
↓ 2 callers
Method
model_dump
( self, mode: str = "python", exclude_none: bool = False )
backend/tests/test_prompt_reports.py:114
↓ 2 callers
Function
normalize_name
(name: str)
backend/routes/design_systems.py:42
↓ 2 callers
Function
print_prompt_preview
(prompt_messages: List[ChatCompletionMessageParam])
backend/utils.py:142
← previous
next →
101–200 of 861, ranked by callers