
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
compose-shell
Advanced tools
A web component for displaying a versatile shell-like interface.
Simply npm install compose-shell
and require it in your project. The package doesn't export anything.
dist
dist/
for both minified and unminified sources.shell.css
This is a web component. Which means, you don't manually trigger it. Just follow the simple HTML guidelines to making it work.
Within your site, you need a structure similar to this:
<compose-shell method="get" action="path_to_action">
<!-- Example params group -->
<compose-shell-param name="find" before="find(" after=")">
<compose-shell-param name="find[query]" required="true" before="{" after="}" type="hash" parser="bson"></compose-shell-param>
<compose-shell-param name="find[fields]" before=",{" after="}" type="hash" hint="Fields" parser="bson"></compose-shell-param>
</compose-shell-param>
<!-- Example standalone params -->
<compose-shell-param name="sort" before=".sort({" after="})" type="hash" parser="bson"></compose-shell-param>
<compose-shell-param name="explain" type="boolean">.explain()</compose-shell-param>
<!-- Buttons referecing the fields -->
<compose-shell-button toggle="find[fields]">fields{}</compose-shell-button>
<compose-shell-button toggle="sort">sort()</compose-shell-button>
<compose-shell-button toggle="explain">explain()</compose-shell-button>
<!-- A submit button -->
<compose-shell-button type="submit">Run</compose-shell-button>
</compose-shell>
There's a lot more examples of this in the examples.html
file. If you pull/download the repository, you can load the file up in a browser and it should work fine.
<compose-shell>
The parent tag contains the whole shell parameters and buttons (more on this below.)
Any attributes passed to it will be applied to the form
that'll be submitted
<compose-shell-param>
... can either be a standalone param or a group of params.
name
to send as an input within the form. Also used to reference the param by other attributes / elements.before
, but after.Parameters of type boolean can have content within the <compose-shell-param>
tag. This will be displayed as their label.
<compose-shell-button>
Button to toggle the field on or off.
The only relevant attribute is toggle, it corresponds to the name of the parameter to toggle.
... is used for the label on the button
FAQs
A web component for displaying a versatile shell-like interface.
We found that compose-shell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.