The official documentation website for Treblle, the API Intelligence Platform that helps engineering and product teams build, ship, and understand their REST APIs in one place.
Treblle is your comprehensive API Intelligence Platform, empowering you to build, manage, and truly understand APIs confidently. Whether you're a solo developer with a few APIs, a fast-growing startup, or an enterprise with thousands of APIs, Treblle gives you complete visibility, intelligence, and control across your entire API estate.
- Real-time API Monitoring - Monitor API performance, errors, and usage patterns
- Comprehensive Analytics - Gain insights into API consumption and performance metrics
- Multi-language SDKs - Support for Node.js, PHP, Python, Java, Go, .NET, and Ruby
- API Gateway Integrations - Works with AWS API Gateway, Azure, Kong, and more
- Security & Governance - Built-in security monitoring and compliance features
This documentation site is built with modern web technologies:
- Next.js 15 - React framework for production
- Nextra - Static site generator for documentation
- TypeScript - Type-safe JavaScript
- PandaCSS - CSS-in-JS styling system
- Pagefind - Static search functionality
- Node.js 18.17 or later
- pnpm (recommended) or npm/yarn
-
Clone the repository
git clone https://github.com/Treblle/treblle-documentation.git cd treblle-documentation
-
Install dependencies
pnpm install
-
Generate PandaCSS styles
pnpm prepare
-
Start the development server
pnpm dev
-
Open your browser
Visit http://localhost:3000 to see the documentation site.
treblle-documentation/
βββ app/ # Next.js 13+ app directory
β βββ docs/ # Documentation pages
β βββ layout.tsx # Root layout component
β βββ page.mdx # Homepage content
βββ components/ # Reusable React components
βββ public/ # Static assets
β βββ _pagefind/ # Generated search index
βββ styled-system/ # Generated PandaCSS files
βββ styles/ # Custom styles and fonts
βββ theme/ # PandaCSS theme configuration
βββ next.config.ts # Next.js configuration
βββ panda.config.ts # PandaCSS configuration
βββ package.json # Dependencies and scripts
Script | Description |
---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm start |
Start production server |
pnpm lint |
Run ESLint |
pnpm typecheck |
Run TypeScript compiler |
pnpm format:check |
Check code formatting |
pnpm format:fix |
Fix code formatting |
pnpm prepare |
Generate PandaCSS styles |
-
Create MDX files in the
app/docs/
directory -
Add frontmatter with title and description:
--- title: "Your Page Title" description: "Page description for SEO" --- # Your Content Here
The documentation supports React components within MDX:
<CustomBox>Your highlighted content here</CustomBox>
Use PandaCSS utilities for styling:
import { css } from "~styled-system/css";
const styles = css({
backgroundColor: "blue.50",
padding: "4",
borderRadius: "lg",
});
The site includes static search powered by Pagefind. The search index is automatically generated during the build process and included in the public/_pagefind/
directory.
The site uses PandaCSS for styling with a custom theme configuration:
- Colors: Defined in
theme/colors.ts
- Typography: Configured in
theme/text-styles.ts
- Tokens: Design tokens in
theme/tokens.ts
- Fonts: Google Fonts integration in
styles/fonts.ts
This project is optimized for deployment on Vercel:
- Push your changes to GitHub
- Connect your repository to Vercel
- Deploy automatically on every push to main
# Build the project
pnpm build
# Start production server
pnpm start
We welcome contributions to improve the Treblle documentation!
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature
- Make your changes
- Test locally:
pnpm dev
- Submit a pull request
- Follow the existing code style (ESLint + Prettier configured)
- Write clear commit messages
- Test your changes thoroughly
- Update documentation as needed
- Use GitHub Issues for bug reports and feature requests
- Include steps to reproduce for bugs
- Provide context for feature requests
- Documentation Issues: GitHub Issues
- Product Support: [email protected]
- Community: Discord
- Website: treblle.com
This project is licensed under the MIT License. See the LICENSE file for details.
- Main Website: treblle.com
- Live Documentation: docs.treblle.com
- GitHub Organization: github.com/Treblle
- API Knowledge Base: treblle.com/knowledgebase