Skip to content

Commit

Permalink
Refactor structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-homebrew committed Nov 18, 2023
1 parent 88ea34a commit 1725819
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions docs/docs/intro/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Introduction
slug: /docs
slug: /intro
---

Jan is a ChatGPT-alternative that runs on your own computer.
Expand All @@ -11,23 +11,22 @@ Jan ships with an [OpenAI-compatible API](/api) and a powerful [Assistant framew

## Why Jan?

💻 **Own your AI**<br />
#### 💻 Own your AI
Jan runs 100% on your own machine, [predictably](https://www.reddit.com/r/LocalLLaMA/comments/17mghqr/comment/k7ksti6/?utm_source=share&utm_medium=web2x&context=3), privately and even offline. No one else can see your conversations, not even us.

🏗️ **Customizability**<br />
#### 🏗️ Extensions
Jan ships with a powerful [extension framework](/guide/extensions), which allows developers to extend and customize Jan's functionality. In fact, most core modules of Jan are [built as extensions](/specs/architecture) and use the same extensions API.

🗂️ **Open File Formats**<br />
#### 🗂️ Open File Formats
Jan stores data in a [local folder of non-proprietary files](/specs/data-structures). You're never locked-in and can do what you want with your data with extensions, or even a different app.

🌍 **Open Source**<br />
Both Jan and [Nitro](https://nitro.jan.ai), our lightweight inference engine, are open source via the [AGPLv3 license](https://github.com/janhq/jan/blob/main/LICENSE).
#### 🌍 Open Source
Both Jan and [Nitro](https://nitro.jan.ai), our lightweight inference engine, are licensed via the open source [AGPLv3 license](https://github.com/janhq/jan/blob/main/LICENSE).

<!-- ## Design Principles -->

<!-- OpenAI meets VSCode meets Obsidian.
Minimalism: https://docusaurus.io/docs#design-principles. Not having abstractions is better than having the wrong abstractions. Assistants as code. Only including features that are absolutely necessary in the Jan API.
File-based: User should be able to look at a Jan directory and intuit how it works. Transparency. Editing things via a text editor, vs. needing a database tool for SQLite.
Expand Down
15 changes: 15 additions & 0 deletions docs/docs/specs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ title: Architecture
- Jan is built using modules
- Plugin architecture (on Pluggable-Electron)

Jan is comprised of system-level modules that mirror OpenAI’s, exposing similar APIs and objects

- Modules are modular, atomic implementations of a single OpenAI-compatible endpoint
- Modules can be swapped out for alternate implementations
- The default `messages` module persists messages in thread-specific `.json`
- `messages-postgresql` uses Postgres for production-grade cloud-native environments

| Jan Module | Description | API Docs |
| ---------- | ------------- | ---------------------------- |
| Chat | Inference | [/chat](/api/chat) |
| Models | Models | [/model](/api/model) |
| Assistants | Apps | [/assistant](/api/assistant) |
| Threads | Conversations | [/thread](/api/thread) |
| Messages | Messages | [/message](/api/message) |

## Concepts

```mermaid
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/specs/jan.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Jan
title: Jan (Assistant)
---

## Jan: a "global" assistant
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/specs/settings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: .jan
title: Settings
---
11 changes: 3 additions & 8 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,15 @@ const sidebars = {
label: "Using Jan",
collapsible: true,
collapsed: true,
items: ["guide/models", "guide/server"],
items: ["docs/models", "docs/server"],
},
{
type: "category",
label: "Extending Jan",
link: { type: "doc", id: "guide/extensions" },
link: { type: "doc", id: "docs/extensions" },
collapsible: true,
collapsed: true,
items: [
"guide/assistants",
"guide/themes",
"guide/tools",
"guide/modules",
],
items: ["docs/assistants", "docs/themes", "docs/tools", "docs/modules"],
},
{
type: "category",
Expand Down

0 comments on commit 1725819

Please sign in to comment.