Snippets

I'll save useful links and code snippets that I use regularly.

Tailwind CSS

External Link
THE most kick ass CSS framework that I always use.

illustrations

External Link
Open source illustrations kit by @realvjy

Feather

External Link
Simply beautiful open source icons

Feed

External Link
Small lib to help you build your RSS feed like mine.

Next.js CRUD API Route with TypeScript


// /pages/api/data.ts
import type { NextApiRequest, NextApiResponse } from 'next'

import { Data } from '../../types/data'

export default function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
  if (req.method === 'PUT') {
  }

  if (req.method === 'GET') {
  }

  if (req.method === 'POST') {
  }

  if (req.method === 'DELETE') {
  }
}