Skip to content
CodeYourWayCode

Docs

Using CodeYourWay Code

Getting started

Create an account, confirm your email, then choose a username on your dashboard. Your username is part of every address: https://app.codeyourway.space/username/repository.

Create a repository from the dashboard. Public repositories can be read and cloned by anyone; private ones (paid plans) only by you.

Push with Git

Git signs in with your username and a personal access token instead of your password. Create one under Settings → Access tokens, and copy it: it's shown once.

cd my-project
git init -b main            # if it isn't a Git repository yet
git add . && git commit -m "First commit"
git remote add origin https://app.codeyourway.space/username/my-project.git
git push -u origin main
# Username: your username   Password: your access token

Clone a public repository with git clone https://app.codeyourway.space/username/repository.git. Revoke a token at any time; Git will then ask for a new one. Only the smart HTTP protocol is supported (any Git from the last ten years).

Upload a ZIP

On a repository, choose Upload ZIP. The ZIP's contents replace the files on the default branch as a new commit, so earlier versions stay in the history. If everything in the ZIP is inside one folder (as in a “Download ZIP” from another site), that folder's contents are used. Files listed in a .gitignore inside the ZIP are skipped. Maximum size: 50 MB.

Live previews

In a repository's settings, switch on Live preview and choose the folder to publish (leave it empty for the top of the repository, or use e.g. dist, public or docs). The preview is rebuilt automatically after every push or upload, at:

https://preview.codeyourway.space/username/repository/
  • The folder should contain an index.html. Use relative links (css/site.css, not /css/site.css).
  • Add a 404.html for a custom “not found” page, or tick Single-page app to send unknown paths to index.html.
  • Static files only: we never run build scripts or server code. Commit your built files (for example the output of npm run build).
  • Previews are public, even for private repositories: anyone with the link can see the published folder.
  • For safety, previews can't submit forms, and scripts can only fetch files from the preview itself. Scripts, styles and fonts may also load from cdn.jsdelivr.net, unpkg.com, cdnjs.cloudflare.com and Google Fonts.
  • Every page shows a small notice with the repository name and a link to report abuse.

Limits

Plan limits (repositories, storage, number of previews) are on the pricing page. On every plan:

  • One push can send up to 100 MB.
  • A preview can have up to 2,000 files, each up to 25 MB.
  • Storage counts your repositories plus their published previews.
  • When storage is full, pushes and uploads are refused until you free space or change plan. Nothing is deleted.

Security and privacy

Access tokens are stored only as a one-way hash. Repositories are stored on our servers in Germany and are not used for anything except providing the service. Don't commit passwords or API keys; if you do, rotate them, because history keeps old versions. See the Privacy Policy and the Acceptable Use Policy. Found a security problem? Write to us through the contact page.