START BUILDING
Everything you need
QUICK EXAMPLE
From idea to first run
Load the SDK bundle, ensure the session and upload a file in a few lines.
index.html
<script src="https://cdn.infinity6.ai/releases/sdkweb/latest/bundle/i6sdk-web.js"></script>
<input type="file" id="arquivo" />
<script type="module">
async function main() {
const sdk = new window.I6Sdk();
// No session: redirects to login
const user = await sdk.auth().requireUser();
if (!user) return;
const input = document.querySelector("#arquivo");
input.addEventListener("change", async () => {
const file = input.files[0];
if (!file) return;
await sdk.ingest().upload({
dataset: "<your-dataset>",
table: "<your-table>",
partitions: { "<your-key>": "<your-value>" },
file,
});
});
}
main();
</script>Runs in the browser, loaded via script tag
NEXT STEP
Ready to build?
Open the console and create your first project.
