@tananetwork/vite-plugin-tana
v0.6.11
Published
Vite plugin for building full-stack applications on the Tana blockchain platform
Downloads
1,865
Maintainers
Readme
@tananetwork/vite-plugin-tana
Vite plugin for building React web applications on the Tana blockchain platform.
Features
- React 19 SSR - Server-side rendering with React Server Components
- Hot Module Replacement - Instant updates during development
- File-based routing -
app/page.tsx,app/about/page.tsx, etc. - TypeScript & Tailwind - Full support out of the box
- Deploy to blockchain - Ship your site as an on-chain contract
Quick Start
1. Install the Tana CLI
npm install -g @tananetwork/tana2. Create a new website
tana new website my-site
cd my-site3. Start development
npm run devOpen http://localhost:5173 to see your site.
4. Deploy to blockchain
tana deploy website .Templates
Create a site from a template:
tana new website my-site --template blogAvailable templates:
default- Minimal starter with Tailwindblog- Blog with markdown supportmarketing- Landing page templateminimal- Bare bones starterportfolio- Personal portfolio
Project Structure
my-site/
├── app/
│ ├── page.tsx # Home page (/)
│ ├── about/
│ │ └── page.tsx # About page (/about)
│ └── layout.tsx # Root layout
├── public/ # Static assets
├── vite.config.ts # Vite configuration
└── package.jsonDocumentation
Full documentation at tana.network/docs
License
MIT
