Code Vault is Secure and Easy Code Snippet Storage for Developers

CodeVault is an online code storage service allowing developers to save important code snippets and manage their notes. CodeVault is available on all devices, supporting PWA mode, making it the ideal online code storage solution even without a network connection.

How Code Vault Speeds Up and Simplifies Your Workflow

Save and Organize Code Snippets Efficiently

🤩

  • 1. Open your Code Vault
  • 2. By searching, find the answer among your codes
  • 3. Apply the code and joy

😭

  • 1. Type a query in the search bar
  • 2. Choose a suitable website
  • 3. Try to find the necessary code on the page
  • 4. Try to use the code
  • 5. Get frustrated and go to step 2

Fast and Easy Search and Filtering for Code Snippets

Tags

"Hello, World!" on Kotlin

10/13/2024
fun main() {
    println("Hello, World!")
}
Kotlin
Hello, World!

"Hello, World! on Rust

10/13/2024
fn main() {
    println!("Hello, World!");  
}
Hello, World!
Rust

"Hello, World!" on CPP

10/13/2024
#include <iostream>  

int main() {
    std::cout << "Hello, World!" << std::endl; 
    return 0;
}
Hello, World!
C++

Access Your Code Notes Anytime, on Any Device

Communication with the server

10/13/2024
const url = 'https://example.com/api';

const data = {
    username: 'testuser',
    password: 'mypassword'
};

async function sendRequest() {
    try {
        const response = await fetch(url, {
            method: 'POST', 
            headers: {
                'Content-Type': 'application/json' 
            },
            body: JSON.stringify(data) 
        });

        if (response.ok) {
            const jsonResponse = await response.json();
            console.log('Response:', jsonResponse);
        } else {
            console.error('Error:', response.status);
        }
    } catch (error) {
        console.error('Error happen:', error);
    }
}

// sendRequest();
Web
JavaScript
Example as CodeVault is accessible from any device

Easily Share and Publish Code Snippets

🤝

Share your code with friends and colleagues

🌎

Publish your code on the Internet and help others solve their problems

Create your own Code Vault

Example of notes for storing code snippets in Code Vault

We are making new features for you!

Themes for your mood

#pip install cryptography
from cryptography.fernet import Fernet

def encrypt_file(file_path, key):
    cipher = Fernet(key)

    with open(file_path, 'rb') as f:  
        data = f.read()

    encrypted_data = cipher.encrypt(data) 

    with open(file_path, 'wb') as f:
        f.write(encrypted_data)

# key = Fernet.generate_key()  
# encrypt_file('file.txt', key)
const url = 'https://example.com/api';

const data = {
    username: 'testuser',
    password: 'mypassword'
};

async function sendRequest() {
    try {
        const response = await fetch(url, {
            method: 'POST', 
            headers: {
                'Content-Type': 'application/json' 
            },
            body: JSON.stringify(data) 
        });

        if (response.ok) {
            const jsonResponse = await response.json();
            console.log('Response:', jsonResponse);
        } else {
            console.error('Error:', response.status);
        }
    } catch (error) {
        console.error('Error happen:', error);
    }
}

// sendRequest();
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class SQLiteUpdateExample {
    private Connection connect() {
        String url = "jdbc:sqlite:sample.db"; 
        Connection conn = null;
        try {
            conn = DriverManager.getConnection(url); 
        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
        return conn;
    }

    public void update(int id, String newName) {
        String sql = "UPDATE users SET name = ? WHERE id = ?";

        try (Connection conn = this.connect();
            PreparedStatement pstmt = conn.prepareStatement(sql)) {
            pstmt.setString(1, newName); 
            pstmt.setInt(2, id);  
            int rowsAffected = pstmt.executeUpdate();

        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
    }

    public static void main(String[] args) {
        SQLiteUpdateExample app = new SQLiteUpdateExample();
        app.update(1, "Dmitry");
    }
}
import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        triggerVibration()
    }

    func triggerVibration() {
        let generator = UIImpactFeedbackGenerator(style: .medium)
        generator.prepare()  
        generator.impactOccurred() 
    }

    @IBAction func buttonPressed(_ sender: UIButton) {
        let generator = UIImpactFeedbackGenerator(style: .heavy)
        generator.prepare()
        generator.impactOccurred()
    }
}

// HOW TO USE???

func triggerNotificationFeedback(type: UINotificationFeedbackGenerator.FeedbackType) {
    let generator = UINotificationFeedbackGenerator()
    generator.notificationOccurred(type)
}

triggerNotificationFeedback(type: .success) 
private void OnGUI()
{
    // var myFont = (Font)Resources.Load("Fonts/AMERICANCAPTAINWEBFONT", typeof(Font));
    
    var background = new Texture2D(1, 1, TextureFormat.RGBAFloat, false); 
    background.SetPixel(0, 0, new Color(0, 0, 0, 0.25f));
    background.Apply(); 
    
    var style = new GUIStyle()
    {
        fontSize = 38,
        normal =
        {
            textColor = Color.yellow,
            background = background
        },
        alignment = TextAnchor.MiddleCenter,
        // font = myFont
    };

    GUI.Label(new Rect(Screen.width * 0.5f - 150, 40, 300, 80), "Hello, World!", style);

    if (GUI.Button(new Rect (Screen.width * 0.5f - 150, 300, 300, 80), "I can say hello", style))
            print("Hello!");
}

Make each of your snippet code unique

IDE integration

Codevault integration for JetbrainCodevault integration for VscodeCodevault integration for Neovim

Use your entries in Code Vault as code snippets for quick access in code editors

Code versioning

Codevault version control