Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Clips } from "@/components/landing/clips";
import { Bench, Integrations, Start } from "@/components/landing/sections";
import { Hanko } from "@/components/landing/hanko";
import { pageMeta } from "@/lib/site";
import { latestRelease } from "@/lib/source";
import { app } from "@/server/app";

export const metadata: Metadata = pageMeta({
Expand All @@ -37,7 +38,7 @@ export default function Home() {
<Smooth />
<Nav />
<main className="flex-1">
<Hero />
<Hero release={latestRelease()} />
<div className="mx-auto w-full max-w-6xl px-5 sm:px-8">
<p className="flex flex-wrap items-center gap-x-2 border-y border-line py-4 font-mono text-xs text-muted">
<span className="text-hot">印</span>
Expand Down
24 changes: 13 additions & 11 deletions components/landing/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function Session() {
);
}

export function Hero() {
export function Hero({ release }: { release?: { version: string; badge: string; url: string } }) {
const still = useReducedMotion();
const [landed, setLanded] = useState(Boolean(still));

Expand Down Expand Up @@ -123,16 +123,18 @@ export function Hero() {
</motion.div>
</div>

<motion.a
href="https://github.com/inkanjs/inkan/releases/tag/v0.9.0"
initial={still ? false : { opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.75, duration: 0.5, ease }}
className="mb-6 inline-flex max-w-full items-center gap-2 rounded-full border border-line bg-card/60 px-3 py-1 font-mono text-xs text-soft hover:border-hot"
>
<span className="rounded-full bg-seal px-2 py-0.5 font-bold text-[#fbf1e6]">v0.9.0</span>
npm create inkan, WebSockets on any server →
</motion.a>
{release && (
<motion.a
href={release.url}
initial={still ? false : { opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.75, duration: 0.5, ease }}
className="mb-6 inline-flex max-w-full items-center gap-2 rounded-full border border-line bg-card/60 px-3 py-1 font-mono text-xs text-soft hover:border-hot"
>
<span className="rounded-full bg-seal px-2 py-0.5 font-bold text-[#fbf1e6]">v{release.version}</span>
{release.badge} →
</motion.a>
)}

<h1 className="font-mono text-4xl font-extrabold leading-[1.05] tracking-tight sm:text-5xl lg:text-[3.4rem]">
{["An API framework", "for Node where", "the docs", "can't lie."].map((line, i) => (
Expand Down
3 changes: 3 additions & 0 deletions content/blog/inkan-0-10.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: "Your API, as tools a model can call"
description: "inkan 0.10 serves every route as an MCP tool, made from the contract the route already has, and checks that what a model gets is what the docs say."
date: "2026-11-13"
author: "Vensin"
release:
version: "0.10.0"
badge: "MCP: every route a tool for AI clients"
---

Every inkan route carries its contract: what goes in, what comes out, and a few examples of
Expand Down
3 changes: 3 additions & 0 deletions content/blog/inkan-0-9.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: "inkan 0.9: easier to find, try and adopt"
description: "npm create inkan, WebSockets on any server through app.upgrade, a GitHub Action for check and diff, and a website that says when to pick something else."
date: "2026-11-03"
author: "Vensin"
release:
version: "0.9.0"
badge: "npm create inkan, WebSockets on any server"
---

0.8 froze the API. With that done, what was missing was not another feature. It was the way
Expand Down
6 changes: 6 additions & 0 deletions lib/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export const published = (): Post[] => all.filter((post) => !post.draft);
/** What the blog shows: the published posts, and the drafts too in a preview. */
export const posts = (): Post[] => (showDrafts ? all : published());

/** The newest published post that announces a release, for the badge on the landing page. */
export const latestRelease = () => {
const post = published().find((p) => p.release);
return post?.release && { ...post.release, url: post.url };
};

export const getPost = (slug: string): Post | undefined => posts().find((post) => post.slug === slug);

/** A post's date as people read it: "3 November 2026". */
Expand Down
2 changes: 2 additions & 0 deletions source.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const blog = defineCollections({
date: z.iso.date(),
author: z.string().default("Vensin"),
draft: z.boolean().default(false),
// the post that announces a release: the newest published one is the badge on the landing page
release: z.object({ version: z.string(), badge: z.string() }).optional(),
}),
});

Expand Down
Loading