Skip to content

AbdulHadi17/CalliFont

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Supabase (DB + Edge Functions)

Migrations

If you use the Supabase CLI:

supabase login
supabase link --project-ref <your-project-ref>
supabase db push

Edge Function: generate-api

This repo includes an Edge Function that creates a generation job, generates a placeholder handwriting image (SVG), uploads it to Storage, and writes a documents record.

Deploy:

supabase functions deploy generate-api

Example request (sync):

curl -i --location --request POST 'http://127.0.0.1:54321/functions/v1/generate-api/generate' \
	--header 'Authorization: Bearer <ACCESS_TOKEN>' \
	--header 'Content-Type: application/json' \
	--data '{"text":"Hello CalliFont","visibility":"public","settings":{"ink_color":"#111827","paper_color":"#fffdf7"}}'

Example (async + run later):

# create
curl -s --location --request POST 'http://127.0.0.1:54321/functions/v1/generate-api/generate' \
	--header 'Authorization: Bearer <ACCESS_TOKEN>' \
	--header 'Content-Type: application/json' \
	--data '{"text":"Queue this","mode":"async"}'

# then run
curl -s --location --request POST 'http://127.0.0.1:54321/functions/v1/generate-api/jobs/<JOB_ID>/run' \
	--header 'Authorization: Bearer <ACCESS_TOKEN>'

About

An AI based web application that uses Diffusion based ML model to mimic your handwriting style. (ongoing)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors