This repo is an exploration of what's possible with Typescript, Express, and other packages, libraries, and models that might be interesting for Generative AI & JavaScript Development. It's more of a sketch pad to see what's out there. It also makes use of HTMx
for minimalist server requests and Twig
templating language for HTML-friendly markup.
A simple form with three AI APIs utilizing three different models.
Hugging Face
calls thestabilityai/stable-diffusion-3-medium-diffusers
modelOpen AI
calls its owndall-e-3
modelReplicate
calls theadirik/flux-cinestill
model.
Each user-provided prompt gets re-written using Google Gemini 1.5 Flash
and streamed back into the Prompt Rephrase
input. I found that the prompts generated by Gemini were more original. Authors can choose to re-write the generated prompt or just generate the image.
Still a WIP but interesting to see what options are out there for building full stack GENAI apps.
git clone git@github.com:edgeq/ts-express-ai.git
npm install
You will need to make your own .env
file in the root directory with whatever API Tokens you want to to use.
npm run dev
spins up a local development server.
Have fun!
More Projects to Follow...