Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ajzeigert/hono-inkjs

Inkjs server implementation, sends pure html, no client-side javascript
https://github.com/ajzeigert/hono-inkjs

bun hono inkjs

Last synced: about 1 month ago
JSON representation

Inkjs server implementation, sends pure html, no client-side javascript

Awesome Lists containing this project

README

        

# InkJS Hono

This repo attempts to create a pure server-side implementation of InkJS. Hono handles all of the javascript, serving plain HTML to the client. State is saved via cookies and all interaction is handled via query parameters.

:construction: Experimental, work in progress

Largely reimplements [https://github.com/smwhr/inkjs-express](https://github.com/smwhr/inkjs-express), but with the goal of state being managed via the player's browser storage.

Big limitations so far:

- Story object must be re-created on every request to `/continue`, then state restored from cookie.
- Some states seem to be broken! Lots of `choice out of range null` errors. Contributions on this welcome.

```
bun install
bun run dev
```

```
open http://localhost:3000
```