GithubHelp home page GithubHelp logo

yutakobayashidev / hono-playground Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yusukebe/hono-playground

0.0 0.0 0.0 2.45 MB

Home Page: https://playground.hono.dev

CSS 15.17% HTML 84.83%

hono-playground's Introduction

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: https://playground.hono.dev/

Screenshots

SS

The minimal code

This is a minimal code to run a Hono app on browsers.

<html>
  <head>
    <script type="module">
      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()
    </script>
  </head>
  <body>
    <div id="result"></div>
  </body>
</html>

Author

Yusuke Wada https://github.com/yusukebe

License

MIT


Monaco Editor

The MIT License (MIT)

Copyright (c) 2016 - present Microsoft Corporation

hono-playground's People

Contributors

yusukebe avatar edamame-x avatar steelydylan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.