https://github.com/yusukebe/hono-playground
https://github.com/yusukebe/hono-playground
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yusukebe/hono-playground
- Owner: yusukebe
- Created: 2023-10-19T09:28:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T14:43:34.000Z (over 2 years ago)
- Last Synced: 2025-03-28T02:49:47.606Z (about 1 year ago)
- Language: HTML
- Homepage: https://playground.hono.dev
- Size: 2.39 MB
- Stars: 19
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hono Playground
The Hono Playground is a web page that allows you to run a Hono app in your browser without a server.
We know that Hono works on server sides - Cloudflare Workers, Fastly Compute@Edge, Deno, Bun, and Node.js. However, Hono also works on browsers as it is composed of only Web-standards APIs.
This may seem obvious, but it's exciting to see it actually work in this manner. You can experience it at this URL:
## Screenshots

## The minimal code
This is a minimal code to run a Hono app on browsers.
```html
import { Hono } from 'https://esm.sh/hono'
const app = new Hono()
app.get('*', (c) => c.text(`You are accessing ${c.req.path}`))
const res = await app.request(location.href)
document.getElementById('result').innerText = await res.text()
```
## Author
Yusuke Wada
## License
MIT
---
```txt
Monaco Editor
The MIT License (MIT)
Copyright (c) 2016 - present Microsoft Corporation
```