Skip to content

Commit ffb7b02

Browse files
committed
wip: refactoring card store
1 parent ccb8e11 commit ffb7b02

20 files changed

+551
-421
lines changed

.github/workflows/pre-release.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: pre-release
1+
name: pre-release
22

33
on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Release version (e.g., 0.0.2)'
7+
description: "Release version (e.g., 0.0.2)"
88
required: true
99

1010
jobs:
@@ -15,23 +15,22 @@ jobs:
1515
os: [macos-latest, ubuntu-latest, windows-latest]
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v3
1919

20-
- name: Use Node.js
21-
uses: actions/setup-node@v3
22-
with:
23-
node-version: 18.x
20+
- name: Use Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18.x
2424

25-
- name: Install dependencies
26-
run: npm ci
25+
- name: Install dependencies
26+
run: npm ci
2727

28-
- name: Build resources
29-
run: npm run build
30-
31-
- name: Build with electron-builder
32-
uses: samuelmeuli/action-electron-builder@v1
33-
with:
34-
github_token: ${{ secrets.github_token }}
35-
release: true
36-
args: -c.extraMetadata.version=${{ github.event.inputs.version }} -c.publish.releaseType=prerelease
28+
- name: Build resources
29+
run: npm run build
3730

31+
- name: Build with electron-builder
32+
uses: samuelmeuli/action-electron-builder@v1
33+
with:
34+
github_token: ${{ secrets.github_token }}
35+
release: true
36+
args: -c.extraMetadata.version=${{ github.event.inputs.version }} -c.publish.releaseType=prerelease

.prettierrc.format.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": false,
3+
"semi": true,
4+
"printWidth": 120,
5+
"trailingComma": "none",
6+
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-classnames", "prettier-plugin-organize-imports"],
7+
"organizeImportsSkipDestructiveCodeActions": false
8+
}

.vscode/agf.code-snippets

+8-10
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
"isFileTemplate": true
1717
},
1818
"Comment Block": {
19-
"prefix": "agf-header",
20-
"body": [
21-
"// =========================================================",
22-
"// ${1:}",
23-
"// ========================================================="
24-
],
25-
"description": "Create a comment block with a placeholder for the comment name"
19+
"prefix": "agf-header",
20+
"body": [
21+
"// =========================================================",
22+
"// ${1:}",
23+
"// ========================================================="
24+
],
25+
"description": "Create a comment block with a placeholder for the comment name"
2626
},
2727
"Line": {
2828
"prefix": "agf-line",
29-
"body": [
30-
"/* -------------------------------------------------------------------------- */"
31-
],
29+
"body": ["/* -------------------------------------------------------------------------- */"],
3230
"description": "Inserts a line comment"
3331
}
3432
}

README.md

