Skip to content

thoughtfulllc/gridland

Repository files navigation

Gridland

Build

Website | Docs | npm

Build terminal apps that run in the browser (and the terminal) with React. The Gridland website is built with Gridland.

Gridland is built on the OpenTUI rendering engine.

Gridland

Quick Start

Create a new project:

bunx create-gridland my-app

Note: Terminal apps require Bun to run in development. However, you can compile to a standalone binary that requires no runtime at all — users don't need Bun, Node, or npm installed.

Try the Demos

Run interactive demos in your terminal:

bunx @gridland/demo landing
bunx @gridland/demo gradient
bunx @gridland/demo chat

Add to an Existing Project

Vite

bun add @gridland/web
// vite.config.ts
import { gridlandWebPlugin } from "@gridland/web/vite-plugin";

export default defineConfig({
  plugins: [gridlandWebPlugin()],
});

Next.js

bun add @gridland/web
// next.config.ts
import { withGridland } from "@gridland/web/next-plugin";

export default withGridland({});

Components

UI components are distributed via a shadcn registry. Install them individually so you own the code:

bunx shadcn@latest add @gridland/chat
bunx shadcn@latest add @gridland/spinner
bunx shadcn@latest add @gridland/table

Sandboxed Execution

Run any app in an isolated Docker container:

bunx @gridland/container @gridland/demo -- landing

Supports npm packages, GitHub repos, and local directories as sources.

Compile to Binary

Build a standalone executable with no runtime required:

bun build --compile src/cli.tsx --outfile my-app

Packages

Package Description
@gridland/web Core canvas renderer and React integration
@gridland/utils Portable hooks (useKeyboard, useTerminalDimensions)
@gridland/bun Bun-native runtime for CLI apps
@gridland/ui Pre-built UI components via shadcn registry
@gridland/testing Test utilities for TUI components
@gridland/demo Interactive demo runner
@gridland/container Docker sandbox runner

Documentation

Full docs at gridland.io/docs


Made with ❤️ by Chris Roth and Jessica Cheng

About

Terminal apps that run anywhere - even the browser!

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors