Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
Terminal
https://github.com/heyputer/terminal
Admin
⌨️ Web-based terminal in pure JavaScript
Tokens:
332
Snippets:
5
Trust Score:
-
Update:
1 year ago
Context
Chat
Benchmark
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Demonstrating Puter Terminal Capabilities Source: https://github.com/heyputer/terminal/blob/trunk/README.md Examples of commands that can be executed in the Puter terminal, showcasing integration with AI services, image generation, system information, command substitution, and file manipulation. ```Shell ai "write me a story" txt2img "a blue computer on a cloud" > puter.png neofetch echo $(echo "command substitution") cat example.txt | grep "find me" cat example.json | jq "name" ``` -------------------------------- ### Install Puter Dev-Runner CLI Tool Source: https://github.com/heyputer/terminal/blob/trunk/README.md Command to globally install the `@heyputer/dev-runner` utility, which is required to run the Puter terminal and shell locally. ```Shell npm install -g @heyputer/dev-runner ``` -------------------------------- ### Run Puter Phoenix Shell with Dev-Runner Source: https://github.com/heyputer/terminal/blob/trunk/README.md Command to start the `phoenix` shell's HTTP server using `dev-runner` from within the `terminal` repository, enabling local testing and development. ```Shell dev-runner ./run-phoenix-http.json5 ``` -------------------------------- ### Recommended Directory Structure for Puter Terminal Development Source: https://github.com/heyputer/terminal/blob/trunk/README.md Illustrates the recommended directory layout for setting up the `terminal` and `phoenix` repositories as sibling directories for local development. ```Shell my-puter-repos/ terminal/ phoenix/ ``` -------------------------------- ### Initialize Terminal on DOM Load (JavaScript) Source: https://github.com/heyputer/terminal/blob/trunk/assets/index.html This snippet ensures that the `main_term()` function is called asynchronously once the entire HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading. ```JavaScript document.addEventListener('DOMContentLoaded', async () => { main_term(); }); ```