Skip to content

greenhat616/pastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

41abd22 ยท Jan 28, 2025
Apr 18, 2024
Sep 30, 2023
Nov 26, 2023
Dec 30, 2024
Dec 30, 2024
Dec 31, 2024
Jan 4, 2024
Oct 25, 2023
Dec 30, 2024
Dec 30, 2024
Nov 26, 2023
Oct 26, 2023
Sep 30, 2023
Dec 30, 2024
Nov 26, 2023
Oct 21, 2023
Dec 30, 2024
Nov 26, 2023
Sep 30, 2023
Oct 13, 2023
Oct 19, 2023
Dec 30, 2024
Dec 30, 2024
Oct 17, 2023
Apr 18, 2024
Jan 4, 2024
Sep 30, 2023
Nov 26, 2023
Nov 26, 2023
Dec 30, 2024
Oct 20, 2023
Nov 26, 2023
Dec 30, 2024
Dec 30, 2024
Jan 28, 2025
Jan 28, 2025
Oct 20, 2023
Dec 17, 2023
Oct 20, 2023
Dec 30, 2024
Dec 30, 2024
Oct 21, 2023
Apr 18, 2024

Repository files navigation

PasteBin

A lightweight and modern paste bin and url shortener.

Features

๐Ÿ˜‹ Next.js 14 with App Directory support

  • RSC (React Server Component) for global state hold and data fetching
  • React Server Actions for forms mutation
    • A React style full stack solution, a alternative to tRPC

๐ŸŒ I18n with next-intl 3

๐Ÿ” Auth with next-auth 5, including full OAuth support and basic credentials.

  • next-auth with prisma adapter, so that it is not support Edge environment in api route.
  • Credentials password hashed with argon2

๐Ÿ˜ Auto Imports with unplugin-auto-import and unplugin-icons

  • Necessary Next.js components, utils, hooks, and icons are auto imported, so that you don't need to import them manually.

๐Ÿ›ก๏ธ Validation with zod

๐Ÿ’Ž Database ORM with prisma

  • Upcoming multi-drivers support, including PostgreSQL, MySQL, SQLite, SQL Server, and MongoDB

โš›๏ธ UI with Chakra UI

โš™๏ธ CSS utils library UnoCSS, use Tailwind CSS instead.

  • UnoCSS is a better choice for Tailwind CSS, but there are issues blocked the use in webpack or postcss, waiting for the fix.

๐Ÿช› Hooks library, provided by react-use and ahooks

๐Ÿ“ฆ Package management with bun

โšก Syntax highlight with shikiji

๐Ÿงฟ Environment variables providing and validating with @t3-oss/env

๐ŸŒˆ TypeScript native support

๐Ÿ‘ฎโ€โ™‚๏ธ Lints and CI process with husky and lint-staged, checking via eslint, tsc, prettier, and stylelint

Installation

You should define database related environment variables in .env.local file before running the app.

It is required by prisma to generate database schema and types.

bun i # Install dependencies and generate database schema and types

Development

bun dev

Build

bun run build

Preview

bun start

About

A lightweight and modern paste bin and url shortener.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published