MCPcopy Index your code
hub / github.com/unconed/TermKit

github.com/unconed/TermKit @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
525 symbols 1,234 edges 216 files 48 documented · 9% updated 14y ago★ 4,43027 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TermKit

TermKit Icon

Goal: next gen terminal / command application

Built out of WebKit and Node.js.

Runs as a desktop app on Mac, Windows and Linux, and can be hacked into any WebKit browser (Chrome, Safari).

Follow TermKit on Twitter for the latest news and updates.

For the background and architecture, please read and comment on: http://acko.net/blog/on-termkit

TermKit 0.3 alpha TermKit 0.3 alpha TermKit 0.3 alpha

Warning: Alpha version, still under development. Nothing works yet.

Some cool features

  • Smart token-based input with inline autocomplete and automatic escaping
  • Rich output for common tasks and formats, using MIME types + sniffing
  • Asynchronous views for background / parallel tasks
  • Full separation between front/back-end

TermKit is not a...

  • ...Web application. It runs as a regular desktop app.
  • ...Scripting language like PowerShell or bash. It focuses on executing commands only.
  • ...Full terminal emulator. It does not aim to e.g. host 'vim'.
  • ...Reimplementation of the Unix toolchain. It replaces and/or enhances built-in commands and wraps external tools.

(but you could make it do most of those things with plug-ins)

How to use:

Detailed instructions are available from these sources:

Unfortunately, TermKit currently requires some assembly.

  1. Install the Mac development tools (Xcode and friends).
  2. Install node.js.
  3. If not covered in #2, install npm: curl http://npmjs.org/install.sh | sh
  4. Install node-mime: npm install mime
  5. Clone the TermKit repository: git clone https://github.com/unconed/TermKit.git --recursive
  6. Users of older git versions will need to type: git submodule update --init
  7. Run the NodeKit daemon: cd TermKit/Node; node nodekit.js

Mac: * Unzip and run the Mac app in Build/TermKit.zip

Linux: * See Linux/Readme.txt

Tip: Press ⌥⌘C to access the WebKit console.

API

Preliminary instructions on how to write TermKit native commands can be found here: https://github.com/unconed/TermKit/blob/master/Node-API.md

Credits

TermKit by Steven Wittens (@unconed).

Windows port by James Rhodes (@hachque).

Linux Python/GTK wrapper by Lucas S. Magalhães.

Includes:

  • “NSImage+QuickLook” by Matt Gemmell (http://mattgemmell.com/source).
  • SyntaxHighlighter by Alex Gorbatchev (http://alexgorbatchev.com/SyntaxHighlighter/)
  • jQuery and jQuery UI

Core symbols most depended-on inside this repo

jQuery
called by 185
HTML/external/jquery-ui/development-bundle/jquery-1.5.1.js
assert
called by 66
Node/test.js
jQuery
called by 65
HTML/external/syntaxhighlighter_3.0.83/tests/js/jquery-1.4.2.js
jQuery
called by 63
HTML/jquery.js
exit
called by 30
Node/shell/command.js
callback
called by 25
HTML/client/shell.js
extend
called by 19
HTML/external/syntaxhighlighter_3.0.83/tests/js/qunit.js
buffer
called by 17
Node/test.js

Shape

Function 525

Languages

TypeScript100%

Modules by API surface

HTML/jquery.js53 symbols
HTML/external/jquery-ui/development-bundle/jquery-1.5.1.js49 symbols
HTML/external/syntaxhighlighter_3.0.83/src/shCore.js43 symbols
HTML/external/jquery-ui/js/jquery-1.5.1.min.js43 symbols
HTML/external/jquery-ui/development-bundle/ui/jquery-ui-1.8.12.custom.js40 symbols
HTML/external/syntaxhighlighter_3.0.83/tests/js/jquery-1.4.2.js39 symbols
HTML/external/jquery-ui/js/jquery-ui-1.8.12.custom.min.js23 symbols
HTML/external/jquery-ui/development-bundle/external/qunit.js20 symbols
HTML/external/syntaxhighlighter_3.0.83/tests/js/qunit.js19 symbols
Node/test.js17 symbols
HTML/external/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js15 symbols
HTML/external/jquery-ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js13 symbols

For agents

$ claude mcp add TermKit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact