Skip to content

Commit 1be752c

Browse files
committed
docs: add examples and roadmap
1 parent ab2a72b commit 1be752c

File tree

9 files changed

+179
-5
lines changed

9 files changed

+179
-5
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Verify the installation by running `npi version`. If you see the output similar
5353

5454
#### Setting Up NPi Server
5555

56+
> [!TIP]
57+
> Don't have installed Docker? Follow the official [Docker Installation Guide](https://docs.docker.com/get-docker/) to install Docker on your system.
58+
59+
5660
Replace `YOUR_OAI_KEY` with your actual OpenAI API Key, then execute:
5761

5862
```sh
@@ -117,6 +121,12 @@ npi app github "Star, fork, and leave a supportive message in issue #27 of npi-a
117121
1. [Calendar Negotiator](examples/calendar_negotiator/main.py)
118122
2. [Twitter Crawler](examples/twitter_crawler/main.py)
119123

124+
More: https://docs.npi.ai/examples
125+
126+
## Roadmap
127+
128+
https://docs.npi.ai/roadmap
129+
120130
## License
121131

122132
[BSL v1.1](LICENSE).

docs/components/youtube/index.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import YouTube from 'react-youtube';
2+
3+
export function YouTubeComponent({videoId}: { videoId: string }) {
4+
const opts = {
5+
height: '360',
6+
width: '640',
7+
playerVars: {
8+
// https://developers.google.com/youtube/player_parameters
9+
autoplay: 0,
10+
},
11+
};
12+
return (
13+
<YouTube videoId={videoId} opts={opts} />
14+
);
15+
}
16+

docs/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
},
2020
"homepage": "https://github.com/npi-ai/npi",
2121
"dependencies": {
22-
"next-plausible": "^3.12.0",
2322
"jotai": "^2.8.0",
2423
"next": "^14.2.2",
24+
"next-plausible": "^3.12.0",
2525
"nextra": "^2.13.4",
2626
"nextra-theme-docs": "^2.13.4",
2727
"react": "^18.2.0",
28-
"react-dom": "^18.2.0"
28+
"react-dom": "^18.2.0",
29+
"react-youtube": "^10.1.0"
2930
},
3031
"devDependencies": {
3132
"@types/node": "18.11.10",

docs/pages/_meta.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"index": "Quick Start",
33
"overview": "Overview",
4+
"examples": "Examples",
5+
"roadmap": "Roadmap",
46
"api-apps": "",
57
"browser-apps": "",
68
"cli": "CLI Reference",

docs/pages/api-apps/github.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Steps, Callout } from 'nextra/components';
1+
import { Steps } from 'nextra/components';
22
import { Tabs } from '@components/tabs';
33
import { FeatureRequest } from '@components/feature-request';
44

docs/pages/examples.mdx

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { YouTubeComponent } from '@components/youtube';
2+
import { Todo } from '@components/todo';
3+
import { FeatureRequest } from '@components/feature-request';
4+
5+
<Todo />
6+
# NPi AI Show cases
7+
8+
## Calendar Negotiator
9+
10+
<YouTubeComponent videoId={'F_Bh30eMdFo'}></YouTubeComponent>
11+
12+
**Code**: https://github.com/npi-ai/npi/examples/calendar_negotiator/main.py
13+
14+
## X.com collaboration with Discord
15+
16+
<YouTubeComponent videoId={'Cy4dXc7pnvE'}></YouTubeComponent>
17+
18+
**Code**: https://github.com/npi-ai/npi/examples/twitter_crawler/main.py
19+
20+
21+
## X.com Crawler
22+
23+
<YouTubeComponent videoId={'saOfO_A7UL0'}></YouTubeComponent>
24+
25+
<FeatureRequest />

docs/pages/index.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: NPi AI
33
description: Welcome to NPi AI
44
---
55

6-
import { Cards, Steps, Tabs } from 'nextra/components';
6+
import { Callout, Steps, Tabs } from 'nextra/components';
77

88
## What is NPi?
99

@@ -58,7 +58,9 @@ NPi (**N**atural-language **P**rogramming **I**nterface), pronounced as **"N π"
5858
```
5959

6060
### Setting Up NPi Server
61-
61+
<Callout type={'info'}>
62+
Don't have installed Docker? Follow the official [Docker Installation Guide](https://docs.docker.com/get-docker/) to install Docker on your system.
63+
</Callout>
6264
Replace `YOUR_OAI_KEY` with your actual OpenAI API Key, then execute:
6365

6466
<Tabs items={['macOS', 'linux']}>

docs/pages/roadmap.mdx

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { Callout } from 'nextra/components';
2+
import { Todo } from '@components/todo';
3+
import { FeatureRequest } from '@components/feature-request';
4+
5+
<Todo />
6+
7+
# Roadmap
8+
9+
<Callout type={"info"}>
10+
11+
We are continuously breaking down these functionalities to give accuracy release date.
12+
13+
If you have insights on these functionalities, please discuss with us at [Join our Discord](https://discord.gg/4tyWuHpu)
14+
or [Create an issue](https://github.com/npi-ai/npi/issues/new).
15+
16+
</Callout>
17+
18+
19+
NPi AI will focus on the following functionalities in the next months:
20+
21+
## More Applications
22+
Covering the most popular applications in the world, including API and UI.
23+
24+
## Easy to use
25+
26+
- Minimize the mental burden of debugging agent.
27+
- Seeped up onboarding.
28+
- Friendly Command line tool and SDK(Python and Golang are planned).
29+
30+
## State Management
31+
- Persistent
32+
- Reliability
33+
34+
## App Version Control
35+
36+
We know add/change functions and prompts may affect the behaviors of Apps, so we will introduce this functionality for increasing confidence on you upgrade NPi.
37+
38+
## Authorization Management
39+
Make your credentials always SAFE!
40+
41+
## Customization
42+
Easily extends NPi provisioned apps and create new your own apps.
43+
44+
## Testing Coverage
45+
Add more test cases to NPi, including unit test, integration test, and end-to-end test.
46+
47+
<FeatureRequest />

docs/pnpm-lock.yaml

+71
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)