A modern, multilingual blog platform and portfolio website built with Next.js 16, featuring AI-powered content generation (DeepSeek), internationalization, and project cost estimator.
- Features
- Quick Start
- Environment Variables
- Available Scripts
- Project Structure
- Tech Stack
- API Routes
- GitHub Actions
- Deployment
- Development
- Contributing
- 3 Languages: Uzbek (uz), Russian (ru), English (en)
- Smart Language Switching: Automatic detection and seamless switching via
next-intl - Locale-aware Routes:
/[locale]/blog,/[locale]/estimator, etc.
- DeepSeek AI: Blog post generation via DeepSeek API
- Multi-language Generation: Simultaneous post creation in all supported languages
- Service Pillars: SEO topics organized by category (mobile-app, MVP, AI, web, telegram, CRM, etc.)
- Source Material: URL or raw text as input for AI generation
- Cover Images: Optional Unsplash integration for blog covers
- Dynamic Routing: SEO-friendly URLs with slug-based navigation
- Rich Content: Markdown with syntax highlighting (rehype-highlight, remark-gfm)
- Related Posts: Cross-language linking via
generationGroupId - Categories & Tags: Organized by service pillars
- Reading Time: Automatic calculation
- Multi-step Wizard: Project type, tech stack, complexity, pages, features
- AI-enhanced Estimates: DeepSeek refines formula-based estimates
- Project Types: Mobile, web, telegram, desktop, other
- Responsive Design: Mobile-first with Tailwind CSS
- Four looks: visitor-pickable themes on shared tokens (
src/modules/home/theme) - Animations: AOS (Animate On Scroll), React Type Animation
- Project Showcase: Portfolio slider with App Store / Play Market links
- Optimized Images: Next.js Image + Sharp
- SEO Ready: Meta tags, structured data, sitemap, robots.txt
- Analytics: Vercel Analytics & Speed Insights
- Node.js 24 β pinned by
.nvmrcandpackage.jsonengines(24.x); runnvm usefirst, since Yarn refuses to install or run scripts on any other version - Yarn
- Neon (serverless Postgres) β free tier is fine
- An AI API key for blog generation (Kimi/Moonshot primary, or DeepSeek) β optional
-
Clone the repository
git clone https://github.com/KAMRONBEK/softwhere.uz.git cd softwhere.uz -
Install dependencies
nvm use # Node 24 from .nvmrc yarn install -
Environment setup
cp env.example .env.local
Edit
.env.localwith your values (see Environment Variables). -
Set up the database
Create the
blog_postsandleadstables in your Neon database:yarn db:push
drizzle-kitreads.env(viadotenv/config), not.env.local. PutDATABASE_URLin.envfor this step β or pastedrizzle/0000_init.sqlinto the Neon SQL editor. Seedocs/database.md. -
Run development server
yarn dev
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
β | Neon (serverless Postgres) connection string |
NEXT_PUBLIC_BASE_URL |
β | Base URL for API calls (e.g. http://localhost:3000) |
NEXT_PUBLIC_TG_BOT_TOKEN |
β * | Telegram bot for contact form notifications |
NEXT_PUBLIC_TG_CHAT_ID |
β * | Telegram chat for contact form notifications |
DEEPSEEK_API_KEY |
β | DeepSeek AI for blog generation & estimator |
UNSPLASH_ACCESS_KEY |
β | Cover images for AI-generated posts |
*Required for contact form
See env.example for setup. Never commit .env.local or real credentials.
| Script | Description |
|---|---|
yarn dev |
Start development server (next dev) |
yarn build |
Build for production |
yarn start |
Start production server |
yarn lint |
Run ESLint |
yarn lint:fix |
Fix ESLint errors |
yarn format |
Format code with Prettier |
yarn format:check |
Check formatting |
yarn type-check |
TypeScript type checking |
yarn normalize-line-endings |
Normalize line endings (LF) |
yarn env:pull:development |
Pull Vercel env for development |
yarn env:pull:production |
Pull Vercel env for production |
| Command | Description |
|---|---|
npx tsx scripts/generate-post.ts [options] |
Generate blog post(s) and save to Neon Postgres |
npx tsx scripts/regenerate-post.ts [flags] |
Regenerate/repair existing posts in place |
npx tsx scripts/audit-posts.ts [flags] |
Read-only quality audit of published posts |
generate-post options:
--category <id>β Service pillar (e.g.mobile-app-development,random)--customTopic <str>β Custom topic (overrides category)--sourceUrl <url>β URL to fetch as source material--sourceText <str>β Raw text as source (max 5000 chars)--locales <list>β Comma-separated (default:en,ru,uz)
Full, current flag lists for every script live in
docs/scripts.md; the GitHub Actions that run them are documented indocs/ci-workflows.md.
softwhere.uz/
βββ .github/workflows/
β βββ generate-post.yml # Scheduled generation (06:17 & 18:17 UTC daily)
β βββ regenerate-post.yml # Manual in-place post regeneration
β βββ audit-posts.yml # Monthly read-only quality audit
βββ public/ # Static assets
βββ scripts/
β βββ generate-post.ts # CLI blog post generator
β βββ regenerate-post.ts # Regenerate/repair posts in place
β βββ audit-posts.ts # Read-only quality audit
β βββ lib/
β βββ similarity.ts # Duplicate detection
β βββ post-structure.ts
βββ src/
β βββ app/ # Next.js routes (logic-thin); may import any layer
β β βββ [locale]/ # Internationalized routes
β β β βββ page.tsx # Home
β β β βββ admin/ # Admin posts UI
β β β βββ blog/ # Blog listing & posts
β β β βββ estimator/ # Cost estimator
β β βββ api/ # API route handlers
β β βββ sitemap.ts
β β βββ robots.ts
β βββ core/ # Framework/app-agnostic infra (imports: core only)
β β β # env, logger, db, i18n, ai, http, auth, constants
β βββ shared/ # Reusable non-domain code (imports: core, shared)
β β βββ components/ # site/ (page primitives), TelegramChat, β¦
β β βββ data/ # projects
β β βββ types/
β β βββ utils/ # slug, analytics, send, security, rateLimit
β βββ modules/ # Business capabilities (imports: core, shared, own module)
β β βββ blog/ # components, api (generator), model, data, context, utils
β β βββ estimator/ # components, data, utils, constants, types
β β βββ admin/ # components, utils
β βββ messages/ # next-intl locale bundles (en/ru/uz)
β βββ proxy.ts # next-intl routing proxy (middleware)
βββ eslint.config.mjs # ESLint flat config + eslint-plugin-boundaries
βββ tailwind.config.ts
βββ next.config.mjs
Layer import direction (
core β shared β modules β app) is enforced byeslint-plugin-boundaries. Seedocs/architecture.md.π Full documentation index:
docs/README.mdβ architecture, blog pipeline, estimator, i18n, API reference, auth, deployment, SEO, MCP, testing, and ADRs.
| Layer | Technologies |
|---|---|
| Framework | Next.js 16 (App Router) |
| Language | TypeScript 5.8 |
| Styling | Tailwind CSS |
| Database | Neon Postgres + Drizzle |
| AI | DeepSeek (OpenAI-compatible API) |
| i18n | next-intl |
| Deployment | Vercel |
| Endpoint | Method | Description |
|---|---|---|
/api/blog/posts |
GET | List blog posts |
/api/blog/posts/[slug] |
GET | Single post by slug |
/api/blog/posts/related |
GET | Related posts by generationGroupId |
/api/blog/generate |
POST | Generate blog posts (AI) |
/api/contact |
POST | Contact form (Telegram) |
/api/estimate |
POST | Project cost estimate |
/api/health |
GET | Health check |
/api/health/db |
GET | Database health |
Three workflows automate the blog. Full detail β inputs, secrets, and what each commits β is in
docs/ci-workflows.md.
- Schedule: Twice daily at 06:17 and 18:17 UTC
- Manual:
workflow_dispatchwith inputs (category, customTopic, sourceUrl, sourceText)
- Trigger: Manual only β regenerates/repairs existing posts in place
- Schedule: Monthly, on the 1st at 07:07 UTC β read-only quality report
- Connect the GitHub repo to Vercel
- Add environment variables in the Vercel dashboard
- Deploy on push to main
yarn build
yarn startThe project uses LF. After cloning:
git config --local core.autocrlf false
yarn normalize-line-endingsFor local development with production-like env:
yarn env:pull:development
yarn dev- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is private and proprietary. Β© 2026 All rights reserved.
- Website: softwhere.uz
- GitHub: @KAMRONBEK