YAAIP — Yet Another AI Prompter
This Miso webapp is loosely based on the miso-ui website source code.
Miso
Miso is a small, production-ready, component-oriented, reactive, isomorphic Haskell front-end framework for quickly building highly interactive single-page web and mobile applications. It features a virtual-dom, recursive diffing / patching algorithm, attribute and property normalization, event delegation, event batching, SVG, 2D/3D Canvas (WebGL), Server-sent events SSE, Websockets, type-safe servant -style routing and an extensible Subscription-based subsystem. Inspired by Elm and React. Miso is pure by default, but side effects can be introduced into the system via the Effect data type.
YAAIP
Yet Another AI Prompter we bapp generates a JSON format prompt for AI.
The project is on Codeberg: photonsphere/yaaip and is deployed here: yaaip.photonsphere.org.
Example
Here's a ready to import JSON stored template.
1[{"tmBlocks":[{"blockId":1,"blockKey":"role","blockValue":{"contents":[{"blockId":2,"blockKey":"1","blockValue":{"contents":"You are an experienced Haskell developer.","tag":"JsonPrimitive"}},{"blockId":3,"blockKey":"2","blockValue":{"contents":"You are a Rust developer (albeit somewhat \"rusty\")","tag":"JsonPrimitive"}}],"tag":"JsonNested"}},{"blockId":4,"blockKey":"task","blockValue":{"contents":"Port Rust project to Haskell.","tag":"JsonPrimitive"}},{"blockId":5,"blockKey":"restriction","blockValue":{"contents":[{"blockId":6,"blockKey":"1","blockValue":{"contents":"Never change git (hence no commit, etc.)","tag":"JsonPrimitive"}},{"blockId":7,"blockKey":"2","blockValue":{"contents":"Use idiomatic Haskell; remove inferior Rust code constructs.","tag":"JsonPrimitive"}}],"tag":"JsonNested"}}],"tmCategory":"Dev","tmName":"Rust to Haskell port","tmTags":["Haskell","Rust","Porting"]}]