フルスタック2026注目

PromptSense

AIプロンプトプラットフォーム

promptsenses.vercel.app
PromptSense – AIプロンプトプラットフォーム screenshot 1 of 1
01

課題

高品質なAIプロンプトの発見・整理・共有がドキュメントやチャット、スプレッドシートに散在している。

02

アプローチ

NextAuth認証、MongoDB/Mongooseデータ層、メディア用OCI Object Storage、一括インポート用管理ダッシュボード、公開探索・トレンド・カテゴリ・ブログ・地域別料金プランを備えたフルスタックNext.js 16プラットフォームを構築。

03

成果

認証付き公開機能、コメント・利用テレメトリ、管理コンソール、決済連携対応の地域別料金プランを備えたコミュニティプロンプトマーケットプレイス。

システム設計

PromptSense の構成

技術アーキテクチャの説明は英語です。

A single Next.js 16 deployment: server-rendered public pages, route handlers for the API and an admin console share one codebase and one session model, backed by MongoDB and OCI Object Storage.

deployable for site, API and admin
1
rate-limited write endpoints
6
uploads per IP
20/min

01 · Clients

client

Visitors & creators

client

Admins

02 · Next.js app

service

Public pages

RSC

explore, prompts, blog, pricing

service

Admin console

bulk imports, users, content

03 · Platform

service

Route handlers

prompts, comments, telemetry, uploads

service

Auth.js

credentials (bcrypt) + Google, JWT

gateway

Rate limiter

sliding window, per instance

04 · Data & services

database

MongoDB

Mongoose

prompts, users, blog

object store

OCI Object Storage

media uploads

third-party

Google OAuth

clientgatewayservicedatabaseobject storethird-party

11 connections

  • Visitors & creators→Public pagesHTTPS
  • Visitors & creators→Route handlerscomments · telemetry
  • Admins→Admin console
  • Admin console→Route handlersbulk import
  • Public pages→MongoDBserver read
  • Route handlers→Rate limitercheck
  • Route handlers→Auth.jssession
  • Route handlers→MongoDB
  • Route handlers→OCI Object Storageput object
  • Auth.js→MongoDBadapter
  • Auth.js→Google OAuthsign-in

Request flow · Bulk-importing prompts

  1. 1An admin submits a batch from the console to /api/admin/prompts/bulk.
  2. 2The handler rate-limits the caller and checks for an admin session before reading the body.
  3. 3The payload is validated against a Zod schema; a malformed batch is rejected with field-level errors.
  4. 4Valid prompts are written in one insertMany and appear on the server-rendered explore pages.

Design decisions

One deployable
Pages, API and admin share a codebase and session model: one deploy and one set of types for a solo-maintained product.
Stateless sessions, persistent accounts
Accounts persist in MongoDB through the Auth.js adapter while sessions are JWTs, so route handlers authorise without a session lookup.
Validation as a tested module
Input schemas, admin checks and the rate limiter live in their own modules with unit tests rather than inline in handlers.

Trade-offs & known limits

  • The rate limiter is in-memory, so it throttles within a warm serverless instance only; there is no shared store like Redis.
  • Pricing tiers are presented by region but no payment provider is connected yet.

同じようなプロジェクトをお考えですか?

フリーランス・業務委託のご依頼を受け付けています。お気軽にご相談ください。