+102-84
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,102 @@
1-
# anime.gf
2-
3-
![image](https://github.com/cyanff/anime.gf/assets/42996044/306d1caf-d6ec-4370-92f6-2328de3a8956)
4-
5-
anime.gf is a private & open source LLM frontend.
6-
User-friendly, multi-API support (OpenAI, Anthropic, Mistral, Together AI), Configurable LLM generation settings, Customizable themes.
7-
Open source waifus on the desktop. Alpha Early Access v0.0.1™®
8-
9-
10-
# News! (ノ◕ヮ◕)ノ*:・゚✧
11-
Alpha v0.0.2 Released! (05/09/2024)
12-
- Open AI Compatible API Support!
13-
- Use any endpoint like groq, ollama, vllm, ...
14-
- Linux & MacOS support
15-
- Linux and MacOS binaries will now be included with every release!
16-
- Sorry I made you all build binaries yourself last time ... (x╭╮x)
17-
- Added electron auto-updater
18-
- The app now automatically keeps itself up to date. You won't have to manually download new releases from now!
19-
- View the full release notes and download it **here**
20-
21-
## Features
22-
- Character card creation
23-
- Drag and drop import/export character cards
24-
- Edit, and delete character cards
25-
- Recently deleted character card restore
26-
- User personas
27-
- Chat reset, delete
28-
- Message rewind
29-
- Response regeneration
30-
- Support for OpenAI, Anthropic, Mistral, Together AI backends
31-
- LLM generation settings
32-
- Jailbreak prompt
33-
- Customizable themes
34-
35-
## Simple Installation
36-
- download the latest [release](https://github.com/cyanff/anime.gf/releases) and run the `setup.exe`
37-
- that's it!
38-
39-
## Usage
40-
### Set provider, API Key, and model
41-
![AI-gameview-demo-usage-api](https://github.com/cyanff/anime.gf/assets/42996044/9b57af93-39c8-4f5d-90a5-2a63a8d3ca16)
42-
- navigate to settings -> API Key -> select provider and paste your API key -> save -> navigate to Chat settings -> select same provider and select model -> save
43-
44-
### Create Persona
45-
![AI-gameview-demo-usage-persona](https://github.com/cyanff/anime.gf/assets/42996044/6deb1a5c-f674-4722-8eaf-93d19e57d434)
46-
- navigate to settings -> Persona -> New -> fill out persona details -> Create
47-
48-
### Start a new chat!
49-
![AI-gameview-demo-usage-chat](https://github.com/cyanff/anime.gf/assets/42996044/20aee910-ac04-4f17-b216-2fd0ec9f30bc)
50-
51-
### Customize Theme
52-
![AI-gameview-demo-themes](https://github.com/cyanff/anime.gf/assets/42996044/b55a2d25-d5db-4d36-a5ba-53ead90fc069)
53-
- The release build comes with preset themes
54-
- To edit themes, you have to download the source and manually edit the css file
55-
- Theme editing in the app is a WIP feature!
56-
57-
## Planned
58-
### Local Inference
59-
Want to run your models locally? The app will manage the entire process for you!
60-
No separate backend required.
61-
### Online character database
62-
An online database and website to host and share character cards!
63-
### More To Be Announced...
64-
65-
## Community
66-
67-
JOIN THE [DISCORD](https://discord.gg/CNGAZrahmA)! if any of these applies! (ノ◕ヮ◕)ノ*:・゚✧
68-
- You want to **share** and **collect** cards
69-
- You want help test the app
70-
- You want to report a bug
71-
- You want to request a feature
72-
73-
## Support
74-
If you encounter any issues or have questions, please don't hesitate to ask us on [Discord](https://discord.gg/CNGAZrahmA)!
75-
76-
Made with ❤️ by cyan and snavu @[moecorp](https://www.anime.gf/)
77-
78-
## Contacts
79-
- Discord: `_cyan_`
80-
- Twitter: `abyssalblue_`
81-
- Discord: `snafu_xd`
82-
- Twitter: `snafu_0x0`
83-
84-
1+
# anime.gf
2+
3+
![image](https://github.com/cyanff/anime.gf/assets/42996044/306d1caf-d6ec-4370-92f6-2328de3a8956)
4+
5+
anime.gf is a private & open source LLM frontend.
6+
User-friendly, multi-API support (OpenAI, Anthropic, Mistral, Together AI), Configurable LLM generation settings, Customizable themes.
7+
Open source waifus on the desktop. Alpha Early Access v0.0.1™®
8+
9+
# News! (ノ◕ヮ◕)ノ\*:・゚✧
10+
11+
Alpha v0.0.2 Released! (05/09/2024)
12+
13+
- Open AI Compatible API Support!
14+
- Use any endpoint like groq, ollama, vllm, ...
15+
- Linux & MacOS support
16+
- Linux and MacOS binaries will now be included with every release!
17+
- Sorry I made you all build binaries yourself last time ... (x╭╮x)
18+
- Added electron auto-updater
19+
- The app now automatically keeps itself up to date. You won't have to manually download new releases from now!
20+
- View the full release notes and download it **here**
21+
22+
## Features
23+
24+
- Character card creation
25+
- Drag and drop import/export character cards
26+
- Edit, and delete character cards
27+
- Recently deleted character card restore
28+
- User personas
29+
- Chat reset, delete
30+
- Message rewind
31+
- Response regeneration
32+
- Support for OpenAI, Anthropic, Mistral, Together AI backends
33+
- LLM generation settings
34+
- Jailbreak prompt
35+
- Customizable themes
36+
37+
## Simple Installation
38+
39+
- download the latest [release](https://github.com/cyanff/anime.gf/releases) and run the `setup.exe`
40+
- that's it!
41+
42+
## Usage
43+
44+
### Set provider, API Key, and model
45+
46+
![AI-gameview-demo-usage-api](https://github.com/cyanff/anime.gf/assets/42996044/9b57af93-39c8-4f5d-90a5-2a63a8d3ca16)
47+
48+
- navigate to settings -> API Key -> select provider and paste your API key -> save -> navigate to Chat settings -> select same provider and select model -> save
49+
50+
### Create Persona
51+
52+
![AI-gameview-demo-usage-persona](https://github.com/cyanff/anime.gf/assets/42996044/6deb1a5c-f674-4722-8eaf-93d19e57d434)
53+
54+
- navigate to settings -> Persona -> New -> fill out persona details -> Create
55+
56+
### Start a new chat!
57+
58+
![AI-gameview-demo-usage-chat](https://github.com/cyanff/anime.gf/assets/42996044/20aee910-ac04-4f17-b216-2fd0ec9f30bc)
59+
60+
### Customize Theme
61+
62+
![AI-gameview-demo-themes](https://github.com/cyanff/anime.gf/assets/42996044/b55a2d25-d5db-4d36-a5ba-53ead90fc069)
63+
64+
- The release build comes with preset themes
65+
- To edit themes, you have to download the source and manually edit the css file
66+
- Theme editing in the app is a WIP feature!
67+
68+
## Planned
69+
70+
### Local Inference
71+
72+
Want to run your models locally? The app will manage the entire process for you!
73+
No separate backend required.
74+
75+
### Online character database
76+
77+
An online database and website to host and share character cards!
78+
79+
### More To Be Announced...
80+
81+
## Community
82+
83+
JOIN THE [DISCORD](https://discord.gg/CNGAZrahmA)! if any of these applies! (ノ◕ヮ◕)ノ\*:・゚✧
84+
85+
- You want to **share** and **collect** cards
86+
- You want help test the app
87+
- You want to report a bug
88+
- You want to request a feature
89+
90+
## Support
91+
92+
If you encounter any issues or have questions, please don't hesitate to ask us on [Discord](https://discord.gg/CNGAZrahmA)!
93+
94+
Made with ❤️ by cyan and snavu @[moecorp](https://www.anime.gf/)
95+
96+
## Contacts
97+
98+
- Discord: `_cyan_`
99+
- Twitter: `abyssalblue_`
100+
- Discord: `snafu_xd`
101+
- Twitter: `snafu_0x0`
102+

dev-app-update.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
publish:
22
provider: github
33
repo: anime.gf-dev
4-
owner: cyanff
5-
vPrefixedTagName: false
4+
owner: cyanff
5+
vPrefixedTagName: false

electron-builder.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
appId: gf.anime
1+
appId: gf.anime
22
productName: agf
33
directories:
44
buildResources: build
@@ -37,18 +37,18 @@ linux:
3737
target:
3838
- AppImage
3939
- deb
40-
maintainer: agf
40+
maintainer: agf
4141
category: Utility
4242
icon: build/icon.png
4343
appImage:
4444
artifactName: ${name}-${version}.${ext}
4545
npmRebuild: false
4646
publish:
4747
provider: github
48-
repo: anime.gf
49-
owner: cyanff
48+
repo: anime.gf
49+
owner: cyanff
5050
vPrefixedTagName: false
5151

5252
# Injected into the final package.json
53-
extraMetadata:
54-
version: ${version}
53+
extraMetadata:
54+
version: ${version}

package-lock.json

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/cyanff/anime.gf"
1111
},
1212
"scripts": {
13-
"format": "prettier --write .",
13+
"format": "prettier --config .prettierrc.format.json --write .",
1414
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
1515
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
1616
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",

0 commit comments

Comments
 (0)