Back to Templates

Onelink
Onelink is an experimental link-in-bio tool, where the data lives in the URL.
Note Since the URL can become very long, it's better to use a link shortener like https://dub.co
The data is converted to a base 64 string which we onelink uses as a query parameter. I have tried to reduce the json keys to be as small as possible
Roadmap.
- Templates - make different templates, the
/1
after the host is basically a template here. - Refactor code - a lot of repeated boilerplate code is added here - refactor it properly.
Setup locally
Make sure to install the dependencies:
# yarnyarn install# npmnpm install# pnpmpnpm install --shamefully-hoist
Development Server
Start the development server on http://localhost:3000
npm run dev
Production
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Checkout the deployment documentation for more information.
Related Templates
EnvShare
Simple Next.js + Upstash app to share environment variables securely using AES-CBC encryption.

Taxonomy
SaaS application and docs built using Next.js 13 and the app directory.

Precedent – Next.js Starter
A collection of components, hooks, and utilities built on Next.js, Typescript, Tailwind, Radix, Framer Motion, Prisma, and PostgreSQL.
