Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lap-Platform/LAP
/ functions
Functions
1,430 in github.com/Lap-Platform/LAP
⨍
Functions
1,430
◇
Types & classes
210
↳
Endpoints
1
↓ 119 callers
Method
get
Get a LAP doc by name (exact or partial match).
sdks/python/lap/registry.py:23
↓ 112 callers
Method
to_lap
(self, lean: bool = False)
lap/core/formats/lap.py:32
↓ 76 callers
Function
parse_lap
Parse LAP text into a LAPSpec object. Raises ParseError for structural issues (unmatched braces, lines exceeding size limits). Issues war
lap/core/parser.py:354
↓ 69 callers
Function
generate_skill
Generate a Claude Code skill directory from a LAPSpec. Returns a SkillOutput with file_map containing all files to write.
lap/core/compilers/skill.py:100
↓ 51 callers
Function
compile_openapi
Compile an OpenAPI spec to LAP format.
lap/core/compilers/openapi.py:373
↓ 49 callers
Function
compile_graphql
Compile a GraphQL SDL or introspection JSON file to LAP format.
lap/core/compilers/graphql.py:361
↓ 25 callers
Function
cmd_search
Search the LAP registry for APIs. No auth required.
lap/cli/main.py:1467
↓ 25 callers
Function
info
(msg)
lap/cli/main.py:64
↓ 20 callers
Function
compile_asyncapi
Compile an AsyncAPI spec to LAP format.
lap/core/compilers/asyncapi.py:461
↓ 20 callers
Function
compile_postman
Compile a Postman Collection v2.1 JSON to LAP format.
lap/core/compilers/postman.py:389
↓ 19 callers
Function
_sanitize
Strip ANSI escapes and control characters from server-supplied strings.
lap/cli/main.py:42
↓ 19 callers
Function
error
(msg)
lap/cli/main.py:76
↓ 18 callers
Function
_format_search_results
Format and print search results.
lap/cli/main.py:1406
↓ 18 callers
Function
_make_spec_v1
()
tests/test_differ.py:17
↓ 18 callers
Function
_validate_search_response
Validate registry response shape before field access.
lap/cli/main.py:46
↓ 18 callers
Function
info
(msg: string)
sdks/typescript/src/cli.ts:64
↓ 18 callers
Function
parse_proto
Parse a .proto file text into a ProtoFile AST.
lap/core/compilers/protobuf.py:333
↓ 16 callers
Function
_make_args
(**overrides)
tests/test_search.py:298
↓ 16 callers
Function
_smithy_type_to_lap
Convert Smithy type to LAP type string. Handles: - Scalar types (String → str, Integer → int, etc.) - Collections (list → [type], ma
lap/core/compilers/smithy.py:281
↓ 16 callers
Function
diff_specs
Diff two LAPSpec objects. Returns a DiffResult with all changes.
lap/core/differ.py:94
↓ 16 callers
Function
error
(msg: string)
sdks/typescript/src/cli.ts:72
↓ 15 callers
Function
_make_spec_v2
()
tests/test_differ.py:55
↓ 15 callers
Function
strip_html
Remove HTML tags and decode HTML entities from description text.
lap/core/utils.py:17
↓ 14 callers
Method
_make_result
(self, **overrides)
tests/test_search.py:161
↓ 14 callers
Function
compile_proto
Compile a .proto file to LAP format.
lap/core/compilers/protobuf.py:724
↓ 14 callers
Method
load
Load a .lap file and return a queryable document.
sdks/python/lap/client.py:93
↓ 13 callers
Function
_slugify
Convert API name to a valid skill directory name.
lap/core/compilers/skill.py:160
↓ 13 callers
Function
resolve_ref
Resolve a $ref pointer in a spec with cycle detection.
lap/core/utils.py:87
↓ 11 callers
Function
_maybe_resolve
If obj has $ref, resolve it; otherwise return obj.
lap/core/compilers/asyncapi.py:21
↓ 11 callers
Function
_operation_to_endpoint
Convert Smithy operation to LAP Endpoint. Returns None if operation has no @http trait (not HTTP-bound).
lap/core/compilers/smithy.py:562
↓ 11 callers
Function
cmd_get
Download a LAP spec from the registry by name.
lap/cli/main.py:1442
↓ 11 callers
Function
get_spec
(name)
tests/test_asyncapi_compiler.py:18
↓ 11 callers
Function
maybeResolve
(spec: Obj, obj: unknown)
sdks/typescript/src/compilers/asyncapi.ts:53
↓ 11 callers
Function
parse
(text: string)
sdks/typescript/src/parser.ts:323
↓ 10 callers
Function
_infer_type
Infer LAP type from a JSON value.
lap/core/compilers/postman.py:233
↓ 10 callers
Function
_parse_param
Parse a param like 'name: str(fmt) # desc' or 'limit: int=10 # desc'.
lap/core/parser.py:170
↓ 10 callers
Function
_validate_registry_url
Ensure registry URL uses HTTPS (except localhost for dev).
lap/cli/main.py:798
↓ 10 callers
Function
extract_type
Extract a concise type string from a JSON Schema.
lap/core/compilers/asyncapi.py:30
↓ 10 callers
Method
to_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:33
↓ 9 callers
Function
_make_search_args
(**overrides)
tests/test_lap_skill.py:99
↓ 9 callers
Function
_read_metadata
Read lap-metadata.json for the given target. Returns {"skills": {}} if missing/corrupt.
lap/cli/main.py:762
↓ 9 callers
Function
getRegistryUrl
()
sdks/typescript/src/auth.ts:19
↓ 9 callers
Function
parse_single_tool
Parse LAP text expected to contain a single tool.
lap/core/compilers/lap_tools_parser.py:164
↓ 9 callers
Method
search
Fuzzy search across all LAP files.
sdks/python/lap/registry.py:38
↓ 8 callers
Function
_is_likely_optional
Heuristic: infer if a raw JSON body field is optional based on its example value.
lap/core/compilers/postman.py:220
↓ 8 callers
Function
_load_json_ast
Load and validate Smithy JSON AST.
lap/core/compilers/smithy.py:134
↓ 8 callers
Function
compile_generic_json
Compile a generic JSON tool definition to LAP. Expects a dict with keys like: name, description, parameters/inputs, returns/outputs, auth
lap/core/compilers/lap_tools.py:231
↓ 8 callers
Function
compile_mcp_tool
Compile a single MCP tool definition to LAP.
lap/core/compilers/lap_tools.py:45
↓ 8 callers
Function
count_tokens
Count tokens using tiktoken. Falls back to len(text)//4 if unavailable.
lap/core/utils.py:53
↓ 8 callers
Function
get_registry_url
Get and validate the registry URL from the environment or default.
lap/cli/auth.py:75
↓ 8 callers
Function
parse_lap_tools
Parse LAP text into a LAPToolBundle (one or more tools). Returns a bundle even for single tools, for consistency.
lap/core/compilers/lap_tools_parser.py:81
↓ 7 callers
Function
_extract_auth_scheme
Convert Postman auth object to LAP auth string.
lap/core/compilers/postman.py:310
↓ 7 callers
Function
_extract_body_params
Extract request body parameters.
lap/core/compilers/postman.py:174
↓ 7 callers
Function
_infer_auth_from_description
Last-resort: scan info.description for auth mentions.
lap/core/compilers/openapi.py:271
↓ 7 callers
Function
_install_builtin_skill
Install a built-in skill (bundled with the package) to the target IDE directory.
lap/cli/main.py:726
↓ 7 callers
Function
_is_valid_skill_name
Check if skill name is safe (no path traversal, no hidden files).
lap/cli/main.py:793
↓ 7 callers
Function
_make_get_args
(**overrides)
tests/test_lap_skill.py:112
↓ 7 callers
Function
_map_type
Map JSON Schema type to LAP compact type.
lap/core/compilers/lap_tools.py:32
↓ 7 callers
Function
_metadata_path
Return path to lap-metadata.json for the given target platform.
lap/cli/main.py:753
↓ 7 callers
Function
_parse_param_line
Parse '@in name:type? description' into a ToolParam.
lap/core/compilers/lap_tools_parser.py:22
↓ 7 callers
Function
_split_top_level
Split string by separator, respecting nested braces, parens, and comments. A comma is only a field separator if the text after it looks like
lap/core/parser.py:41
↓ 7 callers
Function
_write_introspection
Helper: build SDL -> introspection JSON -> write to tmp file.
tests/test_graphql_compiler.py:325
↓ 7 callers
Function
cmd_check
Check for LAP skill updates.
lap/cli/main.py:1243
↓ 7 callers
Function
compile_skill_md
Compile an OpenClaw SKILL.md file to LAP.
lap/core/compilers/lap_tools.py:95
↓ 7 callers
Function
detectFormat
(specPath: string)
sdks/typescript/src/compilers/index.ts:10
↓ 7 callers
Function
resolveRef
(spec: Record<string, unknown>, ref: string, _visited?: Set<string>)
sdks/typescript/src/compilers/openapi.ts:25
↓ 7 callers
Method
to_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:95
↓ 7 callers
Function
warn
(msg)
lap/cli/main.py:70
↓ 6 callers
Function
_extract_http_bindings
Extract HTTP bindings from operation input. Returns: (required_params, optional_params, request_body)
lap/core/compilers/smithy.py:458
↓ 6 callers
Function
_find_lap_hook
Helper: find the LAP hook command in new-format hook entries.
tests/test_skill_update.py:665
↓ 6 callers
Function
_register_claude_hook
Add SessionStart hook to .claude/settings.json (idempotent).
lap/cli/main.py:831
↓ 6 callers
Function
_resolve_install_dir
Determine install directory based on target IDE and optional override.
lap/cli/main.py:715
↓ 6 callers
Function
_resolve_lap_cmd
Resolve the lapsh CLI command, preferring global install over npx. On Windows, subprocess needs shell=True for .CMD wrappers (npx.CMD), so we
tests/test_lap_skill.py:560
↓ 6 callers
Function
_resolve_variables
Replace {{var}} with values from the variable dict.
lap/core/compilers/postman.py:21
↓ 6 callers
Method
_run
(self, *args, **kwargs)
tests/test_lap_skill.py:613
↓ 6 callers
Function
_write_metadata
Atomically write lap-metadata.json for the given target.
lap/cli/main.py:777
↓ 6 callers
Function
detectTarget
()
sdks/typescript/src/skill.ts:26
↓ 6 callers
Function
detect_target
Auto-detect IDE target from environment. Detection priority: 1. TERM_PROGRAM env var (macOS/Linux -- set by IDE terminals) 2. IDE-specifi
lap/core/compilers/skill.py:25
↓ 6 callers
Function
parseTargetArg
(args: string[], i: number)
sdks/typescript/src/cli.ts:96
↓ 6 callers
Function
readMetadata
(target: SkillTarget)
sdks/typescript/src/cli.ts:177
↓ 5 callers
Function
_extract_auth_scheme
Map @auth trait to LAP auth string.
lap/core/compilers/smithy.py:256
↓ 5 callers
Function
_extract_path
Extract the path portion from a Postman URL, stripping the base.
lap/core/compilers/postman.py:77
↓ 5 callers
Function
_extract_query_params
Extract query parameters from a Postman URL object.
lap/core/compilers/postman.py:102
↓ 5 callers
Function
_find_service
Find first service shape in model.
lap/core/compilers/smithy.py:230
↓ 5 callers
Function
_get_url_string
Get URL string from Postman URL object or string.
lap/core/compilers/postman.py:60
↓ 5 callers
Function
_infer_question_mapping
Infer natural language question-to-endpoint mappings mechanically. Algorithm: - GET /resources -> "List all {resources}?" - GE
lap/core/compilers/skill.py:388
↓ 5 callers
Method
_make_stream
Create a mock HTTP response that yields lines.
tests/test_cli_auth.py:151
↓ 5 callers
Function
_parse_field
Parse a response field like 'name: str?' or 'billing: map{x: str, y: int}'.
lap/core/parser.py:136
↓ 5 callers
Function
_parse_returns
Parse @returns(CODE) {fields} # desc or @returns(CODE) desc.
lap/core/parser.py:254
↓ 5 callers
Method
_round_trip
Compile OpenAPI → LAP → parse back and verify.
tests/test_parser.py:315
↓ 5 callers
Method
_run
(self, *args, **kwargs)
tests/test_lap_skill.py:660
↓ 5 callers
Function
_unwrap
Unwrap NonNull/List wrappers, return (base_type, type_string, nullable).
lap/core/compilers/graphql.py:40
↓ 5 callers
Function
apiRequest
( method: string, urlPath: string, body?: unknown, token?: string )
sdks/typescript/src/auth.ts:110
↓ 5 callers
Function
api_request
Make an HTTP request to the registry. Returns parsed JSON or raises.
lap/cli/auth.py:116
↓ 5 callers
Function
cmd_diff
Diff two LAP files or compare installed skill vs registry latest.
lap/cli/main.py:1609
↓ 5 callers
Function
compile_mcp_manifest
Compile a full MCP server manifest (with multiple tools) to LAP.
lap/core/compilers/lap_tools.py:73
↓ 5 callers
Function
extract_auth
Extract auth scheme from security definitions.
lap/core/compilers/openapi.py:294
↓ 5 callers
Function
generate_changelog
Generate a markdown changelog from two specs.
lap/core/differ.py:237
↓ 5 callers
Method
getEndpoint
(method: string, path: string)
sdks/typescript/src/parser.ts:62
↓ 5 callers
Function
isValidSkillName
(name: string)
sdks/typescript/src/cli.ts:210
next →
1–100 of 1,430, ranked by callers