Skip to main content

URL parameters

Datagrok reads query parameters from the browser URL to control startup behavior, navigation, embedding, debugging, and more.

Startup

ParameterValuesDefaultDescription
modeembedHides menus, sidebars, and toolbars for iframe embeds
initPackageFunctionstrue | falsetrueLoad and register package functions
includePackagespackage namesOnly load the listed packages
excludePackagespackage namesExclude the listed packages (or all, if value is empty)
cmdsemicolon-separated commandsExecute commands after startup

Package filtering

Use includePackages and excludePackages to control which packages are loaded. Package names are delimited by spaces, commas, or hyphens. Matching is case-insensitive.

?includePackages=Chem           // only load Chem
?includePackages=Chem,Bio // only load Chem and Bio
?excludePackages=Bio Chem // load everything except Bio and Chem
?excludePackages // exclude all packages

When both parameters are present, includePackages takes precedence.

Commands

The cmd parameter executes one or more commands at startup, separated by semicolons. Parameterized commands use the command(param) syntax:

?cmd=OpenHelp
?cmd=OpenHelp;TogglePresentationMode
ParameterValuesDefaultDescription
browsetree pathSelect a node in the browse panel
layoutname or GUIDApply a saved layout to the current view
vviewer IDShow a single viewer (used with mode=embed)
qsearch textPre-fill the search filter in the functions browser

Presentation

ParameterValuesDefaultDescription
modepresentationEnter presentation mode on startup

Authentication

These parameters are typically generated by the platform, not typed manually.

ParameterDescription
tokenAuth token (removed from URL after use)
sessionTokenGuest session token for embedded views
ssoSSO provider name or payload
sigSSO signature
codeOAuth or email confirmation code
emailEmail for signup or password reset
actionAccount action: invite, confirm
enableOpenIdAutoLoginAuto-login via OpenID (true by default)
groupPasswordGroup access password for signup
sharedEntity ID shared with the user
sharedByUser ID of who shared it

Debugging

ParameterValuesDefaultDescription
debugEnable debug mode (uses localhost defaults for API)
debug-*JSON valueOverride a debug setting (e.g., debug-logLevel="verbose")
dapiUrlURLOverride the API root URL
loadSrcMapstrue | falseForce-load or disable Dart source maps for stack traces
testsfilter patternRun tests matching the pattern (pipe-separated segments)

Debug settings

Any parameter starting with debug- is JSON-decoded and applied to the corresponding property in DebugSettings. For example:

?debug-logLevel="verbose"&debug-traceQueries=true

Running tests

The tests parameter triggers the test runner with a pipe-separated filter:

?tests=d4|Viewers|Scatter       // run Scatter viewer tests
?tests=ddt|DataFrame // run DataFrame tests

Project parameters

Projects can define custom URL parameters that map to their creation script's function parameters. When you open a project URL with extra query parameters, those values are forwarded to the corresponding function inputs:

/p/user.dashboard?region=France&year=2025

See also