Learn how to build real-time applications with post.js. This framework combines blazing-fast performance with zero-config server-side rendering and first-class TypeScript support.
// app/page.tsx
import { Post } from 'post.js'
export default function Home() {
return (
Hello, world!
)
}
Just install via npm create post and start building. No webpack, no Babel, just works.
Built-in WebSocket support for real-time updates with zero boilerplate code.
Ships with WebAssembly optimizations, native TypeScript support, and modern tooling.
npm create post@latest
Follow the interactive setup wizard to create your first post.js project.
├── app/ │ ├── layouts/ │ ├── routes/ │ └── components/ ├── post.config.js └── package.json
post.js uses a convention-over-configuration approach.
npm run dev
The dev server starts instantly with hot module reloading.
Fast rebuild times with incremental bundling
Press Ctrl+C to stop
Optimized for edge deployments
npm run build
Zero-config Vercel deployment
npm run deploy
Creates a responsive hero component with gradient background
Automatic client-side routing with HTML5 history API
Reactive state management with built-in persistence
WebSocket handler with automatic reconnection
Server-side rendering with streaming responses
import { Post } from 'post.js'
export default function Counter() {
const { count, increment } = Post.Store({ count: 0 })
return (
<div className="text-center">
<h2>Count: {count}</h2>
<button
onClick={() => increment('count', 1)}
className="bg-blue-500 hover:bg-blue-600 px-4 py-2 rounded"
>
Increment
</button>
</div>
)
}
The Store API provides reactive variable management that automatically updates connected components.
npm install -g post
Create new post.js project
Add feature to existing project
Run project integrity check
Format codebase with Prettier
The CLI wizard handles most common configuration tasks automatically.
All the tools you need for building modern applications are included or integrated directly with post.js
Built-in authentication system with OAuth2, session management, and rate-limited login attempts
Built-in analytics dashboard with real-time session tracking and user activity monitoring
Get answers to common questions about the framework