Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ajzeigert/hono-inkjs
- Owner: ajzeigert
- Created: 2023-11-20T19:06:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T19:15:45.000Z (about 1 year ago)
- Last Synced: 2023-11-20T20:31:20.146Z (about 1 year ago)
- Topics: bun, hono, inkjs
- Language: JavaScript
- Homepage:
- Size: 1.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```