<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn" -->

---
title: Vitek Plugin: Stop Writing Boilerplate API Routes.
description: Discussion about "Vitek Plugin: Stop Writing Boilerplate API Routes." on daily.dev - join the developer community
canonical: https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Vitek Plugin: Stop Writing Boilerplate API Routes. | daily.dev
og:description: Discussion about "Vitek Plugin: Stop Writing Boilerplate API Routes." on daily.dev - join the developer community
og:url: https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn
og:image: https://api.daily.dev/og/posts/Z1TKsjsrN.png
og:image:alt: Vitek Plugin: Stop Writing Boilerplate API Routes.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Vitek Plugin: Stop Writing Boilerplate API Routes.

**[Victor Bicudo](https://daily.dev/sources/6cagazbsd)** · [@martinsbicudo](https://daily.dev/martinsbicudo) · 2 upvotes · 0 comments

## Content

Tired of setting up Express servers alongside your Vite dev workflow? **Vitek** turns your `src/api` folder into a fully typed HTTP API — zero config, hot reload, and automatic OpenAPI/Swagger docs included.

**What it does:**

- 📁 **File-based routing** — `users.get.ts` → `GET /api/users`

- 🔥 **Hot reload** — Change a file, API updates instantly

- 📝 **Auto type generation** — Typesafe client helpers for your frontend

- 📚 **OpenAPI + AsyncAPI docs** — Interactive Swagger UI out of the box

- 🚀 **Production-ready** — Single command `vitek-serve` for static + API

**Quick start:**

```
npm install vitek-plugin
npx vitek init
npm run dev
```

Open `http://localhost:5173/api/health` — you're done.

Built this because I was tired of context-switching between Vite and separate backend setups. Now it's one dev server, one build process, full type safety from frontend to API.

> 🚧 **Beta v0.2.1** — APIs may change. Need your feedback to make this rock solid.

**👉 **[**Check it out on GitHub**](https://github.com/martinsbicudo/vitek-plugin)** — star it, open issues, or contribute. All help is welcome!**

> **Note**: This isn't claiming to be the **_best_** way to build APIs — just another option for quickly spinning one up when you need something fast and integrated with Vite.

**Tags:** `opensource` `vite` `typescript` `api` `backend` `webdev` `nodejs`

---

[View this post on daily.dev](https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn","headline":"Vitek Plugin: Stop Writing Boilerplate API Routes.","text":"Discussion about \"Vitek Plugin: Stop Writing Boilerplate API Routes.\" on daily.dev - join the developer community","url":"https://daily.dev/posts/vitek-plugin-stop-writing-boilerplate-api-routes--z1tksjsrn","datePublished":"2026-03-08T18:25:34.486Z","dateModified":"2026-03-10T18:40:03.954Z","author":{"@type":"Person","name":"Victor Bicudo","url":"https://daily.dev/martinsbicudo","image":"https://avatars.githubusercontent.com/u/10812261?v=4","description":"Specialist Software Engineer \u0026 Tech Entrepreneur","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":180}},"image":"https://media.daily.dev/image/upload/s--H7Dmcg8i--/f_auto/v1772994335/posts/Z1TKsjsrN?_a=BAMAMiiu0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/6cagazbsd","name":"Victor Bicudo"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Victor Bicudo","item":"https://daily.dev/sources/6cagazbsd"},{"@type":"ListItem","position":3,"name":"Vitek Plugin: Stop Writing Boilerplate API Routes."}]}
```

