There can be more than Notion and Miro. AFFiNE is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
Go to file
EYHN 0dabb08217
chore: create default user for devcontainer (#5917)
## **Type**
enhancement

___

## **Description**
- Added a command to `.devcontainer/build.sh` to create a default user (`affine`) in the database for development purposes.
- Introduced error handling in `.devcontainer/setup-user.sh` to ensure the script stops on the first error.
- Modified the git fetch command in `.devcontainer/setup-user.sh` to fetch the `canary` branch from `origin` with a depth of 1, optimizing the setup process.

___

## **Changes walkthrough**
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
  <td>
    <details>
      <summary><strong>build.sh</strong><dd><code>Add Default User Creation to Dev Container Build Script</code>&nbsp; &nbsp; </dd></summary>
<hr>

.devcontainer/build.sh

<li>Added command to create a default user with username and password <br>'affine'.<br> <li> Ensured database push command is followed by a newline.<br>

</details>

  </td>
  <td><a href="https:/toeverything/AFFiNE/pull/5917/files#diff-165b66803397b501866b23a0532418e9ad3eb2ab642274f9679383c76d18136f">+4/-1</a>&nbsp; &nbsp; &nbsp; </td>

</tr>

<tr>
  <td>
    <details>
      <summary><strong>setup-user.sh</strong><dd><code>Enhance User Setup Script with Error Handling and Specific Git Fetch</code></dd></summary>
<hr>

.devcontainer/setup-user.sh

<li>Introduced error handling with 'set -e' to stop on first error.<br> <li> Modified 'git fetch' to specifically fetch 'canary' branch from <br>'origin' with depth of 1.<br>

</details>

  </td>
  <td><a href="https:/toeverything/AFFiNE/pull/5917/files#diff-8c5e76719e2ff0a3bf2b59d108dc9cf88bdae00c317728454cfa5108f2fc76af">+3/-1</a>&nbsp; &nbsp; &nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

___

>  **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
2024-02-27 03:32:03 +00:00
.cargo fix(native): static link msvc runtime on Windows (#3773) 2023-08-16 14:55:37 -05:00
.codesandbox refactor!: remove next.js (#3267) 2023-07-18 16:53:10 +00:00
.devcontainer chore: create default user for devcontainer (#5917) 2024-02-27 03:32:03 +00:00
.github ci: update compose.yaml (#5905) 2024-02-26 18:47:37 +08:00
.husky chore: upgrade husky to latest (#5719) 2024-01-26 06:37:39 +00:00
.vscode refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
.yarn chore: bump up all non-major dependencies (#5550) 2024-02-01 14:33:25 +00:00
docs chore: bump all dependencies (#5891) 2024-02-23 09:37:14 +00:00
packages fix: page info styles (#5910) 2024-02-26 14:11:24 +00:00
scripts fix: selfhost build (#5833) 2024-02-19 14:03:26 +00:00
tests fix: page info styles (#5910) 2024-02-26 14:11:24 +00:00
tools chore: bump all dependencies (#5891) 2024-02-23 09:37:14 +00:00
.editorconfig milestone: publish alpha version (#637) 2022-12-30 21:40:15 +08:00
.env.template feat: add captcha support for sign in/up (#4582) 2023-10-18 08:06:07 +00:00
.eslintignore feat: move templates into AFFiNE (#5750) 2024-02-21 06:26:01 +00:00
.eslintrc.js refactor(infra): migrate to new infra (#5565) 2024-01-30 07:16:39 +00:00
.gitattributes milestone: publish alpha version (#637) 2022-12-30 21:40:15 +08:00
.gitignore feat: move templates into AFFiNE (#5750) 2024-02-21 06:26:01 +00:00
.i18n-codegen.json refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
.npmrc chore: restrict node version (#3120) 2023-07-10 06:19:59 +00:00
.nvmrc chore: bump up node version to v20 (#5201) 2024-02-23 09:03:57 +00:00
.prettierignore feat: move templates into AFFiNE (#5750) 2024-02-21 06:26:01 +00:00
.prettierrc chore: add lint cache (#1917) 2023-04-13 20:30:18 +00:00
.taplo.toml feat(native): provide FSWatcher 2023-05-11 14:41:51 +08:00
.yarnrc.yml chore: bump up all non-major dependencies (#5550) 2024-02-01 14:33:25 +00:00
Cargo.lock chore(storage): bump y-octo (#5751) 2024-01-31 06:54:33 +00:00
Cargo.toml refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
CHANGELOG.md milestone: publish alpha version (#637) 2022-12-30 21:40:15 +08:00
codecov.yml chore: add codecov.yml 2023-05-03 00:47:43 -05:00
LICENSE refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
LICENSE-MIT docs: update licenses (#4180) 2023-09-15 07:50:00 +00:00
nx.json feat: use nx cloud runner (#5626) 2024-01-18 08:18:37 +00:00
nyc.config.js refactor: remove package @affine/datacenter (#1705) 2023-03-27 17:48:22 -05:00
package.json chore: bump all dependencies (#5891) 2024-02-23 09:37:14 +00:00
README.md docs(docs): update readmd.md (#5911) 2024-02-26 10:57:11 +00:00
rust-toolchain.toml chore: upgrade Rust to 1.76 (#5843) 2024-02-20 09:01:43 +00:00
rustfmt.toml feat(native): provide FSWatcher 2023-05-11 14:41:51 +08:00
tsconfig.eslint.json fix: eslint stack overflow issue (#3601) 2023-08-07 07:00:57 +00:00
tsconfig.json refactor(infra): migrate to new infra (#5565) 2024-01-30 07:16:39 +00:00
tsconfig.node.json refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
typedoc.base.json docs: initial api reference docs (#5352) 2024-01-02 12:46:27 +00:00
typedoc.json refactor(infra): migrate to new infra (#5565) 2024-01-30 07:16:39 +00:00
vitest.config.ts feat(core): adopt editor features for journal (#5638) 2024-01-22 08:25:31 +00:00
vitest.workspace.ts refactor(electron): fix vitest and add behavior test (#4655) 2023-10-18 22:14:30 -05:00
yarn.lock chore: downgrade react-virtuoso to 4.6.3 (#5896) 2024-02-23 13:55:11 +00:00

AFFiNE.PRO
Write, Draw and Plan All at Once

affine logo

A privacy-focussed, local-first, open-source, and ready-to-use alternative for Notion & Miro.
One hyper-fused platform for wildly creative minds.



AFFiNE - One app for all - Where Notion meets Miro | Product Hunt


Releases All Contributors TypeScript-version-icon Rust-version-icon


Docs, canvas and tables are hyper-merged with AFFiNE - just like the word affine (əˈɪn | a-fine).

Getting started & staying tuned with us.

Star us, and you will receive all releases notifications from GitHub without any delay!

What is AFFiNE

AFFiNE is an open-source, all-in-one workspace and an operating system for all the building blocks that assemble your knowledge base and much more -- wiki, knowledge management, presentation and digital assets. It's a better alternative to Notion and Miro.

Features

A true canvas for blocks in any form. Docs and whiteboard are now fully merged.

  • Many editor apps claim to be a canvas for productivity, but AFFiNE is one of the very few which allows you to put any building block on an edgeless canvas -- rich text, sticky notes, any embedded web pages, multi-view databases, linked pages, shapes and even slides. We have it all.

Multimodal AI partner ready to kick in any work

  • Write up professional work report? Turn an outline into expressive and presentable slides? Summary an article into a well-structured mindmap? Sorting your job plan and backlog for tasks? Or....draw and code prototype apps and web pages directly all with one prompt? With you, AFFiNE AI pushes your creativity to the edge of your imagination.

Local-first & Real-time collaborative

  • We love the idea of local-first that you always own your data on your disk, in spite of the cloud. Furthermore, AFFiNE supports real-time sync and collaborations on web and cross-platform clients.

Self-host & Shape your own AFFiNE

  • You have the freedom to manage, self-host, fork and build your own AFFiNE. Plugin community and third-party blocks is coming soon. More tractions on Blocksuite. Check there to learn how to self-host AFFiNE.

Acknowledgement

“We shape our tools and thereafter our tools shape us”. A lot of pioneers have inspired us along the way, e.g.:

  • Quip & Notion with their great concept of “everything is a block”
  • Trello with their Kanban
  • Airtable & Miro with their no-code programable datasheets
  • Miro & Whimiscal with their edgeless visual whiteboard
  • Remnote & Capacities with their object-based tag system

There is a large overlap of their atomic “building blocks” between these apps. They are not open source, nor do they have a plugin system like Vscode for contributors to customize. We want to have something that contains all the features we love and also goes one step even further.

Thanks for checking us out, we appreciate your interest and sincerely hope that AFFiNE resonates with you! 🎵 Checking https://affine.pro/ for more details ions.

Contributing

Bug Reports Feature Requests Questions/Discussions AFFiNE Community
Create a bug report Submit a feature request Check GitHub Discussion Vist the AFFiNE Community
Something isn't working as expected An idea for a new feature, or improvements Discuss and ask questions A place to ask, learn and engage with others

Calling all developers, testers, tech writers and more! Contributions of all types are more than welcome, you can read more in docs/types-of-contributions.md. If you are interested in contributing code, read our docs/CONTRIBUTING.md and feel free to check out our GitHub issues to get stuck in to show us what youre made of.

Before you start contributing, please make sure you have read and accepted our Contributor License Agreement. To indicate your agreement, simply edit this file and submit a pull request.

For bug reports, feature requests and other suggestions you can also create a new issue and choose the most appropriate template for your feedback.

For translation and language support you can visit our i18n General Space.

Looking for others ways to contribute and wondering where to start? Check out the AFFiNE Ambassador program, we work closely with passionate community members and provide them with a wide-range of support and resources.

If you have questions, you are welcome to contact us. One of the best places to get more info and learn more is in the AFFiNE Community where you can engage with other like-minded individuals.

Ecosystem

Name
@affine/component AFFiNE Component Resources
@toeverything/y-indexeddb IndexedDB database adapter for Yjs
@toeverything/theme AFFiNE theme

Upstreams

We would also like to give thanks to open-source projects that make AFFiNE possible:

  • Blocksuite - 💠 BlockSuite is the open-source collaborative editor project behind AFFiNE.
  • OctoBase - 🐙 OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.
  • yjs - Fundamental support of CRDTs for our implementation on state management and data sync.
  • electron - Build cross-platform desktop apps with JavaScript, HTML, and CSS.
  • React - The library for web and native user interfaces.
  • napi-rs - A framework for building compiled Node.js add-ons in Rust via Node-API.
  • Jotai - Primitive and flexible state management for React.
  • async-call-rpc - A lightweight JSON RPC client & server.
  • Vite - Next generation frontend tooling.
  • Other upstream dependencies.

Thanks a lot to the community for providing such powerful and simple libraries, so that we can focus more on the implementation of the product logic, and we hope that in the future our projects will also provide a more easy-to-use knowledge base for everyone.

Contributors

We would like to express our gratitude to all the individuals who have already contributed to AFFiNE! If you have any AFFiNE-related project, documentation, tool or template, please feel free to contribute it by submitting a pull request to our curated list on GitHub: awesome-affine.

contributors

Self-Host

Begin with Docker to deploy your own feature-rich, unrestricted version of AFFiNE. Our team is diligently updating to the latest version. For more information on how to self-host AFFiNE, please refer to our documentation.

Hiring

Some amazing companies including AFFiNE are looking for developers! Are you interesgo to iour discord channel AFFiNE and/or its partners? Check out some of the latest jobs available.

Feature Request

For feature request, please see community.affine.pro.

Building

Codespaces

From the GitHub repo main page, click the green "Code" button and select "Create codespace on master". This will open a new Codespace with the (supposedly auto-forked AFFiNE repo cloned, built, and ready to go.

Local

See BUILDING.md for instructions on how to build AFFiNE from source code.

Contributing

We welcome contributions from everyone. See docs/contributing/tutorial.md for details.

Thanks

Chromatic

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.

License

See LICENSE for details.