Hoyasumii

Aracaju, Brasil Local time:

What's new

  1. Update

    hoyasumii.dev

    This site's API now runs on Afora: every operation is a use case, the contract is shared with the panel and there's a new OpenAPI document.

    Read more →
  2. Launch

    Afora 0.0.7

    I launched Afora: domain modeling for TypeScript on TypeBox, with entities that keep their invariants, masked sensitive data and the whole application describable in JSON.

    Read more →
  3. Launch

    Nyx

    Drop a PDF or PPTX and present it fullscreen right in the browser, no account and no upload.

    Read more →

hoyasumii.dev

This site's API now runs on Afora: every operation is a use case, the contract is shared with the panel and there's a new OpenAPI document.

The API that stores and publishes this site's content was rewritten on Afora (@afora/core and @afora/hono, at 27.0.0-rc.2). Nothing changes for visitors. Under the hood, it's now built with the framework I maintain.

One use case per operation

Listing, creating, editing, reordering and deleting entries, saving settings, managing API keys and notifications: each operation is a use case that declares its route and who may call it (read-only, write, or a panel session). @afora/hono serves them as the HTTP API, and the MCP server calls the same ones. An AI editing the site over MCP goes through the same rules as the panel.

One contract

The schemas of projects, articles, releases and settings are Afora blueprints in packages/shared, used by both the API and the panel. Undeclared keys are rejected, and validation messages are the same on both sides.

On the same data

A custom provider on Supabase writes to the tables the site already had, so no data had to be migrated. Upstash is still the cache.

What changes in the API

  • Errors come as application/problem+json, with the list of issues when the input is invalid.
  • Responses have no { data } envelope; lists come as { items }.
  • A new OpenAPI 3.1 document at /openapi.json.

Code on GitHub · Afora

About the project: hoyasumii.dev ↗